Skip to content

Commit 76b8804

Browse files
committed
Bicep content freshness - 1
1 parent 3deafe9 commit 76b8804

11 files changed

+27
-39
lines changed

articles/azure-resource-manager/bicep/bicep-functions-any.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Bicep functions - any
33
description: Describes the any function that is available in Bicep to convert types.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 09/09/2021
6+
ms.date: 06/23/2023
77
---
88

99
# Any function for Bicep
@@ -38,7 +38,7 @@ The value in a form that is compatible with any data type.
3838
The following example shows how to use the `any()` function to provide numeric values as strings.
3939

4040
```bicep
41-
resource wpAci 'microsoft.containerInstance/containerGroups@2019-12-01' = {
41+
resource wpAci 'Microsoft.ContainerInstance/containerGroups@2023-05-01' = {
4242
name: 'wordpress-containerinstance'
4343
location: location
4444
properties: {

articles/azure-resource-manager/bicep/bicep-functions-numeric.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
title: Bicep functions - numeric
33
description: Describes the functions to use in a Bicep file to work with numbers.
4-
author: mumian
5-
ms.author: jgao
64
ms.topic: conceptual
75
ms.custom: devx-track-bicep
8-
ms.date: 09/30/2021
6+
ms.date: 06/23/2023
97
---
108

119
# Numeric functions for Bicep

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
title: Child resources in Bicep
33
description: Describes how to set the name and type for child resources in Bicep.
4-
author: mumian
5-
ms.author: jgao
64
ms.topic: conceptual
75
ms.custom: devx-track-bicep
8-
ms.date: 09/13/2021
6+
ms.date: 06/23/2023
97
---
108

119
# Set name and type for child resources in Bicep

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
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.
4-
author: mumian
5-
ms.author: jgao
64
ms.topic: conceptual
75
ms.custom: devx-track-bicep, devx-track-arm-template
8-
ms.date: 06/01/2021
6+
ms.date: 06/23/2023
97
---
108

119
# Deploy Bicep files from Azure Cloud Shell

articles/azure-resource-manager/bicep/index.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ metadata:
1111
ms.subservice: Bicep
1212
ms.topic: landing-page
1313
ms.collection: na
14-
author: mumian
15-
ms.author: jgao
16-
ms.date: 11/17/2021
14+
ms.date: 06/23/2023
1715

1816
# linkListType: architecture | concept | deploy | download | get-started | how-to-guide | learn | overview | quickstart | reference | tutorial | video | whats-new
1917

articles/azure-resource-manager/bicep/key-vault-parameter.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Key Vault secret with Bicep
33
description: Shows how to pass a secret from a key vault as a parameter during Bicep deployment.
44
ms.topic: conceptual
55
ms.custom: devx-track-azurepowershell, devx-track-azurecli, devx-track-bicep
6-
ms.date: 06/15/2023
6+
ms.date: 06/23/2023
77
---
88

99
# Use Azure Key Vault to pass secure parameter value during Bicep deployment
@@ -187,7 +187,7 @@ param subscriptionId string
187187
param kvResourceGroup string
188188
param kvName string
189189
190-
resource kv 'Microsoft.KeyVault/vaults@2019-09-01' existing = {
190+
resource kv 'Microsoft.KeyVault/vaults@2023-02-01' existing = {
191191
name: kvName
192192
scope: resourceGroup(subscriptionId, kvResourceGroup )
193193
}
@@ -214,16 +214,17 @@ If you don't want to use a module, you can reference the key vault directly in t
214214
The following Bicep file deploys a SQL server that includes an administrator password. The password parameter is set to a secure string. But the Bicep doesn't specify where that value comes from.
215215

216216
```bicep
217+
param location string = resourceGroup().location
217218
param adminLogin string
218219
219220
@secure()
220221
param adminPassword string
221222
222223
param sqlServerName string
223224
224-
resource sqlServer 'Microsoft.Sql/servers@2020-11-01-preview' = {
225+
resource sqlServer 'Microsoft.Sql/servers@2022-11-01-preview' = {
225226
name: sqlServerName
226-
location: resourceGroup().location
227+
location: location
227228
properties: {
228229
administratorLogin: adminLogin
229230
administratorLoginPassword: adminPassword

articles/azure-resource-manager/bicep/linter-rule-admin-username-should-not-be-literal.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Linter rule - admin user name should not be literal
33
description: Linter rule - admin user name should not be a literal
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 11/18/2021
6+
ms.date: 06/23/2023
77
---
88

99
# Linter rule - admin user name should not be literal
@@ -23,7 +23,7 @@ Don't use a literal value or an expression that evaluates to a literal value. In
2323
The following example fails this test because the user name is a literal value.
2424

2525
```bicep
26-
resource vm 'Microsoft.Compute/virtualMachines@2020-12-01' = {
26+
resource vm 'Microsoft.Compute/virtualMachines@2023-03-01' = {
2727
name: 'name'
2828
location: location
2929
properties: {
@@ -38,7 +38,7 @@ The next example fails this test because the expression evaluates to a literal v
3838

3939
```bicep
4040
var defaultAdmin = 'administrator'
41-
resource vm 'Microsoft.Compute/virtualMachines@2020-12-01' = {
41+
resource vm 'Microsoft.Compute/virtualMachines@2023-03-01' = {
4242
name: 'name'
4343
location: location
4444
properties: {
@@ -55,7 +55,7 @@ This example passes this test.
5555
@secure()
5656
param adminUsername string
5757
param location string
58-
resource vm 'Microsoft.Compute/virtualMachines@2020-12-01' = {
58+
resource vm 'Microsoft.Compute/virtualMachines@2023-03-01' = {
5959
name: 'name'
6060
location: location
6161
properties: {

articles/azure-resource-manager/bicep/linter-rule-no-hardcoded-environment-urls.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Linter rule - no hardcoded environment URL
33
description: Linter rule - no hardcoded environment URL
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
6-
ms.date: 11/18/2021
6+
ms.date: 06/23/2023
77
---
88

99
# Linter rule - no hardcoded environment URL
@@ -43,10 +43,11 @@ In some cases, you can fix it by getting a property from a resource you've deplo
4343

4444
```bicep
4545
param storageAccountName string
46+
param location string = resourceGroup().location
4647
47-
resource sa 'Microsoft.Storage/storageAccounts@2021-04-01' = {
48+
resource sa 'Microsoft.Storage/storageAccounts@2022-09-01' = {
4849
name: storageAccountName
49-
location: 'westus'
50+
location: location
5051
sku: {
5152
name: 'Standard_LRS'
5253
}
@@ -61,7 +62,7 @@ output endpoint string = sa.properties.primaryEndpoints.web
6162

6263
## Configuration
6364

64-
By default, this rule uses the following settings for determining which URLs are disallowed.
65+
By default, this rule uses the following settings for determining which URLs are disallowed.
6566

6667
```json
6768
"analyzers": {

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
title: Bicep accessor operators
33
description: Describes Bicep resource access operator and property access operator.
4-
author: mumian
5-
ms.author: jgao
64
ms.topic: conceptual
75
ms.custom: devx-track-bicep
8-
ms.date: 09/10/2021
6+
ms.date: 06/23/2023
97
---
108

119
# Bicep accessor operators
@@ -41,7 +39,7 @@ var arrayVar = [
4139
]
4240
4341
output accessorResult string = arrayVar[1]
44-
```
42+
```
4543

4644
Output from the example:
4745

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

8381
```bicep
84-
resource kv 'Microsoft.KeyVault/vaults@2019-09-01' existing = {
82+
resource kv 'Microsoft.KeyVault/vaults@2023-02-01' existing = {
8583
name: kvName
8684
scope: resourceGroup(subscriptionId, kvResourceGroup )
8785
}
@@ -109,7 +107,7 @@ Within the parent resource, you reference the nested resource with just the symb
109107
The following example shows how to reference a nested resource from within the parent resource and from outside of the parent resource.
110108

111109
```bicep
112-
resource demoParent 'demo.Rp/parentType@2020-01-01' = {
110+
resource demoParent 'demo.Rp/parentType@2023-01-01' = {
113111
name: 'demoParent'
114112
location: 'West US'
115113
@@ -168,7 +166,7 @@ Output from the example:
168166
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.
169167

170168
```bicep
171-
resource publicIp 'Microsoft.Network/publicIPAddresses@2020-06-01' = {
169+
resource publicIp 'Microsoft.Network/publicIPAddresses@2022-11-01' = {
172170
name: publicIpResourceName
173171
location: location
174172
properties: {

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
---
22
title: Bicep comparison operators
33
description: Describes Bicep comparison operators that compare values.
4-
author: mumian
5-
ms.author: jgao
64
ms.topic: conceptual
75
ms.custom: devx-track-bicep
8-
ms.date: 09/07/2021
6+
ms.date: 06/23/2023
97
---
108

119
# Bicep comparison operators

0 commit comments

Comments
 (0)