Fault Domain
A fault domain is a group of hardware that shares a power source and network switch, roughly a physical rack, inside an Azure datacenter. VMs in different fault domains of an Availability Set will not fail together from a single hardware fault.
Fault Domain
Fault domains answer the question "what dies together if one rack loses power?" When VMs share an Availability Set, Azure spreads them across fault domains automatically, so a power or top-of-rack switch failure affects only the VMs in one domain. You cannot pin a VM to a chosen fault domain, because placement is assigned by the platform.
How Many Fault Domains Does an Availability Set Have?
Most regions allow up to 3 fault domains, and a few allow only 2. The default is the region maximum, and VMs are distributed round-robin as you add them. Two VMs in a set therefore land in two different fault domains.
az vm availability-set show --name payments-avset \ --resource-group mumbai-prod-rg \ --query "{fault:platformFaultDomainCount, update:platformUpdateDomainCount}"Fault Domain or Update Domain?
A fault domain covers unplanned hardware failure. An update domain covers planned maintenance. Both are properties of the same Availability Set and do different jobs.
VM 1, VM 4"]:::cloud R -->|rack B| F1["Fault domain 1
VM 2, VM 5"]:::cloud R -->|rack C| F2["Fault domain 2
VM 3"]:::cloud classDef tool fill:#326CE5,color:#FFFFFF classDef cloud fill:#D1FAE5,color:#1E293B
Why It Matters in Production
In a payments tier at a company like Razorpay, a single power distribution unit failure takes out roughly a third of a three-domain set, and the load balancer keeps serving from the surviving instances.
RememberA fault domain protects within one datacenter. For protection against a whole datacenter failure, use Availability Zones.
Common MistakeRunning a single VM, or two VMs outside an Availability Set, and assuming they sit in different fault domains. Without a set or zones, Azure gives no such guarantee.
Frequently Asked Questions
Can I choose which fault domain a VM lands in?
No. Azure assigns fault domains automatically within the Availability Set, and you control only how many the set uses.
Are fault domains the same as Availability Zones?
No. Fault domains are racks inside one datacenter, while Availability Zones are separate datacenters. Zones give stronger protection.
How do I see which fault domain a VM is in?
Check the VM's instance view, which reports platformFaultDomain and platformUpdateDomain for each VM in a set.