Deploying Your First ARM Template
Learn to write and deploy your first Azure ARM template using Azure CLI. This lab guides you in creating a Virtual Network, Subnet, and Route Table with parameters and variables.

Lab overview
Azure Resource Manager (ARM) templates are a powerful Infrastructure as Code (IaC) solution that allows you to define, deploy, and manage Azure resources using JSON. By leveraging ARM templates, you can automate infrastructure provisioning, ensure consistency across deployments, and reduce manual configuration errors. Instead of manually setting up resources in the Azure Portal, ARM templates enable you to define infrastructure as reusable code, making deployments faster, repeatable, and more reliable.
In this lab, you will learn the fundamentals of writing and deploying an ARM template using Azure CLI. You will create a Virtual Network (VNet), Subnet, and Route Table, using parameters and variables to make your template flexible and scalable.
Learning Objectives
Upon completing this lab, you will be able to:
- Understand the structure and components of an ARM template, including resources, parameters, and variables.
- Write an ARM template to create a Virtual Network, Subnet, and Route Table.
- Deploy an ARM template using Azure CLI and pass custom parameter values.
- Verify deployed resources using Azure CLI commands.
- Apply best practices for defining and managing ARM templates.
Who is this lab for?
This lab is designed for:
- Cloud Engineers seeking to automate Azure infrastructure deployment.
- DevOps Professionals looking to implement Infrastructure as Code (IaC).
- Network Administrators configuring Azure networking resources.
- Anyone new to ARM templates or seeking hands-on experience with Azure resource provisioning.
Verified against your live environment
An automated validation engine inspects your actual resources and configurations as you work. Completion means the task was performed — not multiple choice, real-world proficiency.
More labs like this
Deploy a Full Azure Environment Using Bicep Infrastructure as Code
Write modular Bicep templates to deploy a VNet, App Service, SQL Database, and Key Vault, then deploy the full environment using Azure CLI.
Deploy an Azure Web App using an ARM Template
Learn how to deploy an Azure Web App using an ARM Template using Azure CLI
Creating and Deploying Azure Functions using Azure Functions Core Tools
In this lab, you will learn how to create and deploy Azure Functions using Azure Functions Core Tools.
Environment
Every lab includes
- Real environment, pre-credentialed
- Automated checks on every step
- Isolated sandbox, auto cleanup
- AI-recommended next steps
Lab curriculum
- 01
Logging into Azure CLI
- 02
Deploying your first ARM template
1 automated check
Not the lab you were looking for?
Browse 150+ hands-on labs across AWS, Azure, Kubernetes, Docker, and cloud security.