Domain 3 of 5 · Chapter 2 of 4

Create and configure virtual machines

Unlock the complete study guide + 25 practice exams totaling 1,497 questions.

Bundled into the existing Microsoft Azure Administrator premium course — no separate purchase.

14-day refund guarantee on one-time purchases and your first subscription charge.

Included in this chapter:

  • What you choose when you create a VM
  • Configuring the guest with VM extensions
  • Quota and capacity: why a deployment is refused
  • VM power states and billing
  • Auto-shutdown schedules
  • Azure Spot VMs: eviction triggers and eviction policy
  • Encryption at host and the other disk encryption options
  • Enabling encryption at host
  • Moving a VM to another resource group or subscription
  • Moving a VM to another region with Azure Resource Mover
  • Redeploying a VM to a new Azure host
  • Resizing a VM
  • OS, data, and temporary disks
  • Choosing a managed disk type
  • How managed disks are billed
  • Disk redundancy: LRS and ZRS
  • VM and disk performance limits and host caching
  • What deleting a VM removes
  • Expanding a managed disk
  • Snapshots and images
  • Shared disks for clustered applications
  • Availability zones and availability sets
  • Scale set orchestration modes: Flexible and Uniform
  • Placing a new scale set behind a load balancer
  • Attaching and detaching VMs in a Flexible scale set
  • Upgrade policy: how instances receive model changes
  • Instance protection
  • Automatic instance repairs
  • Autoscale settings: profiles and instance limits
  • How autoscale decides to scale
  • Tracking autoscale events
  • Scale-in policy: which instances are removed

Managed disk types: role and performance model

CriterionUltra DiskPremium SSD v2Premium SSDStandard SSDStandard HDD
Typical workloadSAP HANA, top-tier databases, transaction-heavy workloadsProduction workloads that consistently need low latency, high IOPS, and high throughputProduction workloads that need high performance and low latencyWeb servers, lightly used applications, dev/testBackup and other noncritical, infrequently accessed workloads
Usable as OS diskNoNoYesYesYes (OS-disk use retires September 8, 2028)
How performance is setIndependently provisioned: capacity, IOPS, and throughput set independentlyIndependently provisioned: capacity, IOPS, and throughput set independentlySize-tiered: baseline from size; eligible higher performance tiers selectable without resizingSize-tiered: up to the size tier's limitsSize-tiered: up to the size tier's limits
Maximum IOPS per disk (Premium SSD, Standard SSD, Standard HDD: without performance plus)400,00080,00020,0006,0002,000
Maximum throughput per disk (Premium SSD, Standard SSD, Standard HDD: without performance plus)10,000 MB/s2,000 MB/s900 MB/s750 MB/s500 MB/s

Decision tree

Data disk needingover 80,000 IOPS?YesUltra Diskdata disk onlyNoIndependentlyprovisioned IOPS?YesPremium SSD v2data disk onlyNoProduction, needslow latency?YesPremium SSDOS or dataNoWeb server ordev/test workload?YesStandard SSDOS or dataNoStandard HDDbackup workloads

Cheat sheet

  • Linux VM key authentication installs the public key while the client retains the private key
  • Trusted Launch combines verified boot and virtual TPM protection on supported Gen2 VMs
  • VM image, size, and inbound access configure different deployment requirements
  • VM deployment must satisfy family quota, regional quota, and physical capacity
  • Guest shutdown does not necessarily stop VM compute billing
  • Spot VMs trade lower cost for capacity and price eviction risk
  • Spot eviction policy decides what remains rather than what triggers eviction
  • Redeploy moves a VM to another Azure node while preserving persistent configuration
  • On-demand capacity reservation secures matching compute capacity rather than only a billing discount
  • VM extensions automate guest configuration after the VM is provisioned
  • VM auto-shutdown schedules the lifecycle action using an explicit time zone
  • Azure Compute Gallery versions and distributes reusable images for VM provisioning
  • Encryption at host protects host-resident data without guest encryption overhead
  • Temporary disks use platform keys while cache keys follow each disk's encryption choice
  • Host encryption requires subscription registration and a supported VM size
  • Existing instances need reallocation for host-encryption changes
  • Host-encryption eligibility includes encryption history and disk-sector prerequisites
  • Managed disks already have server-side encryption without enabling encryption at host
  • A resource-group or subscription move does not relocate the VM's region
  • VM moves must include the supported dependency unit
  • Moves change resource IDs and temporarily lock management without stopping workloads
  • Marketplace plans and instant-restore points can require extra move preparation
  • Regional relocation separates dependency preparation, commitment, and source cleanup
  • Resizing a running VM restarts it and can require another hardware cluster
  • VM size selection must preserve disk compatibility and attachment capacity
  • Some storage-layout changes require migration instead of direct resize
  • A failed resize can show the requested model size while the previous size still runs
  • Ultra Disk performance is provisioned independently and can change while attached
  • Standard disk transaction charges depend on I/O size and disk type
  • ZRS synchronously protects disks across zones while LRS keeps three local copies
  • Disk types trade latency and throughput against workload cost
  • Premium SSD v2 separates performance provisioning from fixed disk tiers
  • VM and disk limits can independently cap storage performance
  • Host caching changes the I/O path and uses separate cached limits
  • Disk capacity and snapshots use different billing bases
  • VM deletion follows each attached resource's Delete or Detach policy
  • Managed data disks persist while temporary disks are short-term working storage
  • Attaching a new disk does not initialize its guest filesystem
  • Disk growth requires both Azure capacity expansion and guest volume extension
  • Online disk expansion depends on disk type and the 4-TiB boundary
  • Disk snapshots and VM images capture different reuse units
  • Shared disks provide clustered block storage rather than a managed file share
  • Zones isolate datacenters while availability sets reduce correlated local failures
  • Fault domains isolate hardware dependencies and update domains sequence maintenance
  • Availability-set domain counts are fixed at creation and do not create replicas
  • Selecting several zones in VM creation creates a separate VM per zone
  • Managed availability sets align disk and compute fault isolation
  • Standalone VMs attach to compatible Flexible scale sets without inheriting load-balancer membership
  • Flexible scale sets manage standard VMs while Uniform uses scale-set-specific instances
  • Flexible instance mixing depends on its placement configuration
  • Upgrade policy determines how existing instances receive model changes
  • Automatic repair requires application health and a suitable recovery action
  • Repair grace periods and batching prevent premature mass replacement
  • Instance protection distinguishes autoscale removal from broader scale-set actions
  • Existing VM membership changes require an eligible Flexible scale set and detachment before transfer
  • Scale-in policy selects deletion candidates after preserving zone balance
  • Scale-set creation must select the load balancer and backend pool for generated instances
  • Autoscale minimum, maximum, and default capacities serve different purposes
  • Autoscale accepts any scale-out trigger but requires every scale-in trigger
  • Fixed-date profiles precede recurring and default autoscale profiles
  • Metric duration and cooldown stabilize different stages of autoscale
  • Autoscale can use external metrics and normalize aggregate load per instance
  • Predictive autoscale adds VM scale-set capacity before recurring CPU demand arrives
  • Autoscale run history verifies scale events while notification settings report them

