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
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. The solution video uses the Azure Custom Template Builder in the portal.
Make sure to include:
- 1 Virtual Network with 2 subnets
- 1 Storage Account
- 1 Virtual Machine (Standard_B1s)
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.
- Deploy the ARM Template
This step is all in the title. Deploy your template! Use the same location as your lab’s pre-deployed resource group.
- 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. The solution video also shows you how easily save off an ARM template for development in an IDE or other tooling.
- Build another environment with a Virtual Machine in each subnet.