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
| Type | You manage | Fits when |
|---|---|---|
| Virtual machine (IaaS) | The OS, patching and software | You need full control of the OS, custom software or a lift and shift |
| Container | The app; not the OS | Lightweight, quickly created and scaled instances; microservices |
| Azure Functions (serverless) | Only the code | Event-driven work that finishes quickly; billed for CPU time while it runs |
| Azure App Service (PaaS) | The app; Azure runs the environment | Web 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
| Option | What it does | Remember |
|---|---|---|
| Azure virtual machine | Virtualized server in Azure; you control the OS | You still patch, update and configure it |
| Virtual Machine Scale Sets | Group of identical, load-balanced VMs that scale out and in on demand or on a schedule | Instances scale out and in on demand or on a schedule |
| Availability set | Logical grouping of VMs across fault and update domains within a region | Two or more VMs for the 99.95% SLA; no extra cost; less resilient than availability zones |
| Azure Virtual Desktop | Desktop and app virtualization service that runs on Azure | Single-session and multi-session Windows; integrates with Microsoft Entra ID |
- A fault domain is a group of VMs that share a common power source and network switch.
- An update domain is a group of VMs and hardware that can be restarted at the same time during planned maintenance.
- Availability sets don't offer the same level of resiliency as availability zones.
Resources a VM needs
- Size: purpose, processor cores and RAM
- Storage disks: an OS disk and optional data disks
- Networking: a virtual network, a public IP address and port configuration
- Region (location): where the virtual hard disks are stored
Containers and application hosting
| Service | Model | Use it for |
|---|---|---|
| Azure Container Instances | PaaS | Fastest, simplest way to run a container with no VMs to manage |
| Azure Container Apps | PaaS | Containers with built-in load balancing and scaling |
| Azure Kubernetes Service (AKS) | Orchestration | Managing the lifecycle of a fleet of containers |
| Azure App Service | PaaS | HTTP-based web apps, API apps, WebJobs and mobile apps without managing infrastructure |
| Azure Functions | Serverless | Code 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
| Service | Purpose | Key points |
|---|---|---|
| Virtual network | Your private network in Azure; resources communicate with each other, the internet and on-premises networks | Scoped to one region and one subscription. Free to use. |
| Subnet | A segment of the virtual network's address space where you deploy resources | Subnets span all availability zones in a region |
| Virtual network peering | Connects two virtual networks | Same region, or global across regions. Traffic stays on the Microsoft backbone, not on the public internet. |
| Azure DNS | Hosts DNS domains and resolves names to IP addresses | Public DNS, Private DNS for virtual networks and others |
| VPN Gateway | Encrypted traffic between a virtual network and on-premises locations over the public internet | Site-to-site and point-to-site connections |
| ExpressRoute | Private connection from on-premises to Microsoft through a connectivity provider | Doesn't go over the public internet |
Public and private endpoints
- A public endpoint reaches a service over the public internet. Service endpoints can extend your virtual network to a service, but the service is still reached through its public endpoint.
- A private endpoint is a network interface with a private IP address from your virtual network. It connects you privately to a service powered by Azure Private Link, such as Azure Storage, Azure Cosmos DB or Azure SQL Database.
- Traffic between your virtual network and the service travels the Microsoft backbone network, so the service doesn't need to be exposed to the public internet.
- A private endpoint is mapped to one instance of a PaaS resource, not the whole service. This protects against data leakage.
- On-premises networks connect to private endpoints over VPN or ExpressRoute.
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
- Describe Azure virtual machines (Microsoft Learn training)
- Describe Azure Virtual Desktop (Microsoft Learn training)
- Describe Azure containers (Microsoft Learn training)
- Describe Azure Functions (Microsoft Learn training)
- Describe application hosting options (Microsoft Learn training)
- Overview of virtual machines in Azure
- Azure Virtual Machine Scale Sets overview
- Availability sets overview
- What is Azure Virtual Desktop?
- What is Azure Virtual Network?
- Azure Virtual Network concepts and best practices
- Azure Virtual Network peering
- Azure DNS overview
- About Azure VPN Gateway
- Azure ExpressRoute overview
- What is Azure Private Link?
- What is a private endpoint?
- Azure Container Instances overview
- Azure Functions overview
- Overview of Azure App Service
Checked against Microsoft Learn on November 13, 2026.