All exams← All Azure Administrator (AZ-104) notes

Deploy & manage compute (VMs, containers): Azure Administrator (AZ-104) revision notes

Revision notes

VM sizing and availability

Pick a VM series based on workload: B-series is burstable/cheap for dev-test, D-series is general purpose, E-series is memory-optimised, F-series is compute-optimised.

Use Availability Sets for rack-level fault tolerance within one datacentre (2-3 fault domains, up to 20 update domains).

Use Availability Zones for datacentre-level resilience across a region (minimum 3 physical zones, each with independent power/cooling/networking).

A VM Scale Set (VMSS) automatically adds or removes identical VM instances based on demand or a schedule, and can span zones.

Disks and images

Managed disks come in four tiers: Ultra Disk, Premium SSD, Standard SSD, Standard HDD - Ultra and Premium need a compatible VM size (usually the 's' in the size name, eg Dsv5).

OS disks default to a 30-second write cache; data disks default to none for Premium SSD unless changed.

A Shared Image Gallery lets you version and replicate custom images across regions and subscriptions - better than plain managed images for scale.

Generalise a VM with sysprep (Windows) or waagent -deprovision (Linux) before capturing an image.

Common exam traps

Resizing a VM may be blocked if the target size isn't available on the current hardware cluster - you may need to deallocate first.

Moving a VM between Availability Sets is NOT possible after creation - you must delete and recreate it (or use Azure Migrate).

Update Domains are not evenly guaranteed - Azure decides placement; you just get the fault-tolerance benefit.

Containers: ACI vs AKS vs Web App for Containers

Azure Container Instances (ACI) is the fastest way to run a single container with no orchestration, billed per second - ideal for burst or batch jobs.

Azure Kubernetes Service (AKS) is the managed Kubernetes control plane - Microsoft manages the control plane free of charge, you pay only for the worker nodes.

AKS supports cluster autoscaler (nodes) and Horizontal Pod Autoscaler (pods) separately - know the difference.

Web App for Containers (App Service) runs a single container behind App Service's PaaS features (custom domains, easy auth, deployment slots).

Container instances can be placed in a virtual network for private connectivity, but only in a dedicated (delegated) subnet.

ACR (Azure Container Registry)

ACR has three tiers: Basic, Standard, Premium - only Premium supports geo-replication and private endpoints.

Use az acr build for cloud-based image builds without needing local Docker.

Enable admin user only for testing; production should use managed identity or service principal auth against ACR.

Common mistakes

Forgetting that stopping (not deallocating) a VM in the portal still bills compute charges - always use 'Stop (deallocated)' or the CLI az vm deallocate.

Assuming AKS control plane costs money on the Free tier - it doesn't, only nodes and the optional paid SLA tier do.

Confusing Availability Sets (single datacentre) with Availability Zones (multiple datacentres) - a very common AZ-104 distractor.

Key facts

Flashcards

What is the minimum number of Availability Zones a supporting Azure region provides?
3 physical zones, each with independent power, cooling and networking.
tap to reveal
How many update domains does an Availability Set typically provide?
Up to 20 update domains (and usually 2-3 fault domains).
tap to reveal
Can you add an existing VM to an Availability Set after creation?
No - you must delete and recreate the VM (or use Azure Migrate) to change its Availability Set.
tap to reveal
How do you stop a VM so it stops billing for compute?
Deallocate it (az vm deallocate or 'Stop (deallocated)' in the portal) - a plain Stop still bills.
tap to reveal
Which ACR tier supports geo-replication?
Premium tier only.
tap to reveal
Does Microsoft charge for the AKS control plane?
No, the Standard tier control plane is free - you pay only for the worker node VMs (plus optional Uptime SLA).
tap to reveal
What is the fastest way to run a single container with no orchestration needed?
Azure Container Instances (ACI), billed per second.
tap to reveal
What is the difference between cluster autoscaler and Horizontal Pod Autoscaler in AKS?
Cluster autoscaler scales the number of node VMs; Horizontal Pod Autoscaler scales the number of pod replicas - they work independently.
tap to reveal
What VM size naming convention hints at Premium/Ultra disk support?
An 's' in the size name, eg Dsv5 or Esv5.
tap to reveal
What command generalises a Linux VM before capturing an image?
waagent -deprovision (Windows uses sysprep).
tap to reveal
What lets you version and replicate custom VM images across regions and subscriptions?
A Shared Image Gallery.
tap to reveal
Can a VMSS span multiple Availability Zones?
Yes, a Virtual Machine Scale Set can span zones for extra resilience.
tap to reveal
What networking requirement applies to placing a container instance in a VNet?
It must be placed in a dedicated, delegated subnet.
tap to reveal
Why might a VM resize operation fail even though the target size exists in the region?
The target size may not be available on the current hardware cluster - deallocating the VM first often resolves it.
tap to reveal
What's the key difference between Availability Sets and Availability Zones?
Availability Sets protect within a single datacentre (rack-level); Availability Zones protect across multiple physically separate datacentres in a region.
tap to reveal
Practice questions

