Implement IaaS solutions, ARM templates Flashcards
What does ARM Templates stand for
Azure Resource Manager Templates. Azure Resource Manager is the interface for managing and organizing cloud resources. Think of Resource Manager as a way to deploy cloud resources.
What is the main goal of ARM Templates
Simplify resource deployment
ARM Format
JSON, like:
{ "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "", "parameters": { }, "variables": { }, "functions": [ ], "resources": [ ], "outputs": { } }
ARM Format main parts?
Schema, Parameters, variables, functions, resources and outputs.
What are ARM Parameters used for
Values that are provided when deployment is executed to customize resource deployment.
What are ARM Variables used for
This is where you define values that are used throughout the template. Variables can help make your templates easier to maintain. For example, you might define a storage account name one time as a variable and use that variable throughout the template. If the storage account name changes, you need to only update the variable.
What are ARM functions used for
This is where you define procedures that you don’t want to repeat throughout the template. Like variables, functions can help make your templates easier to maintain.
What are ARM Resources used for
This section is where you define the Azure resources that make up your deployment.
What are ARM Outputs used for
This is where you define any information you’d like to receive when the template runs. For example, you might want to receive your VM’s IP address or FQDN – information you do not know until the deployment runs.
How to write a Resource Manager template?
From Scratch or modify existing. Using Azure Portal to export templates from existing resources
. Declarative automation means that:
- You define both what resources you need as well as the steps needed to create them.
- You define what resources you need but not how to create them.
- You define what resources you need, and the system ensures that those resources are always available.
You define what resources you need but not how to create them.
In the case of Resource Manager templates, Resource Manager takes care of these details for you.
What does Resource Manager do when receiving JSON Template
Converting Template into REST API Operation and sending to appropriate target.