Lesson 8 of 28 · see all lessons
Start here: cloud concepts (skill area 1, 25-30%)
- 1. Start here: the AZ-900 exam, the plan and what you already know
- 2. What cloud computing is: shared responsibility and cloud models
- 3. Paying for the cloud: the consumption-based model, pricing models and serverless
- 4. Why the cloud: availability, scalability, reliability, security and manageability
- 5. IaaS, PaaS and SaaS: cloud service types and when to use each
Azure architecture, compute and networking (skill area 2, 35-40%)
- 6. Azure global infrastructure: regions, region pairs, sovereign regions and availability zones
- 7. Organizing Azure: resources, resource groups, subscriptions and management groups
- 8. Azure virtual machines: VM options, scale sets, availability sets and Azure Virtual Desktop
- 9. Containers, Azure Functions and app hosting: choosing a compute type
- 10. Azure networking: virtual networks, subnets, peering and Azure DNS
- 11. Connecting to Azure: VPN Gateway, ExpressRoute, and public and private endpoints
Storage and migration (skill area 2)
Identity, access and security (skill area 2)
Management and governance (skill area 3, 30-35%)
- 19. Azure costs: cost factors, the pricing calculator, Cost Management and tags
- 20. Governance and compliance: Microsoft Purview, Azure Policy and resource locks
- 21. Managing Azure: the portal, Cloud Shell, Azure CLI, PowerShell and Azure Arc
- 22. Infrastructure as code: Azure Resource Manager and ARM templates
- 23. Monitoring Azure: Advisor, Service Health, Azure Monitor, Log Analytics, alerts and Application Insights
Final review and four mock exams
19 min
Azure virtual machines: VM options, scale sets, availability sets and Azure Virtual Desktop
Learn when to use virtual machines, how scale sets and availability sets add scale and resilience, and what Azure Virtual Desktop does.
By the end of this lesson you can
- Explain when an Azure virtual machine fits and when you pay for it
- List the resources a virtual machine needs
- Choose between a single VM, a scale set, an availability set and availability zones
- Describe what Azure Virtual Desktop does
From earlier lessons · 1 of 2
A company assigns a policy to a management group. What happens to the subscriptions under it?
Pick one answer.
From earlier lessons · 2 of 2
A team uses two regions that form a pair. Which benefit does the pairing give it?
Pick one answer.
Copperleaf's route-planning app lives on two old Windows servers. In December it needs five. The depot planners also use desktop software that only runs on Windows, and drivers can't install it on their tablets. The IT lead wants servers that grow at peak, survive a hardware fault, and serve desktops from the cloud.
Azure virtual machines: IaaS servers you control
Exam depth: know it cold.
Azure Virtual Machines run virtual servers in Azure as IaaS. You control the operating system and the software on it. You also patch and configure it.
Pick a VM when you need total OS control, custom software or a custom hosting setup. Common uses: testing and development, lift-and-shift migration, disaster recovery and extending your datacenter.
You pay for compute while the VM holds its hardware:
- Running: billed.
- Stopped (allocated), for example shut down from inside the OS: still billed.
- Stopped (deallocated), stopped from Azure: compute isn't billed. Disks and networking still cost money.
A Copperleaf test VM is shut down from inside Windows every evening. The bill still shows compute charges overnight. What should the team do to stop them?
Pick one answer.
What a VM needs: the supporting resources
Exam depth: know it cold.
Creating a VM also creates resources that support it. By default they go in the same resource group.
- Size: the number of virtual CPUs and the amount of memory.
- Disks: an OS disk, plus data disks if you want them. These are managed disks: Azure handles the storage behind them.
- Virtual network: lets the VM talk to other resources.
- Network interface (NIC): connects the VM to the virtual network.
- IP addresses: a private one, and a public one only if you need it.
- Network security group (NSG): rules that allow or block traffic to the VM.
Some of these cost money on their own, such as disks and public IP addresses.
Virtual Machine Scale Sets: many identical VMs that grow and shrink
Exam depth: know it cold.
Azure Virtual Machine Scale Sets create and manage a group of identical, load-balanced VMs. A load balancer spreads incoming traffic across them.
- Autoscale: the number of VMs grows when demand rises and shrinks when it drops. You can also scale on a schedule.
- Same configuration: every VM comes from the same image and settings, so you don't keep them in step by hand.
- Resilience: VMs can spread across fault domains or availability zones.
- No extra charge for the scale set itself. You pay for the VMs, storage and network it uses.
A scale set can hold up to 1,000 VMs.
Availability sets: fault domains and update domains
Exam depth: know it cold.
An availability set is a group of VMs that Azure spreads out, so one problem doesn't take them all down. Azure gives each VM two labels:
- Fault domain: VMs that share a power source and network switch. A hardware fault hits one fault domain. A set has up to 3 fault domains.
- Update domain: VMs that can restart together during planned maintenance. Azure restarts one update domain at a time. A set has up to 20 update domains.
Availability sets cost nothing extra; you pay only for the VMs. Use two or more VMs in a set for the 99.95% service-level agreement (SLA). Availability zones protect better, because a set can still be hit by a datacenter-wide failure.
Single VM, scale set, availability set or zones?
Exam depth: know it cold.
| Option | What it gives you | Survives | Pick it when |
|---|---|---|---|
| Single VM. | One server, full control. | Nothing beyond the VM. | Test, dev, small jobs. |
| Scale set. | Identical VMs that scale automatically. | VM failures; zones if spread. | Demand goes up and down. |
| Availability set. | VMs spread over fault and update domains. | Rack-level hardware faults, maintenance. | Fixed VMs, region without zones. |
| Availability zones. | VMs in separate datacenters. | A whole datacenter failing. | Highest VM resilience in a region. |
Decision rule: "scale automatically" or "identical" means a scale set. "Hardware failure or maintenance" with fixed VMs means an availability set. "Datacenter failure" means availability zones.
Copperleaf's route app needs two VMs most of the year and five in December. The number of VMs must change automatically with demand. What should Copperleaf use?
Pick one answer.
Azure Virtual Desktop: Windows desktops from the cloud
Exam depth: know it cold.
Azure Virtual Desktop is a desktop and app virtualization service. Users reach Windows desktops and apps that run in Azure, from almost any device.
- Full Windows experience: Windows 11, Windows 10 or Windows Server.
- Multi-session: several users share one VM. Windows 11 and Windows 10 Enterprise multi-session are only available on Azure Virtual Desktop. That cuts the number of VMs you pay for.
- Central security: it signs users in with Microsoft Entra ID. Apps and data stay in Azure, not on the device, which lowers the risk of a lost tablet.
- Desktops or single apps: publish a full desktop or just one app.
Copperleaf's depot planners need a Windows-only planning program on their tablets. Data must not be stored on the devices. What should Copperleaf use?
Pick one answer.
For the following statement, select Yes if it is true, otherwise select No. You pay an extra charge for each availability set you create.
Pick one answer.
Exam-style practice
A company runs three web VMs in an availability set. Azure must apply planned host maintenance. Which feature makes sure not all three VMs restart at once?
Pick one answer.
A new VM must block all inbound traffic except remote management on one port. Which resource controls this?
Pick one answer.
A company must run an old accounting program that needs a specific Windows Server version and a custom driver. Which Azure option fits?
Pick one answer.
Worth keeping
- Azure VMs are IaaS: full OS control, and you stop paying for compute only when deallocated.
- A VM needs a size, managed disks, a virtual network, a NIC, an IP address and an NSG.
- Scale sets run identical VMs that scale automatically; availability sets spread fixed VMs over fault and update domains.
- Fault domain means hardware failure, update domain means planned maintenance; zones survive a datacenter failure.
- Azure Virtual Desktop delivers Windows desktops and apps from Azure, with multi-session Windows 11 and 10.
On the job
Copperleaf's plan is set. The route app runs in a scale set spread across availability zones. It grows to five VMs in December and shrinks in January. The depot planners open their Windows program through Azure Virtual Desktop. When a tablet goes missing, no customer data goes with it.
When finance asks why a stopped test VM still cost money, there's a short answer: it was stopped, not deallocated.
VMs aren't the only way to run code in Azure. What about containers, functions that run for seconds, or web apps with no servers to manage? Next lesson: compute types and app hosting options.
Leaderboard
Loading…
50 XP for each lesson you finish, 10 for each right answer. Names show only for learners who turn on Show me on leaderboards.
Embed this practice on your site
Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.
Report a copyright problem with this lesson
Sources for this lesson (10)
Each fact in the lesson is marked with the number of the page it comes from.
- [1]Microsoft Learn: Study guide for Exam AZ-900: Microsoft Azure Fundamentals
- [35]Microsoft Learn: Azure region pairs and nonpaired regions
- [41]Microsoft Learn: What are Azure management groups?
- [42]Microsoft Learn: Availability sets overview
- [43]Microsoft Learn: What is Azure Virtual Desktop?
- [44]Microsoft Learn: Describe Azure virtual desktop
- [45]Microsoft Learn: Describe Azure virtual machines
- [46]Microsoft Learn: Virtual machines in Azure
- [47]Microsoft Learn: What are Virtual Machine Scale Sets?
- [48]Microsoft Learn: States and billing status of Azure Virtual Machines