Availability zones, availability sets and scale sets

Azure Portal, Hands On10 minutes (looking only)Look onlySteps checked 23 October 2026By Cloud Hands On

In this task you'll choose availability zones or an availability set for a VM.

One VM on its own will sometimes be down: for maintenance, or when the hardware under it fails. To keep a service running you run two or more VMs and spread them out, so one problem can't take them all down.

Availability zones are separate datacentres inside one region, with their own power and cooling. Putting VMs in different zones protects against a whole datacentre failing. An availability set is the older option: it spreads VMs across different racks (fault domains) and maintenance groups (update domains) inside one datacentre. A scale set creates and manages many identical VMs for you.

Example. SS Kaiser runs its shop's two web VMs in zone 1 and zone 2 of UK South, behind a load balancer. When one zone had a power problem, the other kept serving customers.

Before you start

You need: Reader on the subscription. Time: 10 minutes (looking only).

Where to look

  1. Virtual machines
  2. + Create
  3. Azure virtual machine
  4. Availability options

Steps

  1. Open Virtual machines, select + Create, then Azure virtual machine. You won't create anything.The portal may open a preview of a new create form whose list has only the first two options below. Select Click here to access the previous experience at the top to see all four.
  2. Choose a region such as UK South, then open the Availability options list. Note the choices: No infrastructure redundancy required, Availability zone, Virtual machine scale set and Availability set.
  3. Pick Availability zone and look at Availability zone: you can choose zones 1, 2 and 3, and the form can create one VM in each.Zones give the highest promised uptime for VMs: 99.99% when two or more VMs are in different zones.
  4. Pick Availability set. An Availability set box appears with Create new, and the form suggests a scale set instead.A set must be chosen when the VM is created. You can't move an existing VM into one later.
  5. Change the region to one without zones, if you can find one, and see that the zone option is missing.Not every region has zones.
  6. Close the form without selecting Create.

Commands

# Which zones does a size have in a region? (slow: give it a minute)
az vm list-skus --location uksouth --size Standard_B1s --zone --output table

# Create a VM in zone 1 (costs money while it runs)
az vm create --resource-group rg-portal-practice --name vm-zone1 --image Ubuntu2404 \
  --size Standard_B1s --zone 1 --generate-ssh-keys --public-ip-address ""

# Create an availability set
az vm availability-set create --resource-group rg-portal-practice --name avset-practice \
  --platform-fault-domain-count 2 --platform-update-domain-count 5

Watch out for

Cost
Looking is free. Redundancy itself is free, but you pay for every VM, so two VMs cost twice as much as one. Traffic between zones has a small charge.
Security
Spreading VMs out doesn't change who can reach them. Keep the same network rules on every copy.
Common mistakes
Thinking one VM in a zone is highly available: it isn't, you need at least two. Forgetting a load balancer to share traffic between them. Trying to add an existing VM to an availability set.

Clean up

Nothing to clean up. This task only looks at the create form.

Words to know

Availability zone
A separate datacentre (or group of them) inside a region. Most regions have three.
Availability set
A group of VMs spread across racks and maintenance groups in one datacentre.
Fault domain
A group of hardware that shares power and network: a rack.
Update domain
A group of VMs that Azure restarts together for maintenance.
SLA
Service level agreement: the uptime Microsoft promises, such as 99.99%.

Tick off each step and track your progress in the guide.

Open this task in Azure Portal, Hands On

Keep going