Scenario
- Solution: Infrastructure as Code Using ARM Templates (Terraform could be potential Alternative)
Expermient
- Lab:
- Create a Resource Group
- Create a virtual network
Azure Resource Manager
- Azure Resource Manager is the deployment and management service of the Azure.
- Refer Here for Azure Resource Manager
- Refer Here for registered provider
- Azure Resource Manager uses Deployment to deploy template.
- Template is a Json file representing resources to be created
Mangement Groups
- Simplify managing subscriptions
Scope
Linking this to Story
- Steve and his team should be able to create the templates for deploying/creating infrastructure
Creating Templates
-
Prerequisites:
- JSON
- Visual Studio Code: Install Extension and see the reference image and documentation over here
-
Basic Structure of Template Refer Here
-
Required elements
- $schema
- contentVersion
- resources
-
Minimal template looks as shown below
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "0.0.0.1",
"resources": [ ]
}
- To create resources follow as shown below
- Navigate to here
- Find your resource in the highlighted area in the image
- Now search for your resource
- The resource structure will be shown