Deploy & manage compute (VMs, containers): 5 practice questions

Q1. You need to create a Windows Server VM in Azure and want it billed at the standard pay-as-you-go rate with a guarantee it will not be evicted by Azure. Which pricing model should you choose?
  • A.  Standard (pay-as-you-go)
  • B.  Spot pricing
  • C.  Low-priority pricing
  • D.  Reserved Instance
Show answer & explanation
✓ Answer: A. Standard (pay-as-you-go)
Standard pay-as-you-go pricing guarantees the VM runs until you stop it and is never evicted for capacity reasons. Spot and low-priority VMs are cheaper but can be evicted when Azure needs the capacity back. Reserved Instances also run without eviction but require a 1- or 3-year commitment, which wasn't specified here.
Q2. An administrator wants to guarantee that two VMs supporting a tiered application are placed in separate fault domains and update domains within the same datacenter. What should they configure?
  • A.  A virtual network peering
  • B.  An availability set
  • C.  A proximity placement group
  • D.  An availability zone
Show answer & explanation
✓ Answer: B. An availability set
An availability set spreads VMs across fault domains (separate power/network) and update domains (separate host maintenance windows) inside a single datacenter, giving 99.95% SLA. Availability zones spread VMs across physically separate datacenters, not within one. Proximity placement groups reduce latency by placing VMs close together, the opposite goal.
Q3. You deploy VMs across three availability zones in the UK South region for a mission-critical service. What SLA does Microsoft guarantee for VM uptime when at least one instance runs in each of two or more zones?
  • A.  99.5%
  • B.  99.9%
  • C.  99.95%
  • D.  99.99%
Show answer & explanation
✓ Answer: D. 99.99%
Deploying VMs across two or more availability zones qualifies for the 99.99% SLA, the highest tier for VMs. 99.95% applies to availability sets or a single zone, and 99.9% applies to a single premium/ultra disk VM outside an availability set or zone.
Q4. Which Azure resource lets you automatically increase or decrease the number of identical VM instances behind a load balancer based on CPU metrics?
  • A.  Azure Batch account
  • B.  Availability set
  • C.  Virtual Machine Scale Set
  • D.  VM extension
Show answer & explanation
✓ Answer: C. Virtual Machine Scale Set
A Virtual Machine Scale Set (VMSS) manages a group of identical, load-balanced VMs and can autoscale the instance count based on metrics like CPU or memory. An availability set only groups existing VMs for fault tolerance and has no autoscale capability. Azure Batch is aimed at large-scale parallel/batch compute jobs, not general web tier autoscaling.
Q5. You need to run a container image as a single, quickly-started container instance without provisioning or managing any VMs or clusters. Which service should you use?
  • A.  Azure App Service
  • B.  Azure Kubernetes Service
  • C.  Azure Virtual Machine Scale Sets
  • D.  Azure Container Instances
Show answer & explanation
✓ Answer: D. Azure Container Instances
Azure Container Instances (ACI) lets you run a container directly on Azure's infrastructure with per-second billing and no VM or orchestrator management, ideal for simple or burst workloads. AKS requires managing a Kubernetes cluster, which is unnecessary overhead for a single container. App Service is designed for web apps, not arbitrary standalone containers.
Test yourself
See the Azure Administrator (AZ-104) page

More Azure Administrator (AZ-104) topics