Compare
Availability Set vs Availability Zones vs Flexible Scale Set
30-second answer
An availability set spreads VMs across fault domains and update domains in one datacenter (99.95% SLA with two or more VMs). Availability zones place VMs in separate datacenters in a region (99.99%). A Flexible scale set runs identical VMs across zones or fault domains and adds autoscale.
Simulate it »Side by side
↔ Swipe the table to see every column.
| Availability set | Availability zones | Flexible scale set | |
|---|---|---|---|
| Protects against | Rack and maintenance failures | A whole datacenter failing | Both, depending on how you spread it |
| VM SLA | 99.95% (2+ VMs) | 99.99% (2+ VMs in 2+ zones) | Same as zones or set it uses |
| Scaling | Manual | Manual | Autoscale rules on metrics or schedules |
| When chosen | At VM creation only | At VM creation only | At creation; instances added any time |
| Price feel | Free; pay for the VMs | Free; small cross-zone data charge | Free; pay per instance, e.g. 3 × B2s ≈ $105/month |
Prices are illustrative pay-as-you-go list prices converted at approximate rates, for "price feel" only. Check the Azure pricing calculator for real quotes.
Which one should I pick?
Availability set
Pick it when the region has no zones or the app needs very low latency inside one datacenter
Availability zones
Pick it when a few named VMs must survive a datacenter outage
Flexible scale set
Pick it when you run many identical VMs that should grow and shrink with load
Simulate it
🖱️ Drag to rotate · scroll or pinch to zoom
Availability sets vs zones
An availability set spreads VMs over fault domains (racks with their own power and network) and update domains in one datacenter: 99.95%. Availability zones spread VMs over separate datacenters: 99.99%. A VM uses one or the other, chosen at creation.
🤔 What happens if…
Read this tour as text
- A Bicep file becomes resources. A template has four parts: parameters (inputs such as
storageNameandskuName), variables (values worked out once), resources (what gets built) and outputs (values handed back). The CLI compiles Bicep to ARM JSON and Azure Resource Manager validates it, then builds it. - what-if, Incremental and Complete. what-if previews the changes (
+create,~modify,-delete) without touching anything. Incremental mode, the default, adds and updates. Complete mode also deletes whatever in the resource group isn't in the template. - Export and decompile. Export template (portal, or
az group export) writes what exists now as ARM JSON.az bicep decompileturns JSON into Bicep. Both are starting points: names and values are hard-coded and some properties are missing. - A VM, its host and its size. A VM runs on a physical host in a hardware cluster. Its size (Standard_D2s_v5: D family, 2 vCPUs, premium storage, v5) sets CPU, memory, disk count and price. A resize restarts the VM; a size that isn't on the current cluster needs the VM deallocated first.
- Disks and encryption at host. OS and data disks are managed disks in Azure Storage, encrypted at rest by default. The temp disk and the disk caches live on the host. Encryption at host encrypts those too, end to end; it needs the feature registered and the VM deallocated.
- Move to another resource group or subscription. A move keeps the region and the VM keeps running, but every resource ID changes. The VM must travel with its disks and network interface; across subscriptions the virtual network goes too.
- Move to another region. Azure Resource Mover copies resources to another region: add them, validate dependencies, prepare, initiate move, then commit (or discard) and delete the source.
- Availability sets vs zones. An availability set spreads VMs over fault domains (racks with their own power and network) and update domains in one datacenter: 99.95%. Availability zones spread VMs over separate datacenters: 99.99%. A VM uses one or the other, chosen at creation.
- Scale sets grow on a rule. A Virtual Machine Scale Set (Flexible orchestration recommended) runs identical VMs across zones. Autoscale rules add instances when average CPU is high and remove them when it's low, always between the minimum and maximum.
Questions people ask
Can I add an existing VM to an availability set?
No. The availability set is set when the VM is created. Recreate the VM from its disks with the set selected.
How many fault domains can a set have?
Up to 3, depending on the region, and up to 20 update domains (5 by default).
Learn each one properly
More comparisons
- Owner vs Contributor vs Reader vs User Access Administrator
- Azure RBAC Roles vs Microsoft Entra Roles
- Storage Account Key vs SAS vs Microsoft Entra ID
- Blob Soft Delete vs Versioning vs Snapshots
- ARM JSON Templates vs Bicep Files
- Container Instances vs Container Apps vs App Service
- App Service scale up vs scale out
- Service Endpoint vs Private Endpoint
- NSG vs ASG vs Route Table
- Recovery Services Vault vs Backup Vault
- Azure Backup vs Azure Site Recovery