Deploy Azure VMs for Multi-Tier Apps
Learn On Demand
Learn On Demand Pro Series

1 hour

This IT Pro Challenge helps learners understand how to use Azure portal to create multiple virtual networks with bi-directional virtual network peering in support of a multi-tier web application. Learners will also create availability sets in order to deploy multiple virtual machines, and then verify connectivity between the web and app tiers.

Start your free 7-day trial and become one of the 3 million Cybersecurity and IT professionals advancing their career goals

Sign up with

Already have an account? Sign In »


In this IT Pro Challenge, learners will understand how to support a multi-tier web application by creating multiple virtual networks that use virtual network peering to ensure secure bi-directional communication and to use availability sets to deploy virtual machines. Finally, as a proof of concept, learners will use the ipconfig command to verify the IP address of the web tier and the ping utility to verify that there is connectivity between the web tier and the app tier. The skills acquired in this lab are important for careers as a network or system administrator.


The scenario for this hands-on lab is that you are a system administrator, and your company is migrating its primary web apps and databases from an on-premise datacenter to Azure. To accomplish this task, you need to create and deploy multiple Azure virtual machines in a multi-tier (web, app, and db) architecture using multiple virtual networks, each with subnets. You are given a resource group with no resources; you will create resources as part of this lab.

Create Azure virtual networks for a multi-tier web app

First, you are going to create three virtual networks (vnetweb, vnetapp, and vnetdb). Then you need to create a virtual network peering from vnetweb to vnetapp. To ensure secure bi-directional communication, you will then create a second virtual network peering from vnetapp to vnetweb. You will repeat this process to create a virtual network peering from vnetapp to vnetdb and from vnetdb to vnetapp.

Deploy Azure virtual machines for a multi-tier web app

Now you are going to create three availability sets (avweb, avapp, and avdb) and configure each to use three fault domains, five update domains, and to support managed disks. Then you will deploy two virtual machines to the avweb and avapp availability sets and one virtual machine to the avdb availity set. When you are finished, you should have an availability set for each tier (web, app, and db), two virtual machines for the web tier and app tier, and one virtual machine for the db tier.

Verify connectivity in a multi-tier web app

Finally, you will use Remote Desktop Protocol (RDP) to connect to the web tier virtual machine (vmweb) and use the ipconfig command to verify the IP address. You will use the ping utility to verify connectivity between vnetweb and vnetapp.

Summary Conclusion

By taking this virtual lab, you will learn how to create and deploy Azure virtual machines and virtual networks for a multi-tier web app and verify the connectivity as a proof of concept.