Protecting VMs with Availability Sets
This lesson explains fault domains, update domains and the rules of availability sets.
Learning outcomes
After completing this lesson, you will be able to:
- Describe fault domains and update domains.
- Explain the protection and SLA that availability sets provide.
- Identify the limitations of availability sets.
Fault domains and update domains
An availability set is a logical grouping of VMs within one datacentre. Azure places its VMs across fault domains and update domains. A fault domain is a group of hardware that shares a power source and network switch, similar to a rack; an availability set has up to 3 fault domains (2 or 3 depending on the region), so a rack failure affects at most one third of the VMs. An update domain is a group of VMs that Azure may reboot together during planned host maintenance; an availability set has up to 20 update domains (5 by default), and only one update domain is rebooted at a time.
With two VMs and the defaults, the VMs are placed in different fault domains and different update domains, so a single hardware failure or maintenance event leaves one VM running. Microsoft offers a 99.95% SLA for two or more VMs in the same availability set. A load balancer in front of the VMs directs traffic to the instances that are running.
The following diagram shows how ten VMs in an availability set spread across fault domains and update domains.

Fault and update domains
Rules and limitations
A VM can join an availability set only when it is created; an existing VM cannot be added or moved into a set without recreating it from its disks. VMs in the set should run the same role, such as all web servers, so that each tier has its own set. Availability sets are free, and their VMs must use managed disks with the Aligned SKU, which aligns disk storage fault domains with compute fault domains.
Availability sets protect against failures within one datacentre; they do not protect against the loss of the datacentre itself. A VM cannot be in an availability set and an availability zone at the same time. Because all VMs share hardware clusters, resizing to a size that the cluster does not offer requires deallocating every VM in the set. For new deployments in regions with zones, Microsoft recommends availability zones or a Flexible scale set instead.
Availability set rules
Distributing VMs
An availability set has 3 fault domains and 5 update domains. An administrator deploys 10 VMs into it. During planned maintenance, what is the maximum number of VMs that can be unavailable at the same time, and how many VMs can a single rack failure affect at most?
Ten VMs are spread across 5 update domains, two per update domain, and only one update domain is rebooted at a time, so at most 2 VMs are unavailable during maintenance. They are spread across 3 fault domains as 4, 3 and 3, so a single fault domain failure affects at most 4 VMs.
Can an existing VM be added to an availability set?
Show answer
No. A VM joins an availability set only at creation; otherwise it must be recreated.
Exam Tips
Remember for the exam
- Up to 3 fault domains and 20 update domains (5 by default).
- Two or more VMs in an availability set: 99.95% SLA.
- VMs join an availability set only at creation.
- Availability sets do not protect against a datacentre failure.