Skip to main content

Update Domain

An update domain is a logical group within an Availability Set that Azure uses to roll out planned maintenance in batches. Only one update domain is rebooted at a time, so the rest of your VMs keep serving traffic.

Update Domain

When Azure patches the host machines under your VMs, it works through update domains one by one and waits a recovery period between them. An Availability Set has 5 update domains by default and supports up to 20, and VMs are assigned round-robin as you add them. With 10 VMs across 5 domains, at most about 20 percent of capacity is offline at a time during maintenance.

How Do Update Domains Differ From Fault Domains?

Update domains protect against planned maintenance. Fault domains protect against unplanned hardware failure. A single set uses both, and you need enough VMs spread across both to be safe.

flowchart LR M["Planned host
maintenance"]:::bad -->|UD 0 first| U0["Update domain 0"]:::app U0 -->|wait, then UD 1| U1["Update domain 1"]:::app U1 -->|continue| U2["Remaining domains"]:::cloud classDef bad fill:#FFEDD5,color:#1E293B classDef app fill:#DBEAFE,color:#1E293B classDef cloud fill:#D1FAE5,color:#1E293B

How Do You Check the Update Domain Count?

Bash
az vm availability-set show --name api-gateway-avset \
--resource-group mumbai-prod-rg --query platformUpdateDomainCount

Why It Matters in Production

An API gateway tier at a company like CRED spread across 5 update domains keeps at least 80 percent of its VMs online during a host patching window, so users see no outage.

Common Mistake

Assuming update domains protect against hardware failure. That is the fault domain's job, and two VMs across five update domains can still share a fault domain.

Remember

Update domains apply to Availability Sets. For datacenter-level resilience, use Availability Zones.

Frequently Asked Questions

How many update domains should I configure?

The default of 5 suits most workloads. Raise it up to 20 for large sets so a smaller fraction of capacity is offline during each maintenance batch.

Can I choose which update domain a VM goes into?

No. Azure assigns VMs to update domains automatically in round-robin order.

Does this apply to VMs in Availability Zones?

No. Update domains belong to Availability Sets, and zonal VMs rely on zone separation and the platform's own maintenance handling.

Found a mistake, an outdated step or a broken link?