Designing Highly Available Compute
This lesson compares availability sets, scale sets and platform zone options.
Learning outcomes
After completing this lesson, you will be able to:
- Compare availability sets with availability zones.
- Compare Flexible and Uniform orchestration.
- Describe zone options for platform services.
Virtual machines
A single virtual machine depends on one host. An availability set distributes machines across up to 3 fault domains, which are separate racks, and up to 20 update domains, which restart at separate times during planned maintenance, with an SLA of 99.95%. Availability sets do not protect against a datacenter failure.
Availability zones offer stronger protection, as machines sit in separate datacenters, with an SLA of 99.99% for two or more instances across zones. Microsoft recommends Virtual Machine Scale Sets with Flexible orchestration as the default, because it can combine zones, fault domains and autoscaling, and even Spot and on-demand instances. Availability sets remain supported, but they do not offer the same level of resiliency, so new designs should choose zones where they are available.
The following comparison recaps these options.
VM availability options
Scale sets in detail
The orchestration mode is set at creation and cannot be changed. Flexible orchestration is recommended for most workloads, and supports up to 1,000 instances with fault domain guarantees. Uniform orchestration is optimized for large-scale workloads with identical instances, and it is required for certain services, such as Azure Service Fabric. Automatic instance repairs replace unhealthy instances, using a health extension or a load balancer probe, and rolling upgrades update instances in batches.
The following diagram shows a VM scale set for a stateless web tier and the requirement each feature covers.

Platform compute services
Platform services make high availability much simpler, typically through a single setting.
- App Service plans in supported tiers, such as Premium v3 and Premium v4, can be made zone redundant, and instances are then spread across zones automatically.
- Azure Functions supports zone redundancy on Flex Consumption and Premium plans.
- Azure Container Apps environments can be zone redundant when they are deployed in a virtual network.
- Azure Kubernetes Service node pools can span zones. The control plane offers a 99.95% SLA with zones on the Standard tier, and no financially backed SLA on the Free tier.
A single region remains a failure domain. For higher availability, deploy in two regions with Azure Front Door or Traffic Manager routing users between them. This is significantly more complex, since data must also be available in both regions.
High availability for platform compute
Planning capacity for a zone failure
Spreading instances across zones is not enough if the remaining zones cannot carry the load. Suppose a workload needs six instances at peak, and it is deployed across three zones. If a zone fails, two instances are lost, leaving four, which cannot meet the peak. To survive with full capacity, the design needs nine instances, three per zone, so that six remain after a failure. This is sometimes described as N+1 at the zone level, and it raises cost by 50% in this example.
Autoscale can reduce this overhead, because new instances can start in the surviving zones. However, during a zone failure, many customers may be scaling at the same time, so a design that depends on autoscale at that moment accepts some risk. On-demand capacity reservations, which can be zone-specific, remove that risk for critical workloads. The minimum instance count should also be high enough to keep instances in each zone during quiet periods.
Capacity for a zone loss
Stateful compute and multi-region
Stateless instances can be replaced freely, so they are straightforward to protect. Stateful virtual machines need a different approach, as data on a failed machine must still be available elsewhere. Options include moving state to a managed data service, using a replicated data tier such as an availability group, or using zone-redundant disks, which can be attached to a replacement machine in another zone. Removing state from compute is usually the most effective improvement, and it is one of the main arguments for modernization.
Where a workload needs to survive a regional outage, compute is deployed in a second region, either running or ready to start, and a global router directs traffic. Azure Front Door suits web traffic, and Traffic Manager or the Global tier of Azure Load Balancer suits other protocols. Deployment automation is what makes a second region practical, since both regions should be built from the same templates to avoid drift.
Choosing compute redundancy
A company is deploying a stateless web tier on virtual machines in a region with availability zones. It must survive a datacenter failure, scale automatically during promotions and replace failed machines automatically, with minimal administration. What should you recommend?
A Virtual Machine Scale Set with Flexible orchestration across three zones meets all requirements: zones handle a datacenter failure, autoscale rules handle promotions, and automatic instance repairs replace failed machines. A zone-redundant Standard Load Balancer or Application Gateway distributes traffic.
An availability set offers no protection from a datacenter failure and has no autoscaling. Two standalone zonal virtual machines would leave scaling and repair to manual effort. A multi-region deployment exceeds the requirements.
Can a scale set's orchestration mode be changed after creation?
Show answer
No. It is defined at creation and cannot be changed.
Exam Tips
Remember for the exam
- Availability sets: 99.95%, racks and maintenance. Zones: 99.99%, datacenter failure.
- Flexible orchestration is the recommended default; the mode cannot be changed later.
- Enable zone redundancy on platform services where it is supported.
- AKS Free has no financially backed SLA.