Skip to content

Commit 61d49b3

Browse files
authored
Merge pull request #185368 from davidsmatlak/ds-tsfunctions-0118
Adds cross references to functions doc
2 parents be74f50 + 69de3be commit 61d49b3

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

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

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
title: Template functions
33
description: Describes the functions to use in an Azure Resource Manager template (ARM template) to retrieve values, work with strings and numerics, and retrieve deployment information.
44
ms.topic: conceptual
5-
ms.date: 11/23/2021
5+
ms.date: 01/20/2022
66
---
7+
78
# ARM template functions
89

910
This article describes all the functions you can use in an Azure Resource Manager template (ARM template). For information about using functions in your template, see [template syntax](template-expressions.md).
@@ -52,6 +53,8 @@ Resource Manager provides several functions for working with arrays.
5253
* [take](template-functions-array.md#take)
5354
* [union](template-functions-array.md#union)
5455

56+
For Bicep files, use the Bicep [array](../bicep/bicep-functions-array.md) functions.
57+
5558
<a id="coalesce" aria-hidden="true"></a>
5659
<a id="equals" aria-hidden="true"></a>
5760
<a id="less" aria-hidden="true"></a>
@@ -70,6 +73,8 @@ Resource Manager provides several functions for making comparisons in your templ
7073
* [greater](template-functions-comparison.md#greater)
7174
* [greaterOrEquals](template-functions-comparison.md#greaterorequals)
7275

76+
For Bicep files, use the Bicep [coalesce](../bicep/operators-logical.md) logical operator. For comparisons, use the Bicep [comparison](../bicep/operators-comparison.md) operators.
77+
7378
<a id="deployment" aria-hidden="true"></a>
7479
<a id="parameters" aria-hidden="true"></a>
7580
<a id="variables" aria-hidden="true"></a>
@@ -81,6 +86,8 @@ Resource Manager provides the following functions for working with dates.
8186
* [dateTimeAdd](template-functions-date.md#datetimeadd)
8287
* [utcNow](template-functions-date.md#utcnow)
8388

89+
For Bicep files, use the Bicep [date](../bicep/bicep-functions-date.md) functions.
90+
8491
## Deployment value functions
8592

8693
Resource Manager provides the following functions for getting values from sections of the template and values related to the deployment:
@@ -90,6 +97,8 @@ Resource Manager provides the following functions for getting values from sectio
9097
* [parameters](template-functions-deployment.md#parameters)
9198
* [variables](template-functions-deployment.md#variables)
9299

100+
For Bicep files, use the Bicep [deployment](../bicep/bicep-functions-deployment.md) functions.
101+
93102
<a id="and" aria-hidden="true"></a>
94103
<a id="bool" aria-hidden="true"></a>
95104
<a id="if" aria-hidden="true"></a>
@@ -108,6 +117,8 @@ Resource Manager provides the following functions for working with logical condi
108117
* [or](template-functions-logical.md#or)
109118
* [true](template-functions-logical.md#true)
110119

120+
For Bicep files, use the Bicep [bool](../bicep/bicep-functions-logical.md) logical function. For other logical values, use Bicep [logical](../bicep/operators-logical.md) operators.
121+
111122
<a id="add" aria-hidden="true"></a>
112123
<a id="copyindex" aria-hidden="true"></a>
113124
<a id="div" aria-hidden="true"></a>
@@ -134,6 +145,8 @@ Resource Manager provides the following functions for working with integers:
134145
* [mul](template-functions-numeric.md#mul)
135146
* [sub](template-functions-numeric.md#sub)
136147

148+
For Bicep files that use `int`, `min`, and `max` use Bicep [numeric](../bicep/bicep-functions-numeric.md) functions. For other numeric values, use Bicep [numeric](../bicep/operators-numeric.md) operators.
149+
137150
<a id="json" aria-hidden="true"></a>
138151

139152
## Object functions
@@ -149,6 +162,8 @@ Resource Manager provides several functions for working with objects.
149162
* [null](template-functions-object.md#null)
150163
* [union](template-functions-object.md#union)
151164

165+
For Bicep files, use the Bicep [object](../bicep/bicep-functions-object.md) functions.
166+
152167
<a id="extensionResourceId" aria-hidden="true"></a>
153168
<a id="listkeys" aria-hidden="true"></a>
154169
<a id="list" aria-hidden="true"></a>
@@ -174,6 +189,8 @@ Resource Manager provides the following functions for getting resource values:
174189
* [subscriptionResourceId](template-functions-resource.md#subscriptionresourceid)
175190
* [tenantResourceId](template-functions-resource.md#tenantresourceid)
176191

192+
For Bicep files, use the Bicep [resource](../bicep/bicep-functions-resource.md) functions.
193+
177194
<a id="managementgroup" aria-hidden="true"></a>
178195
<a id="resourcegroup" aria-hidden="true"></a>
179196
<a id="subscription" aria-hidden="true"></a>
@@ -188,6 +205,8 @@ Resource Manager provides the following functions for getting deployment scope v
188205
* [subscription](template-functions-scope.md#subscription) - can only be used in deployments to a resource group or subscription.
189206
* [tenant](template-functions-scope.md#tenant) - can be used for deployments at any scope.
190207

208+
For Bicep files, use the Bicep [scope](../bicep/bicep-functions-scope.md) functions.
209+
191210
<a id="base64" aria-hidden="true"></a>
192211
<a id="base64tojson" aria-hidden="true"></a>
193212
<a id="base64tostring" aria-hidden="true"></a>
@@ -256,9 +275,11 @@ Resource Manager provides the following functions for working with strings:
256275
* [uriComponent](template-functions-string.md#uricomponent)
257276
* [uriComponentToString](template-functions-string.md#uricomponenttostring)
258277

278+
For Bicep files, use the Bicep [string](../bicep/bicep-functions-string.md) functions.
279+
259280
## Next steps
260281

261282
* For a description of the sections in an ARM template, see [Understand the structure and syntax of ARM templates](./syntax.md).
262283
* To merge multiple templates, see [Using linked and nested templates when deploying Azure resources](linked-templates.md).
263284
* To iterate a specified number of times when creating a type of resource, see [Resource iteration in ARM templates](copy-resources.md).
264-
* To see how to deploy the template you've created, see [Deploy resources with ARM templates and Azure PowerShell](deploy-powershell.md).
285+
* To see how to deploy the template you've created, see [Deploy resources with ARM templates and Azure PowerShell](deploy-powershell.md).

0 commit comments

Comments
 (0)