Skip to main content

Challenge 09: Virtual Machines & Availability

Estimated Time

20-30 min | Cost: Free (exploration only) | Domain: Azure Architecture & Services (35-40%)

Exam skills covered

  • Describe VM options (Azure VMs, VM Scale Sets, availability sets, Azure Virtual Desktop)
  • Describe resources required for virtual machines
  • Compare compute types (VMs, containers, functions)

Overview

Azure Virtual Machines (VMs) are IaaS compute resources that let you run Windows or Linux operating systems in the cloud. When you create a VM, Azure also creates several supporting resources: a virtual network interface, a disk, and (optionally) a public IP address.

To make VMs highly available, Azure offers Availability Sets (protect against hardware failures within a datacenter) and Availability Zones (protect against entire datacenter failures).

Explore

Task 1: Explore VM creation (don't create!)

  1. In the Azure Portal, click Create a resourceVirtual Machine
  2. Explore each tab without creating:

Basics tab:

  • Subscription, Resource Group, VM name, Region
  • Availability options: None, Availability Zone, Availability Set, Scale Set
  • Image (OS): Windows Server, Ubuntu, Red Hat, etc.
  • Size: Choose CPU/RAM combination

Disks tab:

  • OS disk type: Premium SSD, Standard SSD, Standard HDD

Networking tab:

  • Virtual network, subnet, public IP, NSG
  1. Click Cancel — just understanding what's needed

When you create a VM, Azure creates:

ResourcePurposeRequired?
Virtual MachineThe compute instanceYes
OS Disk (Managed Disk)Storage for the operating systemYes
Network Interface (NIC)Connects VM to a virtual networkYes
Virtual NetworkNetwork for the VM to communicateYes (new or existing)
Public IP AddressAllow internet access to the VMOptional
Network Security GroupFirewall rules for the VMRecommended

Task 3: Understand availability options

OptionProtects againstHow it works
Availability SetHardware failures in a datacenterVMs spread across fault domains and update domains
Availability ZoneDatacenter failuresVMs placed in different physical zones
VM Scale SetDemand changesAuto-scale number of identical VMs

Fault domains = separate physical racks (power + network) Update domains = groups that can be rebooted together during maintenance

Task 4: Explore VM sizes

  1. In the Azure Portal, go to Virtual MachinesCreate
  2. Click See all sizes (or the size selector)
  3. Browse the VM family categories:
FamilyPrefixBest for
General purposeB, DTesting, dev, small databases
Compute optimizedFCPU-intensive workloads
Memory optimizedE, MLarge databases, caching
Storage optimizedLBig data, data warehousing
GPUNML training, graphics rendering
  1. Click Cancel

Task 5: Azure Virtual Desktop

Azure Virtual Desktop (AVD) is a related VM service:

  • Provides virtual Windows desktops and apps
  • Users access from any device via a browser or client
  • IT manages the desktop centrally in Azure
  • Multi-session Windows 10/11 (unique to Azure — not possible on-prem)
Azure CLI Alternative
# List available VM sizes in a region
az vm list-sizes --location eastus --query "[0:10].{Name:name, Cores:numberOfCores, RAM_MB:memoryInMb}" --output table

# List available VM images
az vm image list --output table

# List VM images for Ubuntu
az vm image list --offer Ubuntu --all --query "[0:5]" --output table

Key Concepts

ConceptDescription
Azure VMIaaS compute — you manage the OS and applications
Availability SetDistributes VMs across fault/update domains within a datacenter
Availability ZoneDistributes VMs across physically separate datacenters
VM Scale SetGroup of identical VMs that auto-scale based on demand
Azure Virtual DesktopCloud-hosted desktops accessible from any device
Fault domainSeparate physical rack (protects against hardware failure)
Update domainLogical grouping for planned maintenance reboots

Knowledge Check

1. Which Azure feature distributes VMs across physically separate datacenters within a region?

2. When you create an Azure VM, which resource is automatically created to store the operating system?

3. A company needs to provide 100 employees with Windows 10 desktops that can be accessed from any device, anywhere. Which service should they use?

4. What is the purpose of VM Scale Sets?

5. In an Availability Set, what does a "fault domain" represent?

Learn More