Severity : Medium
Description: Enabling Availability Sets ensures that during either a planned or unplanned maintenance event, the virtual machine will still be available. Remediation Steps : Virtual Machine Availability Sets can only be configured when creating a new virtual machine. Recreate the Virtual Machine with Availability Sets enabled.This control ensures that for Azure virtual machines availability set feature is enable. Azure Availability set is a logical grouping of VMs that allows Azure to understand how application is built to provide for redundancy and availability. Azure cloud architecture guidance recommend that two or more VMs are created within an availability set to provide for a highly available application and to meet the Azure SLA.
Remediation Steps:
Login to Azure Portal using https://portal.azure.com.
Perform following to create Availability set :
Navigate to Create a resource.
Use search filter to find Availability Set.
Select Availability Set and select Create.
Select Subscription from the list.
Select Resources Group from the list.
Enter Name for availability set.
Select Region.
Enter the Fault Domain (min 2) and Update Domain (min 2).
Select Use managed Disks to Yes.
On the Advanced tab , Select Proximity placement group if physical proximity is required.
On Tags, Enter tag names.
Select Review + Create, Select Create.
Perform following to create Virtual machines in the Availability set:
Navigate to Create a resource.
Use search filter to find Virtual Machines.
Select Virtual Machines and select Create.
To Select Availability Set, for the virtual machine, On the Basic tab, Select Availability Set in Availability Options. Then in Availability Set, Select the availability set created above. Enter all other required information for Virtual machines to create the VM in availability set.
Important:
An existing VM can’t be added to an availability set after it's created. To add a VM to availability set , it new VM needs to replace the old VM in availability set.
Reference: