D3 · Compute

Compute Availability and Redundancy

Azure offers multiple options to guarantee that VMs stay available during hardware failures, planned maintenance, or datacenter disasters. The AZ-104 tests Availability Sets, Availability Zones, and their impact on SLA.

Icon-compute-21

for Azure compute

ConfigurationSLAMax downtime/monthConditions
Single VM with Premium SSD99.9%~43.8 minOS disk and data disk on Premium SSD or Ultra
Single VM with Standard SSD99.5%~3.6 hoursOS disk on Standard SSD
Availability Set (2+ VMs)99.95%~21.9 minAt least 2 VMs in the Availability Set
Availability Zones (2+ VMs in different zones)99.99%~4.38 minAt least 2 VMs in 2 different zones of the same region
VMSS (Flexible, multi-zone)99.99%~4.38 minInstances distributed across multiple Availability Zones

For the exam — the three key SLAs

Memorize: 99.9% (single VM + Premium SSD) → 99.95% (Availability Set, 2+ VMs) → 99.99% (Availability Zones, 2+ VMs). Each tier raises the SLA by protecting against a different layer of failure.

Fault Domains and Update Domains

Fault Domain (FD)

A Fault Domain is a group of hardware that shares a power source and network switch. If there's a hardware failure (power, networking), it only affects the VMs in that FD.

• A typical datacenter has 2-3 FDs

• VMs in the same Availability Set are automatically distributed across different FDs

• Maximum of 3 FDs per Availability Set

• A failure in FD1 → FD2 and FD3 keep running

Update Domain (UD)

An Update Domain is a logical group of VMs that Azure updates/reboots during planned maintenance. Azure never reboots two UDs simultaneously.

• Azure updates one UD at a time, waiting 30 min between UDs

• Up to 20 UDs per Availability Set (default is 5)

• While one UD is under maintenance, VMs in other UDs keep serving traffic

• If you have 2 VMs in 2 different UDs: at least 1 is always active during maintenance

Icon-compute-25

Availability Sets

An groups VMs and distributes them across different Fault Domains and Update Domains within the same datacenter. It guarantees that not all the VMs fail at the same time.

How to configure it

1Create the Availability Set BEFORE creating the VMs (it cannot be changed afterward)
2Select: Fault domains (2 or 3) and Update domains (1-20, default 5)
3When creating each VM: select the already-created Availability Set
4Azure automatically distributes the VMs across different FDs and UDs

Limitations of Availability Sets

  • → Protects within a single datacenter — if the entire datacenter fails, you lose all the VMs
  • → You cannot move a VM to a different AS after creating it
  • → Not compatible with Availability Zones (they are mutually exclusive)
  • → Microsoft recommends migrating to VMSS Flexible for new workloads

Managed Disk alignment

With Managed Disks in an Availability Set, the disks are also distributed across different storage fault domains. Without this, multiple VMs in different FDs could have disks on the same storage rack and fail together.

Availability Zones

are physically separate datacenters within an Azure region (each zone has its own independent power, cooling, and networking). Distributing VMs across zones protects against a full datacenter failure.

Characteristics

• Most Azure regions have 3 AZs (some have 2, some still have 0)

• Zones are ≥1 km apart from each other (latency <2ms between zones)

• When creating a VM: explicitly select Zone 1, 2, or 3 (or "no preference")

• Zone-redundant services: the Azure service is automatically distributed across zones (e.g. ZRS Storage, SQL Hyperscale)

• Zonal services: you choose which zone to deploy to (VMs, disks, IPs)

• Intra-region latency between zones: <2ms (round trip)

Availability Zones vs Availability Sets

AspectAv. SetAv. Zones
Protects againstRack/PDU failureFull datacenter failure
SLA99.95%99.99%
Scope1 datacenter3 distinct datacenters
Requires2+ VMs2+ VMs in different zones

Mutually exclusive

A VM cannot be in an Availability Set AND in an Availability Zone at the same time. Choose one or the other when creating the VM.

Proximity Placement Groups (PPG)

What they are

A PPG groups VMs on the same rack or physically very close together, minimizing network latency between them. Unlike Availability Sets (which spread VMs apart), PPGs bring them together.

• Typical latency within a PPG: <1ms

• Without a PPG in the same region: latency can be 2-5ms

• Compatible with Availability Sets and Availability Zones

When to use a PPG

  • →SAP HANA or any in-memory DB that needs ultra-low latency between app and DB
  • →HPC workloads where latency between nodes is critical
  • →High-performance clusters (Redis, Elasticsearch) with frequent inter-node communication
  • →Financial applications (trading) with microsecond latency requirements

Trade-off

Lower geographic availability. Concentrating VMs on the same rack increases the risk that a single hardware failure will affect all of them.

Capacity Reservations

What they're for

Capacity Reservations guarantee that Azure has compute capacity reserved for you in a specific region and zone. Without a reservation, during periods of high demand (regional disasters, massive events) Azure might not have VMs of the size you need available.

With reservation

• Azure guarantees capacity for N VMs of size X

• You are billed even if you are not using the VMs (you pay for the reservation)

• Ideal for — you know capacity will be there when you fail over

Without reservation

• You pay only for active VMs

• No capacity guarantee at critical moments

• VM creation can fail if the datacenter is full

Icon-compute-34

HA options comparison

OptionProtects againstSLAExtra costReplaces
Premium SSD (single VM)Disk failure99.9%Cost of Premium disk—
Availability SetRack failure / planned maintenance99.95%FreeN/A (legacy)
Availability ZonesFull datacenter failure99.99%Free + cross-zone trafficBetter than AS
VMSS Flexible multi-zoneDatacenter failure + automatic scaling99.99%Free for HA, cost of added VMsAvailability Sets
Proximity Placement GroupLatency between VMs (brings together, doesn't separate)VariableFree—
Capacity ReservationLack of capacity at critical momentsCapacity guaranteeYou pay even if you don't use the VMs—

Did you get this topic?

Test what you just learned

A company has 3 VMs that make up the web tier of their application. They need to guarantee the app stays available during Azure's planned maintenance and during rack hardware failures. Which configuration should they use?

Ready to test "Availability and Redundancy"?

Put what you learned to the test with original AZ-104 exam questions.

Start AZ-104 mock exam

Unlimited mock exams with the Pro plan

Log in to track your progress.