In this blog post, I will show you how to create a Virtual Machine Availability Set on Microsoft Azure using the Azure Portal and using Azure Cloud Shell.
About Availability Set
Azure Availability Set isolate virtual machines from each other by deploying them across multiple Virtual Machine Hosts, Server rack, Storage and Network devices.
By doing that, Virtual Machines in the same availability Set are not affected in the case of a fault.
If you have a Web Application, you would typically keep your Front End Servers in one set and your backend servers in another set.
Deploying
Deploying Availability Set can only be done at the creation of the Virtual Machine; once a VM has been deployed without Availability Set you cannot add it later.
We can create availability Set using the Azure Portal or using Azure Cloud Shell.
To create an Availability Set using the Portal, I create a new Virtual machine, Select or create a new Resource Group
![](https://www.ntweekly.com/wp-content/uploads/2019/02/022619_2342_CreateAnAva1.png)
When you create a new Availability Set, you have the option to select the number of Fault Domains and Update Domains.
Fault Domains means that the VMs sit across two different racks.
Update domains mean that OS updates will be updated on one update domain each time.
![](https://www.ntweekly.com/wp-content/uploads/2019/02/022619_2342_CreateAnAva2.png)
Next, I continue filling the VM information and click create to complete the process.
![](https://www.ntweekly.com/wp-content/uploads/2019/02/022619_2342_CreateAnAva3.png)
View Availability Set Details
To check the availability Set details using the Microsoft Azure Portal, Click on the VM and select Availability Set
![](https://www.ntweekly.com/wp-content/uploads/2019/02/022619_2342_CreateAnAva4.png)
From the Availability Set page, Click on the Set name, and you will see all the details listed in the page.
![](https://www.ntweekly.com/wp-content/uploads/2019/02/022619_2342_CreateAnAva5.png)
You can also use Cloud Shell and view the availability set details using the Az command below.
az VM availability-set list
![](https://www.ntweekly.com/wp-content/uploads/2019/02/022619_2342_CreateAnAva6.png)
Below, you can see all the details and the number of Domain and update fault etc.
![](https://www.ntweekly.com/wp-content/uploads/2019/02/022619_2342_CreateAnAva7.png)
In my next, article I will show you how to delete a Microsoft Azure Resource Group using Cloud Shell.