Skip to content

Commit fab4393

Browse files
authored
Merge pull request #298975 from mumian/0428-bicep-freshness
[SCOPED] Bicep freshness
2 parents 97887a8 + 379f56b commit fab4393

23 files changed

+70
-71
lines changed

articles/azure-resource-manager/bicep/bicep-config-linter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Linter settings for Bicep config
33
description: Describes how to customize configuration values for the Bicep linter
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 09/19/2024
6+
ms.date: 04/28/2025
77
---
88

99
# Add linter settings in the Bicep config file

articles/azure-resource-manager/bicep/bicep-config-modules.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Module setting for Bicep config
33
description: Describes how to customize configuration values for modules in Bicep deployments.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 06/28/2024
6+
ms.date: 04/28/2025
77
---
88

99
# Add module settings in the Bicep config file
@@ -169,7 +169,6 @@ Bicep uses the [Azure.Identity SDK](/dotnet/api/azure.identity) to do authentica
169169
- [Environment](/dotnet/api/azure.identity.environmentcredential)
170170
- [ManagedIdentity](/dotnet/api/azure.identity.managedidentitycredential)
171171
- [VisualStudio](/dotnet/api/azure.identity.visualstudiocredential)
172-
- [VisualStudioCode](/dotnet/api/azure.identity.visualstudiocodecredential)
173172

174173
[!INCLUDE [vscode authentication](../../../includes/resource-manager-vscode-authentication.md)]
175174

articles/azure-resource-manager/bicep/bicep-kubernetes-extension.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep Kubernetes extension
33
description: Learn how to Bicep Kubernetes extension 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: 08/07/2024
6+
ms.date: 04/28/2025
77
---
88

99
# Bicep Kubernetes extension (Preview)
@@ -12,9 +12,9 @@ The Kubernetes extension allows you to create Kubernetes resources directly with
1212

