Deploy a highly available load balanced web service in Azure using PowerShell

In a past articles I went over deploying Azure ARM VMs using PowerShell, and deploying them in an Availability Set which ensures that the VMs reside in different fault and upgrade domains. In this article, we go a step further to deploy a web site on these VMs and setup an Internet facing load balancer.

First we use the Deploy-ARMVM.ps1 PowerShell script to deploy 3 VMs in an availability set:

Next we deploy IIS on each of the 3 VMs: