Why This Matters
Applications in Azure must be both scalable (handle growth in demand) and highly available (survive failures). Azure provides two key features for this:
-
VM Scale Sets → scaling
-
Availability Sets → resiliency
VM Scale Sets (VMSS)
-
Group of identical, load-balanced VMs that can scale up or down automatically.
-
Integrated with Azure Load Balancer or Application Gateway.
-
Supports auto-scaling based on CPU, memory, or custom metrics.
-
Great for stateless workloads (e.g., web servers).
Use Case:
-
Run 2 VMs during off-peak, scale to 10 during business hours automatically.
Availability Sets
-
Logical grouping of VMs to provide high availability.
-
Protects against failures in:
-
Fault Domains (FDs): Physical racks in a datacenter.
-
Update Domains (UDs): Logical groups that receive maintenance updates together.
-
-
Ensures not all VMs are rebooted or fail at the same time.
Use Case:
-
Run 2 VMs in an availability set → Azure guarantees 99.95% uptime SLA.
VMSS vs Availability Sets
-
VMSS = Scaling (adjust number of VMs automatically).
-
Availability Set = Resiliency (spread VMs across racks/updates to avoid downtime).
-
Exam trick: If scenario says “auto scale”, answer is VMSS. If it says “protect against hardware failure/updates”, answer is Availability Set.
Confusion Buster 🚨
-
Availability Zones vs Availability Sets
-
Zone = separate physical datacenters in a region. Higher resiliency than sets.
-
Set = logical grouping within one datacenter.
-
-
Exam trap: If the question says “protect against datacenter-level outage”, answer is Availability Zones, not Availability Sets.
Simple Example
A company hosts an e-commerce site:
-
Uses VM Scale Sets for web servers to auto-scale with traffic.
-
Uses Availability Sets for the database VMs to ensure they’re not patched/rebooted at the same time.
Exam Tip
-
For scalability, think VM Scale Sets.
-
For resiliency against maintenance/hardware failures, think Availability Sets.
-
For higher resiliency (datacenter-level), think Availability Zones.
What to Expect in the Exam
-
Direct Q: “Which feature ensures VMs are distributed across fault domains?” → Availability Set.
-
Scenario: “Company wants web servers to automatically add more instances during peak hours.” → VM Scale Sets.
-
Trick Q: “Availability Sets provide auto-scaling.” (False — that’s VMSS).