Home › Studies › AZ-900 › Architecture & Services › Compute & Networking

Compute & Networking

VMs, scale sets, availability sets, Azure Virtual Desktop, containers, Functions, App Service, virtual networks, peering, DNS, VPN Gateway, ExpressRoute, endpoints

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Compute types

TypeYou manageFits when
Virtual machine (IaaS)The OS, patching and softwareYou need full control of the OS, custom software or a lift and shift
ContainerThe app; not the OSLightweight, quickly created and scaled instances; microservices
Azure Functions (serverless)Only the codeEvent-driven work that finishes quickly; billed for CPU time while it runs
Azure App Service (PaaS)The app; Azure runs the environmentWeb apps, REST APIs, mobile back ends, WebJobs

Hosting options run from more control with VMs, to containers, to less operational effort with App Service.

Virtual machine options

OptionWhat it doesRemember
Azure virtual machineVirtualized server in Azure; you control the OSYou still patch, update and configure it
Virtual Machine Scale SetsGroup of identical, load-balanced VMs that scale out and in on demand or on a scheduleInstances scale out and in on demand or on a schedule
Availability setLogical grouping of VMs across fault and update domains within a regionTwo or more VMs for the 99.95% SLA; no extra cost; less resilient than availability zones
Azure Virtual DesktopDesktop and app virtualization service that runs on AzureSingle-session and multi-session Windows; integrates with Microsoft Entra ID

Resources a VM needs

Containers and application hosting

ServiceModelUse it for
Azure Container InstancesPaaSFastest, simplest way to run a container with no VMs to manage
Azure Container AppsPaaSContainers with built-in load balancing and scaling
Azure Kubernetes Service (AKS)OrchestrationManaging the lifecycle of a fleet of containers
Azure App ServicePaaSHTTP-based web apps, API apps, WebJobs and mobile apps without managing infrastructure
Azure FunctionsServerlessCode that runs when an event, timer or message triggers it

Containers are lightweight and you don't manage the operating system for a container. Each VM runs its own OS that you manage.

Virtual networking

ServicePurposeKey points
Virtual networkYour private network in Azure; resources communicate with each other, the internet and on-premises networksScoped to one region and one subscription. Free to use.
SubnetA segment of the virtual network's address space where you deploy resourcesSubnets span all availability zones in a region
Virtual network peeringConnects two virtual networksSame region, or global across regions. Traffic stays on the Microsoft backbone, not on the public internet.
Azure DNSHosts DNS domains and resolves names to IP addressesPublic DNS, Private DNS for virtual networks and others
VPN GatewayEncrypted traffic between a virtual network and on-premises locations over the public internetSite-to-site and point-to-site connections
ExpressRoutePrivate connection from on-premises to Microsoft through a connectivity providerDoesn't go over the public internet

Public and private endpoints

Exam Tips

Tick each tip once you can answer it without looking.

“Full control of the OS and custom software; lift and shift” → Azure virtual machine (IaaS). Trap: You still patch and update the OS. Azure doesn't do that for a VM.

“Run code on an event, timer or message; pay only for CPU time while it runs” → Azure Functions (serverless). Trap: With a VM you manage the OS; Functions charges only for CPU time while the function runs.

“Group of identical, load-balanced VMs that scale automatically” → Virtual Machine Scale Sets. Trap: An availability set spreads VMs across fault and update domains but doesn't autoscale.

“Reduce correlated failures from one rack, power source or maintenance event” → Availability set (fault and update domains). Trap: An availability set is less resilient than availability zones; it can still be hit by datacenter-level failures.

“Fault domain vs update domain” → Fault domain: shared power and network switch. Update domain: restarted together in planned maintenance.. Trap: They are easy to swap. Fault is about failures, update is about maintenance.

“Two or more VMs in an availability set” → 99.95% SLA; no extra cost, you pay for the VMs. Trap: One VM in an availability set doesn't meet the recommendation.

“Cloud-hosted Windows desktops and apps for remote or hybrid users” → Azure Virtual Desktop. Trap: A scale set runs identical load-balanced VMs but isn't a desktop virtualization service.

“Run a container with no VMs to manage, fastest and simplest” → Azure Container Instances. Trap: AKS orchestrates a fleet of containers and is more than a single container needs.

“Manage the lifecycle of many containers” → Azure Kubernetes Service (orchestration). Trap: Container Instances and Container Apps run containers but aren't the orchestration service.

“Host a web app or REST API without managing infrastructure” → Azure App Service. Trap: A VM gives more control but you manage the environment.

“VM supporting resources” → Size, storage disks and networking (virtual network, public IP address, port configuration). Trap: The VM location is where its virtual hard disks are stored.

“Connect two virtual networks, in one region or across regions” → Virtual network peering (global peering across regions). Trap: Peered traffic stays on the Microsoft backbone. It needs no gateway and doesn't cross the public internet.

“Host a domain in Azure and resolve names to IP addresses” → Azure DNS. Trap: Azure Traffic Manager is DNS-based load balancing across regions, not domain hosting.

“Encrypted tunnel from on-premises to a virtual network over the internet” → VPN Gateway (site-to-site or point-to-site). Trap: ExpressRoute doesn't use the public internet.

“Private connection from on-premises to Azure through a connectivity provider, not the internet” → ExpressRoute. Trap: A VPN gateway sends encrypted traffic over the public internet.

“Reach Azure Storage or SQL Database from your virtual network by a private IP address” → Private endpoint (Azure Private Link). Trap: A public endpoint is reached over the public internet.

“Segment a virtual network's address space” → Subnets. Trap: A virtual network is scoped to one region; peering joins networks across regions.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Core Architectural ComponentsStorage Services →