AZ-104 Certification Notes
Chapter 7.6 - ARM Template Variables
ARM Templates - Variables
- Variables
- Template variables are used to simplify your arm templates. You transform parameters and resource properties using functions and ten assign them into a reusable variable
- To call a variable you use the variable() function
- Nested Variables
- You can use json object to have nested variables to scope your variables for multiple use cases
Scoping/Nesting variables based on environment
Using params to choose the environment
Referencing nested variables e.g. Variables ()[].property
Practice Quiz
-
To call a variable you use the _____ function
- object()
- string()
- variable()
- resource()
-
What are ARM Template variables?
- Template variables are used to simplify your ARM templates. You may transform parameters and resource properties using functions and then assign them into a reusable variable.
-
What are ARM Template Nested Variables?
- Nested Variables can use JSON object to have nested variables to scope your variables for multiple use cases.