Lesson 2 of 4 VM Availability and Scale Sets

Deploying VMs Across Availability Zones

This lesson explains availability zones, zonal and zone-redundant resources, and how they compare with availability sets.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe availability zones and zonal and zone-redundant resources.
  • Distinguish between availability sets and availability zones.
  • Choose an availability option for a requirement.

What an availability zone is

An availability zone is one or more datacentres within a region, with independent power, cooling and networking. Regions that support zones have three, numbered 1, 2 and 3 for each subscription; the mapping of logical numbers to physical zones can differ between subscriptions. Zones are connected by a high-performance, low-latency network, so synchronous replication between them is practical.

Azure services relate to zones in three ways. Zonal resources are pinned to one zone that you choose, such as a VM or a managed disk. Zone-redundant resources are spread across zones automatically, such as a Standard public IP, a Standard load balancer frontend, ZRS storage or ZRS disks. Non-zonal (regional) resources make no zone guarantee.

Sort into groups

Zonal or zone-redundant?

Exam skills 3.2.6

Decide how each resource relates to availability zones.

Log in to try this activity Interactive activities are free with an account.

Deploying VMs to zones

A VM's zone is chosen on the Basics tab with Availability options set to Availability zone; selecting several zones creates one VM per zone. Deploying two or more VMs across two or more zones gives a 99.99% SLA, the highest for VMs. The VM's managed disks are created in the same zone, and its public IP should be Standard SKU, either zone-redundant or in the same zone. A zone-redundant load balancer distributes traffic to the VMs in all zones.

Availability set
Protects againstRack failure and planned maintenance
PlacementFault and update domains in one datacentre
SLA (2+ VMs)99.95%
Network latency between VMsLowest
Choose when Regions without zones, or lowest latency
Availability zones
Protects againstLoss of a whole datacentre
PlacementSeparate datacentres in a region
SLA (2+ VMs)99.99%
Network latency between VMsSlightly higher (still low)
Choose when Highest availability within a region

Not every region has availability zones, and not every VM size is offered in every zone. An existing non-zonal VM cannot simply be switched to a zone, but Azure Resource Mover or Site Recovery can move it into one. Data transfer between zones may be billed.

The following diagram shows VMs spread across availability zones so that an application survives a datacentre failure.

Surviving a datacentre failure across availability zones. The four web VMs spread across zones 1, 2 and 3, for example 2, 1 and 1, and the two database VMs sit in two different zones. A zone-redundant Standard load balancer and Standard public IP, and zone-redundant storage, keep the supporting services zone-aware too.
The scenario is illustrative.
Scenario questions

Availability set or zones?

Exam skills 3.2.6

Choose the availability option for each requirement.

Log in to try this activity Interactive activities are free with an account.
Worked example

Choosing an availability option

A three-tier application in a region with availability zones must stay available if one datacentre fails. The web tier runs four VMs and the database tier two VMs with synchronous replication. Which availability configuration should you use, and what else must be zone-aware?

Deploy the web VMs across zones 1, 2 and 3 (for example 2, 1 and 1, or a Flexible scale set spanning the zones) and the two database VMs in two different zones. Use a zone-redundant Standard load balancer and Standard public IP, and zone-redundant storage where storage is used. Availability sets would keep everything in one datacentre and fail the requirement.

Check yourself

What SLA applies to two or more VMs deployed across two or more availability zones?

Show answer

99.99%.

Exam Tips

Remember for the exam

  • Survive a datacentre failure: availability zones (99.99% SLA for two or more VMs).
  • VMs are zonal; Standard public IPs and load balancers can be zone-redundant.
  • Zone numbers are logical per subscription.
  • Use Azure Resource Mover to move an existing VM into a zone.