Skill 3.2.4

Manage virtual machine sizes

Key Concepts

Sizes are grouped in families: B (burstable, earning CPU credits when idle), D (general purpose), E (memory optimized), F (compute optimized), L (storage optimized with local NVMe), M (very large memory) and N (GPU). Names such as Standard_D4s_v5 encode the family, vCPU count, features (s = premium storage support) and version. Each size also limits the number of data disks and NICs and the disk IOPS and throughput.

Resizing is done on the VM's Size page or with az vm resize. If the new size is available on the hardware cluster that hosts the VM, the VM restarts with the new size; if not, it must be deallocated first so that it can be placed on other hardware. Sizes may be unavailable in a region or zone, and a vCPU quota for the family must be available. VMs in an availability set are constrained by the set's cluster, so all of them may need to be deallocated.