Skip to content

Commit 9dab744

Browse files
committed
update api versions and remove the sample repo
1 parent 5b30b88 commit 9dab744

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
lines changed

articles/azure-resource-manager/bicep/best-practices.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: johndowns
55
ms.author: jodowns
66
ms.topic: conceptual
77
ms.custom: devx-track-bicep
8-
ms.date: 06/23/2023
8+
ms.date: 07/11/2024
99
---
1010
# Best practices for Bicep
1111

@@ -53,8 +53,12 @@ For more information about Bicep variables, see [Variables in Bicep](variables.m
5353

5454
* It's a good practice to use template expressions to create resource names, like in this example:
5555

56-
:::code language="bicep" source="~/azure-docs-bicep-samples/samples/best-practices/resource-name-expressions.bicep" highlight="3":::
57-
56+
```bicep
57+
param shortAppName string = 'toy'
58+
param shortEnvironmentName string = 'prod'
59+
param appServiceAppName string = '${shortAppName}-${shortEnvironmentName}-${uniqueString(resourceGroup().id)}'
60+
```
61+
5862
Using template expressions to create resource names gives you several benefits:
5963

6064
* Strings generated by `uniqueString()` aren't meaningful. It's helpful to use a template expression to create a name that includes meaningful information, such as a short descriptor of the project or environment name, as well as a random component to make the name more likely to be unique.
@@ -68,13 +72,13 @@ For more information about Bicep variables, see [Variables in Bicep](variables.m
6872
* Avoid using `name` in a symbolic name. The symbolic name represents the resource, not the resource's name. For example, instead of the following syntax:
6973

7074
```bicep
71-
resource cosmosDBAccountName 'Microsoft.DocumentDB/databaseAccounts@2023-04-15' = {
75+
resource cosmosDBAccountName 'Microsoft.DocumentDB/databaseAccounts@2023-11-15' = {
7276
```
7377

7478
Use:
7579

7680
```bicep
77-
resource cosmosDBAccount 'Microsoft.DocumentDB/databaseAccounts@2023-04-15' = {
81+
resource cosmosDBAccount 'Microsoft.DocumentDB/databaseAccounts@2023-11-15' = {
7882
```
7983

8084
* Avoid distinguishing variables and parameters by the use of suffixes.

articles/azure-resource-manager/bicep/bicep-cli.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep CLI commands and overview
33
description: Describes the commands that you can use in the Bicep CLI. These commands include building Azure Resource Manager templates from Bicep.
44
ms.topic: reference
55
ms.custom: devx-track-azurecli, devx-track-bicep, devx-track-arm-template
6-
ms.date: 01/02/2024
6+
ms.date: 07/11/2024
77
---
88

99
# Bicep CLI commands
@@ -172,6 +172,16 @@ The command returns an array of available versions.
172172

173173
```azurecli
174174
[
175+
"v0.28.1",
176+
"v0.27.1",
177+
"v0.26.170",
178+
"v0.26.54",
179+
"v0.25.53",
180+
"v0.25.3",
181+
"v0.24.24",
182+
"v0.23.1",
183+
"v0.22.6",
184+
"v0.21.1",
175185
"v0.20.4",
176186
"v0.19.5",
177187
"v0.18.4",
@@ -191,17 +201,7 @@ The command returns an array of available versions.
191201
"v0.9.1",
192202
"v0.8.9",
193203
"v0.8.2",
194-
"v0.7.4",
195-
"v0.6.18",
196-
"v0.6.11",
197-
"v0.6.1",
198-
"v0.5.6",
199-
"v0.4.1318",
200-
"v0.4.1272",
201-
"v0.4.1124",
202-
"v0.4.1008",
203-
"v0.4.613",
204-
"v0.4.451"
204+
"v0.7.4"
205205
]
206206
```
207207

articles/azure-resource-manager/bicep/bicep-extensibility-kubernetes-provider.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep extensibility Kubernetes provider
33
description: Learn how to Bicep Kubernetes provider to deploy .NET applications to Azure Kubernetes Service clusters.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep, devx-track-dotnet
6-
ms.date: 03/20/2024
6+
ms.date: 07/11/2024
77
---
88

99
# Bicep extensibility Kubernetes provider (Preview)
@@ -14,7 +14,7 @@ The Kubernetes provider allows you to create Kubernetes resources directly with
1414
> Kubernetes provider is not currently supported for private clusters:
1515
>
1616
> ```bicep
17-
> resource AKS 'Microsoft.ContainerService/managedClusters@2023-01-02-preview' = {
17+
> resource AKS 'Microsoft.ContainerService/managedClusters@2024-02-01' = {
1818
> ...
1919
> properties: {
2020
> apiServerAccessProfile: {
@@ -61,7 +61,7 @@ import '[email protected]' with {
6161
The following sample shows how to pass `kubeConfig` value from a parent Bicep file:
6262

6363
```bicep
64-
resource aks 'Microsoft.ContainerService/managedClusters@2022-05-02-preview' existing = {
64+
resource aks 'Microsoft.ContainerService/managedClusters@2024-02-01' existing = {
6565
name: 'demoAKSCluster'
6666
}
6767

0 commit comments

Comments
 (0)