Skill 3.2.5

Manage virtual machine disks

Key Concepts

Each VM has an OS disk, optional data disks and usually a temporary disk whose data is lost on redeployment or deallocation. Managed disk types are Standard HDD (backup and non-critical), Standard SSD (light production), Premium SSD (production, with performance by disk size), Premium SSD v2 (independently configurable capacity, IOPS and throughput) and Ultra Disk (the highest performance, changeable while running). Disk type can be changed for most types while the VM is deallocated. Host caching is None, ReadOnly or ReadWrite.

Data disks are attached in the portal or with az vm disk attach and then initialized and formatted inside the operating system. Disks can be expanded (some types while running) but never shrunk, after which the partition must be extended in the guest. Snapshots capture a point-in-time copy of a disk, and incremental snapshots store only changes. Shared disks attach one Standard SSD, Premium SSD, Premium SSD v2 or Ultra Disk to several VMs for clustered applications, and zone-redundant disks (ZRS) survive a zone failure.