Skip to content

Commit 368e05f

Browse files
authored
Merge pull request #188396 from davidsmatlak/ds-add-bicep-tips
Adds links to Bicep docs
2 parents c207d9f + c9456ea commit 368e05f

12 files changed

+66
-30
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ To complete this quickstart, you need [Visual Studio Code](https://code.visualst
1717

1818
If you don't have an Azure subscription, [create a free account](https://azure.microsoft.com/free/) before you begin.
1919

20+
> [!TIP]
21+
> We recommend [Bicep](../bicep/overview.md) because it offers the same capabilities as ARM templates and the syntax is easier to use. To learn more, see [Quickstart: Create Bicep files with Visual Studio Code](../bicep/quickstart-create-bicep-use-visual-studio-code.md).
22+
2023
## Create an ARM template
2124

2225
Create and open with Visual Studio Code a new file named *azuredeploy.json*. Enter `arm` into the code editor, which initiates Azure Resource Manager snippets for scaffolding out an ARM template.
@@ -29,7 +32,7 @@ This snippet creates the basic building blocks for an ARM template.
2932

3033
![Image showing a fully scaffolded ARM template](./media/quickstart-create-templates-use-visual-studio-code/2.png)
3134

32-
Notice that the Visual Studio Code language mode has changed from *JSON* to *Azure Resource Manager Template*. The extension includes a language server specific to ARM templates which provides ARM template-specific validation, completion, and other language services.
35+
Notice that the Visual Studio Code language mode has changed from *JSON* to *Azure Resource Manager Template*. The extension includes a language server specific to ARM templates that provides ARM template-specific validation, completion, and other language services.
3336

3437
![Image showing Azure Resource Manager as the Visual Studio Code language mode](./media/quickstart-create-templates-use-visual-studio-code/3.png)
3538

@@ -53,7 +56,7 @@ The **tab** key can be used to tab through configurable properties on the storag
5356

5457
One of the most powerful capabilities of the extension is its integration with Azure schemas. Azure schemas provide the extension with validation and resource-aware completion capabilities. Let's modify the storage account to see validation and completion in action.
5558

56-
First, update the storage account kind to an invalid value such as `megaStorage`. Notice that this action produces a warning indicating that `megaStorage` is not a valid value.
59+
First, update the storage account kind to an invalid value such as `megaStorage`. Notice that this action produces a warning indicating that `megaStorage` isn't a valid value.
5760

5861
![Image showing an invalid storage configuration](./media/quickstart-create-templates-use-visual-studio-code/7.png)
5962

@@ -105,7 +108,7 @@ Now that the parameter file has been mapped to the template, the extension valid
105108

106109
![Image showing an invalidated template due to parameter file issue](./media/quickstart-create-templates-use-visual-studio-code/17.png)
107110

108-
Navigate back to the ARM template and notice that an error has been raised indicating that the value does not meet the parameter criteria.
111+
Navigate back to the ARM template and notice that an error has been raised indicating that the value doesn't meet the parameter criteria.
109112

110113
![Image showing a valid ARM template](./media/quickstart-create-templates-use-visual-studio-code/18.png)
111114

articles/azure-resource-manager/templates/template-functions-array.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Template functions - arrays
33
description: Describes the functions to use in an Azure Resource Manager template (ARM template) for working with arrays.
44
ms.topic: conceptual
5-
ms.date: 09/08/2021
5+
ms.date: 02/11/2022
66
---
77

88
# Array functions for ARM templates
@@ -27,6 +27,9 @@ Resource Manager provides several functions for working with arrays in your Azur
2727

2828
To get an array of string values delimited by a value, see [split](template-functions-string.md#split).
2929

30+
> [!TIP]
31+
> We recommend [Bicep](../bicep/overview.md) because it offers the same capabilities as ARM templates and the syntax is easier to use. To learn more, see [array](../bicep/bicep-functions-array.md) functions.
32+
3033
## array
3134

3235
`array(convertToArray)`

articles/azure-resource-manager/templates/template-functions-comparison.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Template functions - comparison
33
description: Describes the functions to use in an Azure Resource Manager template (ARM template) to compare values.
44
ms.topic: conceptual
5-
ms.date: 09/08/2021
5+
ms.date: 02/11/2022
66
---
77

88
# Comparison functions for ARM templates
@@ -16,6 +16,9 @@ Resource Manager provides several functions for making comparisons in your Azure
1616
* [less](#less)
1717
* [lessOrEquals](#lessorequals)
1818

19+
> [!TIP]
20+
> We recommend [Bicep](../bicep/overview.md) because it offers the same capabilities as ARM templates and the syntax is easier to use. To learn more, see the [coalesce](../bicep/operators-logical.md) logical operator and [comparison](../bicep/operators-comparison.md) operators.
21+
1922
## coalesce
2023

2124
`coalesce(arg1, arg2, arg3, ...)`

articles/azure-resource-manager/templates/template-functions-date.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Template functions - date
33
description: Describes the functions to use in an Azure Resource Manager template (ARM template) to work with dates.
44
ms.topic: conceptual
5-
ms.date: 09/09/2021
5+
ms.date: 02/11/2022
66
---
77

88
# Date functions for ARM templates
@@ -12,6 +12,9 @@ Resource Manager provides the following functions for working with dates in your
1212
* [dateTimeAdd](#datetimeadd)
1313
* [utcNow](#utcnow)
1414

15+
> [!TIP]
16+
> We recommend [Bicep](../bicep/overview.md) because it offers the same capabilities as ARM templates and the syntax is easier to use. To learn more, see [date](../bicep/bicep-functions-date.md) functions.
17+
1518
## dateTimeAdd
1619

1720
`dateTimeAdd(base, duration, [format])`
@@ -64,9 +67,9 @@ Returns the current (UTC) datetime value in the specified format. If no format i
6467

6568
You can only use this function within an expression for the default value of a parameter. Using this function anywhere else in a template returns an error. The function isn't allowed in other parts of the template because it returns a different value each time it's called. Deploying the same template with the same parameters wouldn't reliably produce the same results.
6669

67-
If you use the [option to rollback on error](rollback-on-error.md) to an earlier successful deployment, and the earlier deployment includes a parameter that uses utcNow, the parameter isn't reevaluated. Instead, the parameter value from the earlier deployment is automatically reused in the rollback deployment.
70+
If you use the [option to rollback on error](rollback-on-error.md) to an earlier successful deployment, and the earlier deployment includes a parameter that uses `utcNow`, the parameter isn't reevaluated. Instead, the parameter value from the earlier deployment is automatically reused in the rollback deployment.
6871

69-
Be careful redeploying a template that relies on the utcNow function for a default value. When you redeploy and don't provide a value for the parameter, the function is reevaluated. If you want to update an existing resource rather than create a new one, pass in the parameter value from the earlier deployment.
72+
Be careful redeploying a template that relies on the `utcNow` function for a default value. When you redeploy and don't provide a value for the parameter, the function is reevaluated. If you want to update an existing resource rather than create a new one, pass in the parameter value from the earlier deployment.
7073

7174
### Return value
7275

articles/azure-resource-manager/templates/template-functions-deployment.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Template functions - deployment
33
description: Describes the functions to use in an Azure Resource Manager template (ARM template) to retrieve deployment information.
44
ms.topic: conceptual
5-
ms.date: 09/09/2021
5+
ms.date: 02/11/2022
66
---
77

88
# Deployment functions for ARM templates
@@ -16,6 +16,9 @@ Resource Manager provides the following functions for getting values related to
1616

1717
To get values from resources, resource groups, or subscriptions, see [Resource functions](template-functions-resource.md).
1818

19+
> [!TIP]
20+
> We recommend [Bicep](../bicep/overview.md) because it offers the same capabilities as ARM templates and the syntax is easier to use. To learn more, see [deployment](../bicep/bicep-functions-deployment.md) functions.
21+
1922
## deployment
2023

2124
`deployment()`

articles/azure-resource-manager/templates/template-functions-logical.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Template functions - logical
33
description: Describes the functions to use in an Azure Resource Manager template (ARM template) to determine logical values.
44
ms.topic: conceptual
5-
ms.date: 09/09/2021
5+
ms.date: 02/11/2022
66
---
77

88
# Logical functions for ARM templates
@@ -17,6 +17,9 @@ Resource Manager provides several functions for making comparisons in your Azure
1717
* [or](#or)
1818
* [true](#true)
1919

20+
> [!TIP]
21+
> We recommend [Bicep](../bicep/overview.md) because it offers the same capabilities as ARM templates and the syntax is easier to use. To learn more, see the [bool](../bicep/bicep-functions-logical.md) logical function and [logical](../bicep/operators-logical.md) operators.
22+
2023
## and
2124

2225
`and(arg1, arg2, ...)`

articles/azure-resource-manager/templates/template-functions-numeric.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Template functions - numeric
33
description: Describes the functions to use in an Azure Resource Manager template (ARM template) to work with numbers.
44
ms.topic: conceptual
5-
ms.date: 09/09/2021
5+
ms.date: 02/11/2022
66
---
77

88
# Numeric functions for ARM templates
@@ -20,6 +20,9 @@ Resource Manager provides the following functions for working with integers in y
2020
* [mul](#mul)
2121
* [sub](#sub)
2222

23+
> [!TIP]
24+
> We recommend [Bicep](../bicep/overview.md) because it offers the same capabilities as ARM templates and the syntax is easier to use. To learn more about using `int`, `min`, and `max` in Bicep, see [numeric](../bicep/bicep-functions-numeric.md) functions. For other numeric values, see [numeric](../bicep/operators-numeric.md) operators.
25+
2326
## add
2427

2528
`add(operand1, operand2)`

articles/azure-resource-manager/templates/template-functions-object.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Template functions - objects
33
description: Describes the functions to use in an Azure Resource Manager template (ARM template) for working with objects.
44
ms.topic: conceptual
5-
ms.date: 09/09/2021
5+
ms.date: 02/11/2022
66
---
77

88
# Object functions for ARM templates
@@ -18,6 +18,9 @@ Resource Manager provides several functions for working with objects in your Azu
1818
* [null](#null)
1919
* [union](#union)
2020

21+
> [!TIP]
22+
> We recommend [Bicep](../bicep/overview.md) because it offers the same capabilities as ARM templates and the syntax is easier to use. To learn more, see [object](../bicep/bicep-functions-object.md) functions.
23+
2124
## contains
2225

2326
`contains(container, itemToFind)`

articles/azure-resource-manager/templates/template-functions-resource.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Template functions - resources
33
description: Describes the functions to use in an Azure Resource Manager template (ARM template) to retrieve values about resources.
44
ms.topic: conceptual
5-
ms.date: 12/28/2021
5+
ms.date: 02/11/2022
66
ms.custom: devx-track-azurepowershell
77
---
88

@@ -23,6 +23,9 @@ To get values from parameters, variables, or the current deployment, see [Deploy
2323

2424
To get deployment scope values, see [Scope functions](template-functions-scope.md).
2525

26+
> [!TIP]
27+
> We recommend [Bicep](../bicep/overview.md) because it offers the same capabilities as ARM templates and the syntax is easier to use. To learn more, see [resource](../bicep/bicep-functions-resource.md) functions.
28+
2629
## extensionResourceId
2730

2831
`extensionResourceId(baseResourceId, resourceType, resourceName1, [resourceName2], ...)`

articles/azure-resource-manager/templates/template-functions-scope.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Template functions - scope
33
description: Describes the functions to use in an Azure Resource Manager template (ARM template) to retrieve values about deployment scope.
44
ms.topic: conceptual
5-
ms.date: 11/23/2021
5+
ms.date: 02/11/2022
66
---
77

88
# Scope functions for ARM templates
@@ -16,6 +16,9 @@ Resource Manager provides the following functions for getting deployment scope v
1616

1717
To get values from parameters, variables, or the current deployment, see [Deployment value functions](template-functions-deployment.md).
1818

19+
> [!TIP]
20+
> We recommend [Bicep](../bicep/overview.md) because it offers the same capabilities as ARM templates and the syntax is easier to use. To learn more, see [scope](../bicep/bicep-functions-scope.md) functions.
21+
1922
## managementGroup
2023

2124
`managementGroup()`

0 commit comments

Comments
 (0)