ARM 模板函数ARM template functions

本文介绍可以在 Azure 资源管理器模板(ARM 模板)中使用的所有函数。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.

若要创建自己的函数,请参阅用户定义函数To create your own functions, see User-defined functions.

大多数函数在部署到资源组、订阅、管理组或租户时工作方式相同。Most functions work the same when deployed to a resource group, subscription, management group, or tenant. 某些函数并非可以在所有范围内使用。A few functions can't be used in all scopes. 下表对这些函数进行了说明。They're noted in the lists below.

任何函数Any function

任何函数在 Bicep 中可用来帮助解决有关数据类型警告的问题。The any function is available in Bicep to help resolve issues around data type warnings.

数组函数Array functions

Resource Manager 提供以下用于处理数组的函数。Resource Manager provides several functions for working with arrays.

比较函数Comparison functions

Resource Manager 提供了多个用于在模板中进行比较的函数。Resource Manager provides several functions for making comparisons in your templates.

日期函数Date functions

资源管理器提供了以下用于处理日期的函数。Resource Manager provides the following functions for working with dates.

部署值函数Deployment value functions

Resource Manager 提供以下函数,用于从与部署相关的模板和值部分获取值:Resource Manager provides the following functions for getting values from sections of the template and values related to the deployment:

逻辑函数Logical functions

资源管理器提供以下用于处理逻辑条件的函数:Resource Manager provides the following functions for working with logical conditions:

数值函数Numeric functions

Resource Manager 提供以下用于处理整数的函数:Resource Manager provides the following functions for working with integers:

对象函数Object functions

Resource Manager 提供以下用于处理对象的函数。Resource Manager provides several functions for working with objects.

Resource functionsResource functions

Resource Manager 提供以下用于获取资源值的函数:Resource Manager provides the following functions for getting resource values:

字符串函数String functions

Resource Manager 提供以下用于处理字符串的函数:Resource Manager provides the following functions for working with strings:

后续步骤Next steps