AZ-104 Certification Notes
Chapter 2.4 - Using ARM Templates
Exampling ARM Templates
- ARM Templates
- Infrastructure as Code (IaC)
- Codify our infrastructure, using this ARM template, we can pass it into the Azure Resource Manager for deployment, it will find the necessary providers.
- Deploy environments quickly
- It will quickly deploy our environments at various scopes, such as subscriptions or a resource group.
- Repeatable deployments
- Infrastructure as Code (IaC)
Components of ARM Templates
ARM Template:
{
"$schema": "https://schema.management.azure.com"
,
"contentVersion":
"1.0.0.0",
"parameters": {},
"variables": {},
"resources": {},
"outputs": {}
}
- The parameters and variables components are used to pass information to the template.
- The resources component is used to define resources in the template.
- The outputs component is used to return output from the execution of the template.
Key Takeaways
- ARM Template
- Declarative JSON (Infrastructure as Code)
- Using parameters, variables, resources, outputs, etc in ARM templates allows us to create resources inside of Azure
- Quickly deploy repeatable and modular environments
- Declarative JSON (Infrastructure as Code)