Understanding Availability Zones
This lesson explains availability zones, how zonal and zone-redundant services use them, and where zones sit among Azure's resilience options.
Learning outcomes
After completing this lesson, you will be able to:
- Describe what an availability zone is.
- Distinguish zonal, zone-redundant and non-regional services.
- Compare availability sets, availability zones and multi-region designs.
What an availability zone is
An availability zone is a physically separate location within an Azure region. Each zone is made up of one or more datacentres equipped with independent power, cooling and networking, so a problem in one zone, such as a power failure or fire, does not take down the others. Zones are close enough together to be connected by high-performance, low-latency networks, which lets data be replicated between them synchronously.
To ensure resiliency, a region that supports availability zones has a minimum of three zones. Not every region supports availability zones, so checking support is part of choosing a region for a highly available solution. Zone numbers (1, 2 and 3) are mapped to physical zones separately for each subscription, so zone 1 in one subscription is not necessarily the same building as zone 1 in another.
Zone facts
How services use availability zones
Azure services support availability zones in different ways. The following table describes the categories and gives examples.
| Category | How it works | Examples |
|---|---|---|
| Zonal | The resource is pinned to a zone you choose; resilience comes from deploying instances in several zones | Virtual machines, managed disks, public IP addresses |
| Zone-redundant | The platform replicates or spreads the resource across zones automatically | Zone-redundant storage (ZRS), zone-redundant SQL Database, zone-redundant VPN gateways |
| Non-regional | The service is always available from Azure geographies and is resilient to zone and region failures | Microsoft Entra ID, Azure DNS |
For a zonal service, a single VM in zone 1 is not protected from the failure of zone 1; the customer must deploy at least one more VM in another zone and distribute traffic, for example with a zone-redundant load balancer. For a zone-redundant service, the protection is built in.
Zonal, zone-redundant or non-regional?
Zones in the resilience hierarchy
Availability zones sit between two other resilience levels. Availability sets protect VMs against hardware and maintenance events within one datacentre; availability zones protect against the failure of a whole datacentre or zone; and deploying to a second region protects against the loss of an entire region.
Using zones means paying for the instances deployed in each zone, and multi-region designs cost more again, so the choice depends on how much downtime the workload can tolerate.
How much resilience?
Zonal or zone-redundant
A company deploys a web application on two virtual machines in the same availability zone of the UK South region, behind a load balancer. An outage in that zone takes the application offline. What change gives the application resilience to a zone failure while keeping it in UK South?
Virtual machines are zonal resources, so placing both in one zone gives no protection against that zone failing. The company should place the VMs in different availability zones (for example zone 1 and zone 2) behind a zone-redundant load balancer. Moving the second VM to another region would also survive a zone failure but adds latency and complexity that the requirement does not call for, and an availability set protects only within a single datacentre.
What is the minimum number of availability zones in a zone-enabled region?
Show answer
Three, so that the failure of one zone leaves at least two working.
Exam Tips
Remember for the exam
- An availability zone is one or more datacentres with independent power, cooling and networking.
- Zone-enabled regions have at least three zones; not all regions support zones.
- Zonal resources are pinned to one zone; zone-redundant resources span zones automatically.
- Availability zones protect against datacentre failure, not regional failure.