Unlock with Premium — includes all practice exams and the complete study guide.

Also tested in

References

  1. https://learn.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-portal
  2. https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/az-104
  3. https://learn.microsoft.com/en-us/azure/virtual-machines/managed-disks-overview
  4. https://learn.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-portal
  5. https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/linux/troubleshoot-ssh-connection
  6. https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/troubleshoot-rdp-connection
  7. https://learn.microsoft.com/en-us/azure/virtual-machines/trusted-launch
  8. https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/overview
  9. https://learn.microsoft.com/en-us/azure/virtual-machines/quotas
  10. https://learn.microsoft.com/en-us/azure/virtual-machines/capacity-reservation-overview
  11. https://learn.microsoft.com/en-us/azure/virtual-machines/states-billing
  12. https://learn.microsoft.com/en-us/azure/virtual-machines/capacity-reservation-remove-vm
  13. https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/resize-vm
  14. https://learn.microsoft.com/en-us/azure/virtual-machines/auto-shutdown-vm
  15. https://learn.microsoft.com/en-us/azure/virtual-machines/spot-vms
  16. https://learn.microsoft.com/en-us/azure/virtual-machines/disk-encryption
  17. https://learn.microsoft.com/en-us/azure/virtual-machines/ephemeral-os-disks
  18. https://learn.microsoft.com/en-us/azure/virtual-machines/linux/disks-enable-host-based-encryption-cli
  19. https://learn.microsoft.com/en-us/azure/virtual-machines/disks-types
  20. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-resource-group-and-subscription
  21. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/virtual-machines-move-limitations
  22. https://learn.microsoft.com/en-us/azure/resource-mover/tutorial-move-region-virtual-machines
  23. https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/redeploy-to-new-node-windows
  24. https://learn.microsoft.com/en-us/azure/virtual-machines/windows/attach-managed-disk-portal
  25. https://learn.microsoft.com/en-us/azure/virtual-machines/linux/add-disk
  26. https://learn.microsoft.com/en-us/azure/virtual-machines/windows/tutorial-manage-vm
  27. https://learn.microsoft.com/en-us/azure/virtual-machines/disks-change-performance
  28. https://learn.microsoft.com/en-us/azure/virtual-machines/disks-enable-performance
  29. https://learn.microsoft.com/en-us/azure/virtual-machines/delete
  30. https://learn.microsoft.com/en-us/azure/virtual-machines/disks-redundancy
  31. https://learn.microsoft.com/en-us/azure/virtual-machines/disks-performance
  32. https://learn.microsoft.com/en-us/azure/virtual-machines/windows/expand-os-disk
  33. https://learn.microsoft.com/en-us/azure/virtual-machines/generalize
  34. https://learn.microsoft.com/en-us/azure/virtual-machines/shared-image-galleries
  35. https://learn.microsoft.com/en-us/azure/virtual-machines/disks-shared
  36. https://learn.microsoft.com/en-us/azure/virtual-machines/availability-set-overview
  37. https://learn.microsoft.com/en-us/azure/virtual-machines/create-portal-availability-zone
  38. https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-orchestration-modes
  39. https://learn.microsoft.com/en-us/azure/virtual-machines/maintenance-and-updates
  40. https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/overview
  41. https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-manage-fault-domains
  42. https://learn.microsoft.com/en-us/azure/load-balancer/configure-vm-scale-set-portal
  43. https://learn.microsoft.com/en-us/azure/load-balancer/backend-pool-management
  44. https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm
  45. https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-placement-groups
  46. https://learn.microsoft.com/en-us/azure/virtual-machines/co-location
  47. https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-policy
  48. https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-instance-protection
  49. https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-instance-repairs
  50. https://learn.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-overview
  51. https://learn.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-understanding-settings
  52. https://learn.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-get-started
  53. https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-scale-in-policy