Course contentsShow
← Cloud and Infrastructure
Lesson 99 of 2,9892. Compute FoundationsFree lesson

Azure VM Availability Sets and Zones

Configure availability sets for fault domain distribution and availability zones for datacenter-level resilience.

Azure VM Availability Sets and Zones

What You'll Learn

You'll learn how Azure uses availability sets and availability zones to protect your virtual machines from hardware failures and datacenter outages.

The Problem: Single Points of Failure

When you run VMs, hardware can fail—servers crash, network switches die, or entire racks lose power. Worse, an entire datacenter could go offline. Azure provides two complementary mechanisms to protect against these failures.

Availability Sets: Rack-Level Protection

Availability sets distribute your VMs across multiple fault domains and update domains within a single datacenter:

  • Fault domains are essentially separate server racks with independent power and networking. If one rack fails, VMs in other fault domains keep running.
  • Update domains ensure your VMs aren't all updated simultaneously during planned maintenance.

Think of it like parking your delivery trucks in different garages—if one garage floods, you still have vehicles available.

When you create an availability set, you specify how many fault domains (typically 2-3) and update domains (up to 20) to use. You then assign VMs to this set during creation.

Availability Zones: Datacenter-Level Protection

Availability zones take protection further—they're physically separate datacenters within an Azure region, each with independent power, cooling, and networking. Distributing VMs across zones protects against entire datacenter failures.

You assign each VM to a specific zone (Zone 1, 2, or 3) when creating it. This provides higher resilience than availability sets but may introduce slightly higher network latency between zones.

When to Use Which?

Use availability sets for basic fault tolerance within a datacenter. Use availability zones when your application requires maximum uptime and can tolerate minor cross-datacenter latency.

Key Takeaway: Availability sets protect against rack-level failures within a datacenter, while availability zones protect against entire datacenter failures—both ensure your VMs remain available during hardware or infrastructure problems.