June 2020
Intermediate to advanced
432 pages
11h 57m
English
Functions are used to allow for dynamic evaluation of properties in ARM templates. Calling functions uses a notation very similar to that of many programming languages: functionName(arg1, arg2, …) functions can return either a value such as string or int or an object or array. When an object is returned, any property can be accessed using the .propertyName notation. Accessing elements in an array can be done using [position]. To indicate which parts of a string should be evaluated as a function, they can be enclosed in brackets:
"myVariable": "[concat('myAppService-', parameters('environmentName'))]"
The preceding example shows two example functions. First, the concat function is called to concatenate two string values. One is hardcoded ...
Read now
Unlock full access