Azure Resource Manager template functions
This article describes all the functions you can use in an Azure Resource Manager template.
You add functions in your templates by enclosing them within brackets:
functionName(arg1,arg2,arg3). You reference properties by using the dot and [index] operators.
A template expression cannot exceed 24,576 characters.
Template functions and their parameters are case-insensitive. For example, Resource Manager resolves variables('var1') and VARIABLES('VAR1') as the same. When evaluated, unless the function expressly modifies case (such as toUpper or toLower), the function preserves the case. Certain resource types may have case requirements irrespective of how functions are evaluated.
To create your own functions, see User-defined functions.
Array and object functions
Resource Manager provides several functions for working with arrays and objects.
Resource Manager provides several functions for making comparisons in your templates.
Deployment value functions
Resource Manager provides the following functions for getting values from sections of the template and values related to the deployment:
Resource Manager provides the following functions for working with logical conditions:
Resource Manager provides the following functions for working with integers:
Resource Manager provides the following functions for getting resource values:
Resource Manager provides the following functions for working with strings:
- For a description of the sections in an Azure Resource Manager template, see Authoring Azure Resource Manager templates
- To merge multiple templates, see Using linked templates with Azure Resource Manager
- To iterate a specified number of times when creating a type of resource, see Create multiple instances of resources in Azure Resource Manager
- To see how to deploy the template you have created, see Deploy an application with Azure Resource Manager template