Skip to content

Commit a9372e3

Browse files
authored
Merge pull request #280657 from mumian/0711-merge-repo-p
update api versions
2 parents f265136 + c097189 commit a9372e3

17 files changed

+48
-48
lines changed

articles/azure-resource-manager/bicep/linter-rule-no-deployments-resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ In ARM templates, you can reuse or modularize a template through nesting or link
3737
"resources": [
3838
{
3939
"type": "Microsoft.Resources/deployments",
40-
"apiVersion": "2022-09-01",
40+
"apiVersion": "2024-03-01",
4141
"name": "nestedTemplate1",
4242
"properties": {
4343
"mode": "Incremental",

articles/azure-resource-manager/bicep/msbuild-bicep-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ Run MSBuild to convert the Bicep file and the Bicep parameter file to JSON.
478478
"resources": [
479479
{
480480
"type": "Microsoft.Storage/storageAccounts",
481-
"apiVersion": "2022-05-01",
481+
"apiVersion": "2023-04-01",
482482
"name": "[variables('storageAccountName')]",
483483
"location": "[parameters('location')]",
484484
"sku": {

articles/azure-resource-manager/bicep/patterns-configuration-set.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ms.topic: conceptual
77
ms.custom: devx-track-bicep
88
ms.date: 06/23/2023
99
---
10+
1011
# Configuration set pattern
1112

1213
Rather than define lots of individual parameters, create predefined sets of values. During deployment, select the set of values to use.

articles/azure-resource-manager/bicep/patterns-logical-parameter.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ms.topic: conceptual
77
ms.custom: devx-track-bicep
88
ms.date: 06/23/2023
99
---
10+
1011
# Logical parameter pattern
1112

1213
Use parameters to specify the logical definition of a resource, or even of multiple resources. The Bicep file converts the logical parameter to deployable resource definitions. By following this pattern, you can separate *what's* deployed from *how* it's deployed.

articles/azure-resource-manager/bicep/patterns-name-generation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ms.topic: conceptual
77
ms.custom: devx-track-bicep
88
ms.date: 06/23/2023
99
---
10+
1011
# Name generation pattern
1112

1213
Within your Bicep files, use string interpolation and Bicep functions to create resource names that are unique, deterministic, meaningful, and different for each environment that you deploy to.

articles/azure-resource-manager/bicep/patterns-shared-variable-file.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ms.topic: conceptual
77
ms.custom: devx-track-bicep
88
ms.date: 07/28/2023
99
---
10+
1011
# Shared variable file pattern
1112

1213
Reduce the repetition of shared values in your Bicep files. Instead, load those values from a shared JSON file within your Bicep file. When using arrays, concatenate the shared values with deployment-specific values in your Bicep code.

articles/azure-resource-manager/bicep/quickstart-create-bicep-use-visual-studio-code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ When finished, you have:
179179
@maxLength(24)
180180
param storageAccountName string = 'store${uniqueString(resourceGroup().id)}'
181181
182-
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2019-11-01' = {
182+
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2023-11-01' = {
183183
name: 'exampleVNet'
184184
location: resourceGroup().location
185185
properties: {
@@ -205,7 +205,7 @@ resource virtualNetwork 'Microsoft.Network/virtualNetworks@2019-11-01' = {
205205
}
206206
}
207207
208-
resource exampleStorage 'Microsoft.Storage/storageAccounts@2021-02-01' = {
208+
resource exampleStorage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
209209
name: storageAccountName
210210
location: 'eastus'
211211
sku: {

articles/azure-resource-manager/bicep/quickstart-create-bicep-use-visual-studio.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ In *main.bicep*, type **vnet**. Select **res-vnet** from the list, and then pres
3636
Your Bicep file now contains the following code:
3737

3838
```bicep
39-
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2019-11-01' = {
39+
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2023-11-01' = {
4040
name: 'name'
4141
location: location
4242
properties: {
@@ -147,7 +147,7 @@ After the single quote for the resource type, add `=` and a space. You're presen
147147
This option adds all of the properties for the resource type that are required for deployment. After selecting this option, your storage account has the following properties:
148148

149149
```bicep
150-
resource exampleStorage 'Microsoft.Storage/storageAccounts@2021-09-01' = {
150+
resource exampleStorage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
151151
name: 1
152152
location: 2
153153
sku: {
@@ -168,7 +168,7 @@ When you've finished, you have:
168168
param storageName string
169169
param location string = resourceGroup().location
170170
171-
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2019-11-01' = {
171+
resource virtualNetwork 'Microsoft.Network/virtualNetworks@2023-11-01' = {
172172
name: storageName
173173
location: location
174174
properties: {
@@ -194,7 +194,7 @@ resource virtualNetwork 'Microsoft.Network/virtualNetworks@2019-11-01' = {
194194
}
195195
}
196196
197-
resource exampleStorage 'Microsoft.Storage/storageAccounts@2021-09-01' = {
197+
resource exampleStorage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
198198
name: storageName
199199
location: location
200200
sku: {

articles/azure-resource-manager/bicep/quickstart-create-template-specs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ param location string = resourceGroup().location
4444
4545
var storageAccountName = 'storage${uniqueString(resourceGroup().id)}'
4646
47-
resource storageAccount 'Microsoft.Storage/storageAccounts@2022-09-01' = {
47+
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-04-01' = {
4848
name: storageAccountName
4949
location: location
5050
sku: {
@@ -165,7 +165,7 @@ You can create a template spec with a Bicep file but the `mainTemplate` must be
165165
'resources': [
166166
{
167167
'type': 'Microsoft.Storage/storageAccounts'
168-
'apiVersion': '2022-09-01'
168+
'apiVersion': '2023-04-01'
169169
'name': '[variables(\'storageAccountName\')]'
170170
'location': '[parameters(\'location\')]'
171171
'sku': {
@@ -526,7 +526,7 @@ Rather than create a new template spec for the revised template, add a new versi
526526
'resources': [
527527
{
528528
'type': 'Microsoft.Storage/storageAccounts'
529-
'apiVersion': '2022-09-01'
529+
'apiVersion': '2023-04-01'
530530
'name': '[variables(\'storageAccountName\')]'
531531
'location': '[parameters(\'location\')]'
532532
'sku': {

articles/azure-resource-manager/bicep/quickstart-private-module-registry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ param location string
4545
4646
var uniqueStorageName = '${storagePrefix}${uniqueString(resourceGroup().id)}'
4747
48-
resource stg 'Microsoft.Storage/storageAccounts@2021-06-01' = {
48+
resource stg 'Microsoft.Storage/storageAccounts@2023-04-01' = {
4949
name: uniqueStorageName
5050
location: location
5151
sku: {

0 commit comments

Comments
 (0)