Skip to content

Commit d43b491

Browse files
Merge pull request #280643 from mumian/main
update api versions and remove the sample repo
2 parents 472e563 + d452905 commit d43b491

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Suppose you have the following ARM template:
7272
"resources": [
7373
{
7474
"type": "Microsoft.Storage/storageAccounts",
75-
"apiVersion": "2019-06-01",
75+
"apiVersion": "2023-04-01",
7676
"name": "[variables('storageAccountName')]",
7777
"location": "[parameters('location')]",
7878
"sku": {
@@ -132,7 +132,7 @@ To rename across the file, right-click the name, and then select **Rename symbol
132132
The resource has a symbolic name that you might want to change. Instead of `storageAccountName` for the symbolic name, use `exampleStorage`.
133133

134134
```bicep
135-
resource exampleStorage 'Microsoft.Storage/storageAccounts@2019-06-01' = {
135+
resource exampleStorage 'Microsoft.Storage/storageAccounts@2023-04-01' = {
136136
```
137137

138138
The complete file is:

articles/azure-resource-manager/bicep/operator-safe-dereference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep safe-dereference operator
33
description: Describes Bicep safe-dereference operator.
44
ms.topic: reference
55
ms.custom: devx-track-bicep
6-
ms.date: 03/20/2024
6+
ms.date: 07/11/2024
77
---
88

99
# Bicep safe-dereference operator
@@ -30,7 +30,7 @@ param storageAccountSettings array = []
3030
param storageCount int
3131
param location string = resourceGroup().location
3232
33-
resource storage 'Microsoft.Storage/storageAccounts@2022-09-01' = [for i in range(0, storageCount): {
33+
resource storage 'Microsoft.Storage/storageAccounts@2023-04-01' = [for i in range(0, storageCount): {
3434
name: storageAccountSettings[?i].?name ?? 'defaultname'
3535
location: storageAccountSettings[?i].?location ?? location
3636
kind: storageAccountSettings[?i].?kind ?? 'StorageV2'

articles/azure-resource-manager/bicep/operators-access.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep accessor operators
33
description: Describes Bicep resource access operator and property access operator.
44
ms.topic: reference
55
ms.custom: devx-track-bicep
6-
ms.date: 06/23/2023
6+
ms.date: 07/11/2024
77
---
88

99
# Bicep accessor operators
@@ -79,7 +79,7 @@ Two functions - [getSecret](bicep-functions-resource.md#getsecret) and [list*](b
7979
The following example references an existing key vault, then uses `getSecret` to pass a secret to a module.
8080

8181
```bicep
82-
resource kv 'Microsoft.KeyVault/vaults@2023-02-01' existing = {
82+
resource kv 'Microsoft.KeyVault/vaults@2023-07-01' existing = {
8383
name: kvName
8484
scope: resourceGroup(subscriptionId, kvResourceGroup )
8585
}
@@ -107,7 +107,7 @@ Within the parent resource, you reference the nested resource with just the symb
107107
The following example shows how to reference a nested resource from within the parent resource and from outside of the parent resource.
108108

109109
```bicep
110-
resource demoParent 'demo.Rp/parentType@2023-01-01' = {
110+
resource demoParent 'demo.Rp/parentType@2024-01-01' = {
111111
name: 'demoParent'
112112
location: 'West US'
113113
@@ -166,7 +166,7 @@ Output from the example:
166166
Typically, you use the property accessor with a resource deployed in the Bicep file. The following example creates a public IP address and uses property accessors to return a value from the deployed resource.
167167

168168
```bicep
169-
resource publicIp 'Microsoft.Network/publicIPAddresses@2022-11-01' = {
169+
resource publicIp 'Microsoft.Network/publicIPAddresses@2023-11-01' = {
170170
name: publicIpResourceName
171171
location: location
172172
properties: {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ param deployStorage bool = true
6767
param storageName string
6868
param location string = resourceGroup().location
6969
70-
resource myStorageAccount 'Microsoft.Storage/storageAccounts@2019-06-01' = if (deployStorage) {
70+
resource myStorageAccount 'Microsoft.Storage/storageAccounts@2023-04-01' = if (deployStorage) {
7171
name: storageName
7272
location: location
7373
kind: 'StorageV2'
@@ -103,7 +103,7 @@ param orgNames array = [
103103
'Coho'
104104
]
105105
106-
resource nsg 'Microsoft.Network/networkSecurityGroups@2020-06-01' = [for name in orgNames: {
106+
resource nsg 'Microsoft.Network/networkSecurityGroups@2023-11-01' = [for name in orgNames: {
107107
name: 'nsg-${name}'
108108
location: nsgLocation
109109
}]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Bicep provides the following advantages:
2727
param location string = resourceGroup().location
2828
param storageAccountName string = 'toylaunch${uniqueString(resourceGroup().id)}'
2929
30-
resource storageAccount 'Microsoft.Storage/storageAccounts@2021-06-01' = {
30+
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-04-01' = {
3131
name: storageAccountName
3232
location: location
3333
sku: {
@@ -59,7 +59,7 @@ Bicep provides the following advantages:
5959
"resources": [
6060
{
6161
"type": "Microsoft.Storage/storageAccounts",
62-
"apiVersion": "2021-06-01",
62+
"apiVersion": "2023-04-01",
6363
"name": "[parameters('storageAccountName')]",
6464
"location": "[parameters('location')]",
6565
"sku": {

0 commit comments

Comments
 (0)