Choosing the right number of fault domains for virtual machine scale set
Virtual machine scale sets are created with five fault domains by default in Azure regions with no zones. For the regions that support zonal deployment of virtual machine scale sets and this option is selected, the default value of the fault domain count is 1 for each of the zones. FD=1 in this case implies that the VM instances belonging to the scale set will be spread across many racks on a best effort basis.
You can also consider aligning the number of scale set fault domains with the number of Managed Disks fault domains. This alignment can help prevent loss of quorum if an entire Managed Disks fault domain goes down. The FD count can be set to less than or equal to the number of Managed Disks fault domains available in each of the regions. Refer to this document to learn about the number of Managed Disks fault domains by region.
You can set the property
properties.platformFaultDomainCount to 1, 2, or 3 (default of 3 if not specified). Refer to the documentation for REST API here.
You can set the parameter
--platform-fault-domain-count to 1, 2, or 3 (default of 3 if not specified). Refer to the documentation for Azure CLI here.
az vmss create \ --resource-group myResourceGroup \ --name myScaleSet \ --orchestration-mode Flexible \ --image UbuntuLTS \ --upgrade-policy-mode automatic \ --admin-username azureuser \ --platform-fault-domain-count 3\ --generate-ssh-keys
It takes a few minutes to create and configure all the scale set resources and VMs.
- Learn more about availability and redundancy features for Azure environments.
Submit and view feedback for