Azure Virtual Machines: "you can run virtualized servers in Azure as infrastructure as a service (IaaS)"; you control the OS and installed software.
Containers are "a virtualization environment": lightweight, created, scaled out and stopped dynamically. Unlike VMs, you don't manage the operating system of a container.
Azure Container Instances: the fastest and simplest way to run a container, without managing VMs (PaaS).
Azure Kubernetes Service (AKS): managed Kubernetes for deploying and managing (orchestrating) containerized applications.
Azure Functions: serverless; event-driven triggers and bindings; you don't deploy or maintain servers.
Azure Logic Apps: serverless, designer-first (low-code) workflows: a trigger followed by actions, with 1,400+ connectors (email, SaaS, on-premises...).
Azure Functions
Azure Logic Apps
Code-first: you write the code
Designer-first: visual workflow + connectors
Orchestrations are written in code with the Durable Functions extension
Classic exam view: stateful. Today Standard logic apps can have stateful and stateless workflows
Runs locally or in the cloud
Classic exam view: cloud. Today Standard workflows can also run in hybrid environments you control
Virtual machine options
Option
What it gives you
VM Scale Sets
Create and manage a group of identical, load-balanced VMs; the instance count automatically increases or decreases with demand or a schedule.
Availability sets
Logical grouping of VMs; Azure assigns each VM an update domain (rebooted together during planned maintenance) and a fault domain (shared power source and network switch). Up to 3 fault domains and 20 update domains. No extra cost: you pay for the VMs.
Spot VMs
Run on Azure's unused capacity at a significant discount; evicted (30 seconds' notice) when Azure needs the capacity back. Different from Reserved Instances (discount for a 1- or 3-year commitment).
Azure Virtual Desktop (AVD)
"A desktop and app virtualization service that runs on Azure": full desktops or individual apps (RemoteApp), Windows 11, Windows 10 or Windows Server, single-session or multi-session (many users per session host).
AVD capacity: with multi-session host pools, each session host accepts users up to its maximum session limit (breadth-first or depth-first load balancing), so a 20-host pool is not limited to 20 users.
Resources required by a VM
Resource
Required?
Virtual network + subnet
Yes: "When you create a virtual machine (VM), you create a virtual network or use an existing one."
Network interface (NIC)
Yes: created automatically in the portal; each NIC must be connected to a VNet in the same location and subscription
Size (vCPUs, RAM), OS disk, image
Yes
Public IP address
No: "Assigning a public IP address to a NIC is optional."
NSG, service endpoint, Azure Firewall
Optional
Application hosting options
Service
Model
Use it for
Azure App Service
PaaS
Web apps, mobile back ends, REST APIs without managing infrastructure
Containers (ACI, AKS, Container Apps)
PaaS / managed
Portable containerized apps
Azure Virtual Machines
IaaS
Full control of the server
Azure Functions
Serverless
Code that runs on events
App Service plan tiers (frequent exam topic):
Tier
Compute
Scale out
Notes
Free, Shared
Same VM as other customers' apps
No
CPU minutes on a shared VM
Basic
Dedicated VMs
Manual, a few instances
Custom domains + TLS/SSL; 10 GB storage per plan
Standard
Dedicated VMs
Autoscale
50 GB storage per plan; the usual exam answer for "custom domain + SSL + several instances + > 10 GB, cheapest"
Premium, Isolated
Dedicated (Isolated: dedicated VNet too)
Autoscale
More instances and storage
The storage limit is the total for all apps in the same plan.
Virtual networking
Virtual networks and subnets
A VNet is "a software-defined, isolated network in Azure". Isolation by default: resources in different VNets can't communicate until you create peering or a VPN; resources in the same VNet communicate by default.
Subnets segment a VNet (e.g. web / app / data tiers); VNets and subnets are "your first layer of network segmentation".
Naming and addressing: a VNet name must be unique in its resource group; address ranges of different VNets may overlap, but overlapping networks can't be connected.
By default all resources can communicate outbound to the internet; inbound needs a public IP or a public load balancer.
A resource group or a lock is not a network boundary.
Peering
Connects two or more VNets so they "appear as one for connectivity purposes"; traffic stays on the Microsoft backbone (no gateway, no internet).
Works across regions (global peering), subscriptions and Microsoft Entra tenants: effectively "any two virtual networks" (non-overlapping address spaces).
Azure DNS
Azure Public DNS
Azure Private DNS
Purpose
Hosting service for your internet-facing domains
Name resolution inside virtual networks
Custom domain
Yes
Yes, instead of Azure-provided names
Automatic VM records
No
Autoregistration on a VNet link: VM records created and removed automatically
Hybrid connectivity: VPN Gateway vs ExpressRoute
VPN Gateway
ExpressRoute
Path
Encrypted tunnel over the public internet
Private connection via a connectivity provider, not over the internet
Central, across subscriptions and VNets (hub-and-spoke)
Azure DDoS Protection
Detects and mitigates DDoS attacks on public IPs; mitigation reports and flow logs
Public IP resources
User-defined routes (UDR)
Override routing: next hop virtual appliance (NVA), VNet gateway, internet, none...
Route table on a subnet
Network virtual appliance (NVA)
A VM running a network function such as a firewall
Reached through UDRs
NSG essentials:
Rule source/destination: Any, IP address / CIDR, service tag, or ASG.
Default rules exist in both directions and can't be removed (only overridden): VNet traffic and outbound internet are allowed, other inbound traffic is denied (DenyAllInbound). So an NSG does not block everything by default.
To open a port to a VM (HTTP 80, TCP 8080...): add an inbound allow rule in its NSG.
NSGs and Azure Firewall filter, they don't encrypt. Encryption comes from a VPN, TLS, or the OS (e.g. IPsec on Windows Server).
Public and private endpoints
Public endpoint
Service endpoint
Private endpoint
Address
Service's public IP
Service keeps its public IP; your subnet's traffic uses private source IPs
A network interface with a private IP from your VNet
Path
Internet
Azure backbone network
Private Link, inside your VNet
Use
Default access
Keep VNet → PaaS (e.g. Storage) traffic off the internet, restrict the service to your subnet
Reach a PaaS resource privately as if it were in your VNet
Exam traps
In the questionAnswer
"Operating system virtualization": strictly = containers (shared kernel); some questions use it for VMs ("a virtual machine with its own OS"). Use the other slots to decide.
Availability set = fault + update domains (one datacenter); availability zone = separate datacenters; scale set = autoscaling identical VMs.
AVD is not Windows-10-only (Windows 11, Windows Server too) and is multi-session.
A VM always needs a VNet; a public IP is optional.
Isolate a VM or meet a "separate network segment" requirement: separate VNet, never a resource group.
Peering works across regions and subscriptions: "any two virtual networks".
Remote individual users → Point-to-site; office network: Site-to-site; private, no internet → ExpressRoute (Layer 3, BGP, multiple circuits OK).
On-premises VPN device in Azure: local network gateway; Azure-side → virtual network gateway in GatewaySubnet.
Open a port / control web-to-DB traffic: NSG (subnet or NIC, not VNet). Central filtering across many VNets/subscriptions → Azure Firewall. Internet → internal server through the firewall → NAT (DNAT) rules.
Traffic Manager = DNS routing only; DDoS Protection = attack mitigation + reports. Neither opens access to a VM.
Keep Storage traffic off the internet: service endpoint (or private endpoint).
The rest of this chapter is part of the AZ-900 premium course
Unlock every chapter, all 470 questions and spaced review with All access or a 90-day exam pass. Every Fundamentals exam stays free, and the first chapter of every exam is open.