Reduce Azure VM maintenance and hardware risks with an availability set
An Azure Availability Set is a logical group that asks the platform to distribute virtual machines (VMs) across fault domains and update domains. It reduces the chance that some hardware failures or planned maintenance affect every VM at once. It does not replicate VMs across datacenters or availability zones, and it does not automatically handle application data replication, traffic routing, or recovery. ([Microsoft Learn: Availability sets overview](https://learn.microsoft.com/en-us/azure/virtual-machines/availability-set-overview), [Azure VM high-availability best practices](https://learn.microsoft.com/en-us/azure/virtual-machines/disks-high-availability))
Reduce Azure VM maintenance and hardware risks with an availability set
An Azure Availability Set is a logical group that asks the platform to distribute virtual machines (VMs) across fault domains and update domains. It reduces the chance that some hardware failures or planned maintenance affect every VM at once. It does not replicate VMs across datacenters or availability zones, and it does not automatically handle application data replication, traffic routing, or recovery. (Microsoft Learn: Availability sets overview, Azure VM high-availability best practices)
Availability sets can be useful in a region without availability zones when you want to spread some correlated failures while keeping VMs close together. Azure recommends Virtual Machine Scale Sets (VMSS) with flexible orchestration for a broader set of high-availability and management features. Consider multiple availability zones when you need stronger datacenter-level isolation. (Microsoft Learn: Availability sets overview, Azure VM availability options)
What problem does an availability set address?
An availability set distributes related VMs among fault domains representing separate groups of physical infrastructure, and update domains representing groups that might be restarted together. Azure assigns VMs to these groups to lower the chance that a correlated hardware failure or planned maintenance interrupts all instances at once. (Microsoft Learn: Availability sets overview)
A fault domain is a group of VMs sharing a common power source and network switch. A hardware or power problem in one domain can affect its VMs without necessarily affecting the others. An update domain is a group of VMs and hardware that can be restarted together during planned maintenance. Azure restarts one update domain at a time and allows time for it to recover before moving on. This limits platform maintenance concurrency; it does not repair an application fault. (Microsoft Learn: Availability sets overview)
How are fault and update domains assigned?
Azure configures up to three fault domains and up to 20 update domains when an availability set is created. Depending on the region and managed-disk configuration, the supported fault-domain count can be two or three. These counts cannot be changed after creation, so check support for the target region first. (Microsoft Learn: Availability sets overview)
Azure assigns domain membership; you do not select a specific fault domain for each VM. With five update domains, for example, the sixth VM reuses the first update domain, the seventh reuses the second, and so on. More VMs than domains do not each get a unique domain. VMs in managed availability sets use managed disks, and disk fault domains align with their parent VM. (Microsoft Learn: Availability sets overview)
Consider a hypothetical four-VM web tier in a region with two supported fault domains. Azure might distribute two VMs to each domain, and planned maintenance proceeds by update-domain groups. If one fault domain fails, VMs in the other may remain. The platform decides the placement, and an application still needs a load balancer and enough surviving capacity to keep serving requests. This example illustrates the model; it does not predict a deployment result.
What does an availability set protect, and what does it not?
Availability sets reduce the chance of correlated downtime from some physical hardware failures and planned platform maintenance. They do not prevent shared infrastructure incidents, such as a datacenter-level network outage, from affecting multiple fault domains. They do not cover a datacenter-wide or region-wide outage, operating-system defects, application bugs, or data corruption. (Microsoft Learn: Availability sets overview, Azure VM high-availability best practices)
Creating the set also does not automatically move application traffic. For an available application, deploy at least two VMs, configure health checks and an Azure Load Balancer or application routing, and plan database replication, leader promotion, and recovery capacity. Microsoft says two or more VMs in an availability set can meet the applicable VM SLA conditions; check the current SLA terms, VM configuration requirements, and exclusions for your workload. (Azure VM availability options, Azure VM high-availability best practices)
How does it compare with availability zones and VM Scale Sets?
An availability set spreads VMs among fault domains within a region and cannot be combined with an availability-zone deployment. Availability zones are physically separate groups of datacenters with distinct power, networking, and cooling, providing stronger isolation from datacenter failures. Multi-zone placement can offer more resilience than an availability set, although it may introduce higher network latency; verify regional and service support. (Azure VM high-availability best practices, Azure VM availability options)
VM Scale Sets centrally create, manage, update, and optionally scale a group of VMs. Availability sets primarily control how VMs are assigned to fault and update domains. Azure currently recommends Flexible orchestration VM Scale Sets for high availability with the widest feature set. An availability set remains an option in regions without zones, where close VM-to-VM proximity matters, or when an existing design specifically needs this model. (Microsoft Learn: Availability sets overview, Azure VM high-availability best practices)
How do you design or review an availability set?
**Define the failure scope.** Decide whether you need to reduce exposure to host-level failures and planned maintenance, or also need datacenter/zone protection. An availability set alone cannot provide the latter.
**Check the region and VM configuration.** Confirm VM size availability, zone support, the fault-domain count supported by the region, and disk constraints. Managed availability sets use managed disks.
**Create the group with the VMs.** Select the availability set in the same region when creating VMs. Do not assume existing VMs can simply be added later; check migration and deployment options before building the plan.
**Deploy multiple instances.** Two or more VMs are normally needed for availability. Azure assigns domains; inspect each VM’s Fault Domain and Update Domain in the portal. Avoid stopping or deallocating an earlier VM between deployments: under documented circumstances, a later VM can land in the same fault domain.
**Connect the application.** Route requests to healthy VMs and separately configure stateful data replication, failure detection, and recovery.
**Verify and document operations.** Review domain assignments and VM health in Azure Portal, plus maintenance notices and application health checks. Rehearse failover only in an approved nonproduction environment after assessing data and workload risks. Prepare recovery steps for capacity shortages, replication lag, or failed health probes. ([Microsoft Learn: Availability sets overview](https://learn.microsoft.com/en-us/azure/virtual-machines/availability-set-overview))
Check the Fault Domain and Update Domain columns in the availability set. If VMs share a fault domain, review deployment history and disk alignment to understand whether the intended distribution was achieved. Track platform placement separately from application health and traffic failover. (Microsoft Learn: Availability sets overview)
Official documentation
[Azure VM availability sets overview](https://learn.microsoft.com/en-us/azure/virtual-machines/availability-set-overview)
[High-availability best practices for Azure VMs and managed disks](https://learn.microsoft.com/en-us/azure/virtual-machines/disks-high-availability)
[Availability options for Azure Virtual Machines](https://learn.microsoft.com/en-us/azure/virtual-machines/availability)
[Reliability in Azure Virtual Machines](https://learn.microsoft.com/en-us/azure/reliability/reliability-virtual-machines)