Creating and Managing Azure VMs with the Azure CLI
2 h 20 m
Lab Overview
In this lab, you will use the Azure cross-platform CLI tools to learn the fundamentals of creating and managing Azure Virtual Machines. You will start with using the Azure Cloud Shell, and then move on to creating resources such as a virtual network, virtual machines and finally a load balancer to deploy a highly available solution.

Related Learning Path(s):
AZ - 104 Azure Administrator
Automating Azure Infrastructure with the Azure CLI
  • Setup your Mac or a Windows computer to access Azure
  • Authenticate to Microsoft Azure using the CLI tools
  • Configure and manage ARM policies and tags
  • Manage Role Based Access Control
  • Deploy an ARM template from GitHub and CLI
  • Create and manage virtual machines and virtual networks
  • Configure the load balancer

In this exercise, you will login to the Azure Management portal to start the cloud shell. 

In this lab, you will use the Azure CLI to deploy a new resource group, and create a virtual network. 
In this lab, you will use the Azure CLI to deploy a storage account, network settings and virtual machines. 
Now that you have created virtual machines in Azure, you will configure them leveraging Azure’s virtual machine extensions.  In this lab, you will configure the web server with PHP and Apache and MySQL on the database virtual machine.

In this exercise, you will use the Azure CLI to view the status of your virtual machine and learn how to stop and start it.  You will also learn other management activities such as attaching additional storage, working with virtual networks and network security groups.

In this exercise, you will use the Azure CLI to deploy a second virtual machine in the same availability set and then configure the load balancer on port 80.

Real-Time Lab
Not Registered?
Create Account
Already Registered?
What are Labs?

Labs provide a live environment to get hands-on experience using the same tools and services in the real world.

Learn More