Azure Virtual Machines and Scale Sets: Sizes, Disks, Availability Sets, Zones and Autoscaling Basics

Microsoft Azure Fundamentals AZ 900 50 min min read Updated: Nov 17, 2026 Beginner
Azure Virtual Machines and Scale Sets: Sizes, Disks, Availability Sets, Zones and Autoscaling Basics
Beginner Topic 1 of 3

What Is a Virtual Machine?

A virtual machine (VM) is a computer made of software. It has a CPU, memory, disk and network like a real computer, but it runs on Azure's physical servers. You choose the operating system (Windows or Linux) and install what you need.

When to Use VMs

  • Move an existing application to the cloud without changing it (lift and shift)
  • Need full control of the operating system
  • Run custom or old software
  • Create quick test and development machines

What You Pay For

ItemNotes
ComputeBased on the VM size and time it runs. Stopping (deallocating) the VM stops compute charges
DisksBilled even when the VM is stopped
Network and IP addressPublic IPs and data leaving Azure may cost
LicenseWindows or SQL licenses may be included, or use Azure Hybrid Benefit

Sizes

FamilyFor
General purposeEveryday apps and web servers
Compute optimizedHigh CPU work
Memory optimizedDatabases and caches
Storage optimizedLarge data and disk speed
GPUAI and graphics

Disks

  • OS disk holds the operating system. Data disks hold your data
  • Disk types: HDD (cheapest), Standard SSD, Premium SSD and Ultra (fastest)
  • Managed disks: Azure handles the storage account for you

Keep VMs Available

OptionProtects fromNotes
Availability setFailures and maintenance inside one datacenterSpreads VMs across fault domains and update domains
Availability zonesA whole datacenter failingVMs in separate zones. Higher SLA
Scale setLoad and failuresIdentical VMs that grow and shrink

Virtual Machine Scale Sets

  • A group of identical VMs managed together
  • Autoscale: add VMs when CPU is high and remove them when it is low (elasticity)
  • Works with a load balancer to spread users

Azure Virtual Desktop

A service that gives users a Windows desktop or apps in the cloud, which they access from any device. Good for remote work.

Create a VM (Steps)

  1. Search Virtual machines, click Create
  2. Pick the subscription, resource group, name, region and image (Ubuntu or Windows Server)
  3. Choose a size, set admin username and SSH key or password
  4. Check inbound ports (do not open RDP or SSH to the whole internet in real life)
  5. Review and create. Later stop (deallocate) and delete the resource group

Practice

  1. What stops compute billing: stopping inside the OS or deallocating in Azure?
  2. Availability set or zones for the best protection from a datacenter failure?
  3. What is autoscaling?

Conclusion

A VM is a software computer you control fully (IaaS). Choose size and disks, use availability sets or zones for resilience and scale sets with autoscale for elastic capacity.

Quick Summary: VM meaning; use cases; costs; sizes; disks; availability; scale sets; AVD; create.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators