In this lab, we’ll use the Azure Custom Template editing tool to build and deploy from an ARM Template. The goal of this lab is to introduce you to how ARM templates are built and teach you how to use one of the more underrated tools in the Azure Console.
* Build a basic ARM Template from scratch
* Deploy from the ARM Template you’ll build
* Save the ARM template for use in future builds
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create a Basic Arm Template
ARM Templates can be built using Quickstart Templates, the Azure Custom Template Builder, or from scratch.
Make sure to include:
- 1 Virtual Network with 2 subnets
- 1 Storage Account
- 1 Virtual Machine
Challenge: Create Your Own Template From Scratch
Instead of using a quickstart template, try to build your own from scratch using just an IDE such as Visual Studio Code. You can find Microsoft’s guide on template structure at the link below. Go nuts!
https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-syntax- Deploy the ARM Template
This step is all in the title. Deploy your template!
- Verify Environment Deployed Successfully
Once all objects have been deployed, verify the following:
- Your Resource Group has 1 Virtual Network
- You have 2 subnets within that Virtual Network
- You have a new storage account
- You have 1 Virtual Machine
Having verified all this, you can continue to play around with your template and deploy additional resources, or simply exit the lab.
Bonus Points
Build another environment with a Virtual Machine in each subnet.