1313
> [!NOTE]
1414
> The Kubernetes extension is not currently supported for private clusters:
15-
>
15+
>
1616
> ```bicep
17-
> resource AKS 'Microsoft.ContainerService/managedClusters@2024-02-01' = {
17+
> resource AKS 'Microsoft.ContainerService/managedClusters@2024-10-01' = {
1818
> ...
1919
> properties: {
2020
> apiServerAccessProfile: {
@@ -60,7 +60,7 @@ extension kubernetes with {
6060
The following sample shows how to pass `kubeConfig` value from a parent Bicep file:
6161

6262
```bicep
63-
resource aks 'Microsoft.ContainerService/managedClusters@2024-08-01' existing = {
63+
resource aks 'Microsoft.ContainerService/managedClusters@2024-10-01' existing = {
6464
name: 'demoAKSCluster'
6565
}
6666

articles/azure-resource-manager/bicep/child-resource-name-type.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Child resources in Bicep
33
description: Describes how to set the name and type for child resources in Bicep.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 09/26/2024
6+
ms.date: 04/28/2025
77
---
88

99
# Set name and type for child resources in Bicep
@@ -67,7 +67,7 @@ A nested resource declaration must appear at the top level of syntax of the pare
6767
When defined within the parent resource type, you format the type and name values as a single segment without slashes. The following example shows a storage account with a child resource for the file service, and the file service has a child resource for the file share. The file service's name is set to `default` and its type is set to `fileServices`. The file share's name is set `exampleshare` and its type is set to `shares`.
6868

6969
```bicep
70-
resource storage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
70+
resource storage 'Microsoft.Storage/storageAccounts@2024-01-01' = {
7171
name: 'examplestorage'
7272
location: resourceGroup().location
7373
kind: 'StorageV2'
@@ -119,7 +119,7 @@ When defined outside of the parent resource, you format the type and with slashe
119119
The following example shows a storage account, file service, and file share that are all defined at the root level.
120120

121121
```bicep
122-
resource storage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
122+
resource storage 'Microsoft.Storage/storageAccounts@2024-01-01' = {
123123
name: 'examplestorage'
124124
location: resourceGroup().location
125125
kind: 'StorageV2'
@@ -128,12 +128,12 @@ resource storage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
128128
}
129129
}
130130
131-
resource service 'Microsoft.Storage/storageAccounts/fileServices@2023-04-01' = {
131+
resource service 'Microsoft.Storage/storageAccounts/fileServices@2024-01-01' = {
132132
name: 'default'
133133
parent: storage
134134
}
135135
136-
resource share 'Microsoft.Storage/storageAccounts/fileServices/shares@2023-04-01' = {
136+
resource share 'Microsoft.Storage/storageAccounts/fileServices/shares@2024-01-01' = {
137137
name: 'exampleshare'
138138
parent: service
139139
}
@@ -146,7 +146,7 @@ Referencing the child resource symbolic name works the same as referencing the p
146146
You can also use the full resource name and type when declaring the child resource outside the parent. You don't set the parent property on the child resource. Because the dependency can't be inferred, you must set it explicitly.
147147

148148
```bicep
149-
resource storage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
149+
resource storage 'Microsoft.Storage/storageAccounts@2024-01-01' = {
150150
name: 'examplestorage'
151151
location: resourceGroup().location
152152
kind: 'StorageV2'
@@ -155,14 +155,14 @@ resource storage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
155155
}
156156
}
157157
158-
resource service 'Microsoft.Storage/storageAccounts/fileServices@2023-04-01' = {
158+
resource service 'Microsoft.Storage/storageAccounts/fileServices@2024-01-01' = {
159159
name: 'examplestorage/default'
160160
dependsOn: [
161161
storage
162162
]
163163
}
164164
165-
resource share 'Microsoft.Storage/storageAccounts/fileServices/shares@2023-04-01' = {
165+
resource share 'Microsoft.Storage/storageAccounts/fileServices/shares@2024-01-01' = {
166166
name: 'examplestorage/default/exampleshare'
167167
dependsOn: [
168168
service

articles/azure-resource-manager/bicep/compare-template-syntax.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Compare syntax for Azure Resource Manager templates in JSON and Bicep
33
description: Compares Azure Resource Manager templates developed with JSON and Bicep, and shows how to convert between the languages.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep, devx-track-arm-template
6-
ms.date: 07/11/2024
6+
ms.date: 04/28/2025
77
---
88

99
# Comparing JSON and Bicep for templates
@@ -213,11 +213,11 @@ For Bicep, you can set an explicit dependency but this approach isn't recommende
213213
The following shows a network interface with an implicit dependency on a network security group. It references the network security group with `netSecurityGroup.id`.
214214

215215
```bicep
216-
resource netSecurityGroup 'Microsoft.Network/networkSecurityGroups@2023-11-01' = {
216+
resource netSecurityGroup 'Microsoft.Network/networkSecurityGroups@2024-05-01' = {
217217
...
218218
}
219219
220-
resource nic1 'Microsoft.Network/networkInterfaces@2023-11-01' = {
220+
resource nic1 'Microsoft.Network/networkInterfaces@2024-05-01' = {
221221
name: nic1Name
222222
location: location
223223
properties: {
@@ -254,7 +254,7 @@ storageAccount.properties.primaryEndpoints.blob
254254
To get a property from an existing resource that isn't deployed in the template:
255255

256256
```bicep
257-
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-04-01' existing = {
257+
resource storageAccount 'Microsoft.Storage/storageAccounts@2024-01-01' existing = {
258258
name: storageAccountName
259259
}
260260

articles/azure-resource-manager/bicep/create-resource-group.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Use Bicep to create a new resource group
33
description: Describes how to use Bicep to create a new resource group in your Azure subscription.
44
ms.topic: how-to
55
ms.custom: devx-track-bicep
6-
ms.date: 09/26/2024
6+
ms.date: 04/28/2025
77
---
88

99
# Create resource groups by using Bicep
@@ -22,7 +22,7 @@ targetScope='subscription'
2222
param resourceGroupName string
2323
param resourceGroupLocation string
2424
25-
resource newRG 'Microsoft.Resources/resourceGroups@2024-03-01' = {
25+
resource newRG 'Microsoft.Resources/resourceGroups@2024-11-01' = {
2626
name: resourceGroupName
2727
location: resourceGroupLocation
2828
}
@@ -65,7 +65,7 @@ param resourceGroupLocation string
6565
param storageName string
6666
param storageLocation string
6767
68-
resource newRG 'Microsoft.Resources/resourceGroups@2024-03-01' = {
68+
resource newRG 'Microsoft.Resources/resourceGroups@2024-11-01' = {
6969
name: resourceGroupName
7070
location: resourceGroupLocation
7171
}
@@ -86,7 +86,7 @@ The module uses a Bicep file named **storage.bicep** with the following contents
8686
param storageLocation string
8787
param storageName string
8888
89-
resource storageAcct 'Microsoft.Storage/storageAccounts@2023-04-01' = {
89+
resource storageAcct 'Microsoft.Storage/storageAccounts@2024-01-01' = {
9090
name: storageName
9191
location: storageLocation
9292
sku: {

articles/azure-resource-manager/bicep/deploy-cloud-shell.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Deploy Bicep files with Cloud Shell
33
description: Use Azure Resource Manager and Azure Cloud Shell to deploy resources to Azure. The resources are defined in a Bicep file.
44
ms.topic: how-to
55
ms.custom: devx-track-bicep, devx-track-arm-template
6-
ms.date: 09/26/2024
6+
ms.date: 04/28/2025
77
---
88

99
# Deploy Bicep files from Azure Cloud Shell
@@ -28,7 +28,7 @@ To deploy a local Bicep file, you must first upload your Bicep file to your Clou
2828
1. Select the Bicep file you want to upload, and then select **Open**.
2929
1. To deploy the Bicep file, use the following commands:
3030

31-
# [Azure CLI](#tab/azure-cli)
31+
### [Azure CLI](#tab/azure-cli)
3232

3333
```azurecli-interactive
3434
az group create --name ExampleGroup --location "South Central US"
@@ -38,7 +38,7 @@ To deploy a local Bicep file, you must first upload your Bicep file to your Clou
3838
--parameters storageAccountType=Standard_GRS
3939
```
4040

41-
# [PowerShell](#tab/azure-powershell)
41+
### [PowerShell](#tab/azure-powershell)
4242

4343
```azurepowershell-interactive
4444
New-AzResourceGroup -Name ExampleGroup -Location "Central US"

articles/azure-resource-manager/bicep/deploy-what-if.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep deployment what-if
33
description: Determine what changes will happen to your resources before deploying a Bicep file.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep, devx-track-azurecli, devx-track-azurepowershell
6-
ms.date: 09/26/2024
6+
ms.date: 04/28/2025
77
---
88

99
# Bicep deployment what-if operation
@@ -276,7 +276,7 @@ az deployment group create \
276276
After the deployment completes, you're ready to test the what-if operation. This time you deploy a Bicep file that changes the virtual network. It's missing one of the original tags, a subnet has been removed, and the address prefix has changed. Download a copy of the Bicep file.
277277

278278
```bicep
279-
resource vnet 'Microsoft.Network/virtualNetworks@2023-11-01' = {
279+
resource vnet 'Microsoft.Network/virtualNetworks@2024-05-01' = {
280280
name: 'vnet-001'
281281
location: resourceGroup().location
282282
tags: {

articles/azure-resource-manager/bicep/deployment-script-bicep-configure-dev.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Configure development environment for deployment scripts in Bicep | Microsoft Docs
33
description: Configure development environment for deployment scripts in Bicep.
44
ms.topic: how-to
5-
ms.date: 09/26/2024
5+
ms.date: 04/28/2025
66
ms.custom: devx-track-azurepowershell, devx-track-azurecli, devx-track-bicep
77
ms.devlang: azurecli
88
---
@@ -84,7 +84,7 @@ var fileShareName = '${projectName}share'
8484
var containerGroupName = '${projectName}cg'
8585
var containerName = '${projectName}container'
8686
87-
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' = {
87+
resource storageAccount 'Microsoft.Storage/storageAccounts@2024-01-01' = {
8888
name: storageAccountName
8989
location: location
9090
sku: {
@@ -96,14 +96,14 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' = {
9696
}
9797
}
9898
99-
resource fileShare 'Microsoft.Storage/storageAccounts/fileServices/shares@2023-01-01' = {
99+
resource fileShare 'Microsoft.Storage/storageAccounts/fileServices/shares@2024-01-01' = {
100100
name: '${storageAccountName}/default/${fileShareName}'
101101
dependsOn: [
102102
storageAccount
103103
]
104104
}
105105
106-
resource containerGroup 'Microsoft.ContainerInstance/containerGroups@2023-05-01' = {
106+
resource containerGroup 'Microsoft.ContainerInstance/containerGroups@2024-11-01-preview' = {
107107
name: containerGroupName
108108
location: location
109109
properties: {
@@ -237,7 +237,7 @@ var fileShareName = '${projectName}share'
237237
var containerGroupName = '${projectName}cg'
238238
var containerName = '${projectName}container'
239239

240-
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-04-01' = {
240+
resource storageAccount 'Microsoft.Storage/storageAccounts@2024-01-01' = {
241241
name: storageAccountName
242242
location: location
243243
sku: {
@@ -249,14 +249,14 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2023-04-01' = {
249249
}
250250
}
251251

252-
resource fileshare 'Microsoft.Storage/storageAccounts/fileServices/shares@2023-04-01' = {
252+
resource fileshare 'Microsoft.Storage/storageAccounts/fileServices/shares@2024-01-01' = {
253253
name: '${storageAccountName}/default/${fileShareName}'
254254
dependsOn: [
255255
storageAccount
256256
]
257257
}
258258

259-
resource containerGroup 'Microsoft.ContainerInstance/containerGroups@2023-05-01' = {
259+
resource containerGroup 'Microsoft.ContainerInstance/containerGroups@2024-11-01-preview' = {
260260
name: containerGroupName
261261
location: location
262262
properties: {

articles/azure-resource-manager/bicep/deployment-script-vnet-private-endpoint.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Run Bicep deployment script privately over a private endpoint
33
description: Learn how to run Bicep deployment script privately over a private endpoint.
44
ms.custom: devx-track-bicep
55
ms.topic: how-to
6-
ms.date: 09/26/2024
6+
ms.date: 04/28/2025
77
---
88

99
# Run Bicep deployment script privately over a private endpoint
@@ -43,12 +43,12 @@ var vnetAddressPrefix = '192.168.4.0/23'
4343
var subnetEndpointAddressPrefix = '192.168.4.0/24'
4444
var subnetACIAddressPrefix = '192.168.5.0/24'
4545
46-
resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
46+
resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2024-11-30' = {
4747
name: userAssignedIdentityName
4848
location: location
4949
}
5050
51-
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-04-01' = {
51+
resource storageAccount 'Microsoft.Storage/storageAccounts@2024-01-01' = {
5252
name: storageAccountName
5353
kind: 'StorageV2'
5454
location: location
@@ -64,7 +64,7 @@ resource storageAccount 'Microsoft.Storage/storageAccounts@2023-04-01' = {
6464
}
6565
}
6666
67-
resource privateEndpoint 'Microsoft.Network/privateEndpoints@2023-11-01' = {
67+
resource privateEndpoint 'Microsoft.Network/privateEndpoints@2024-05-01' = {
6868
name: storageAccount.name
6969
location: location
7070
properties: {
@@ -101,7 +101,7 @@ resource roleAssignment 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
101101
}
102102
}
103103
104-
resource privateDnsZone 'Microsoft.Network/privateDnsZones@2020-06-01' = {
104+
resource privateDnsZone 'Microsoft.Network/privateDnsZones@2024-06-01' = {
105105
name: 'privatelink.file.core.windows.net'
106106
location: 'global'
107107
@@ -129,7 +129,7 @@ resource privateDnsZone 'Microsoft.Network/privateDnsZones@2020-06-01' = {
129129
}
130130
}
131131
132-
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2023-11-01' = {
132+
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2024-05-01' = {
133133
name: vnetName
134134
location: location
135135
properties:{

0 commit comments

Comments
 (0)