ARM Template Structure
- ARM Template is a json file that defines the infrastructure which you want to create
- Refer Here to understand the syntax of ARM Template
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "",
"apiProfile": "",
"parameters": { },
"variables": { },
"functions": [ ],
"resources": [ ],
"outputs": { }
}
Activity 1: Lets create a virtual network using ARM Template
- Manual steps:
- Create a resource group
- Inputs:
- Location
- Resource Group
- Name of Vnet
- address space of virtual network
- subnets
- Lets try to write an ARM Template for this
- Create the basic skeleton with only required fields Refer Here
- For creating resources we would be using template reference Refer Here
- For virtual network Refer Here
- Refer Here for the changes done.
- Now create a resource group, as we are going to do resource group deployment
- Now create a custom template deployment







-