Diagram
A process flow showing how to resize VMs in an availability set, starting with checking available sizes and branching based on whether the desired size is on the current hardware cluster or requires deallocation of all VMs.
Practical Example: Resizing VMs in an Availability Set
When multiple VMs are grouped in an availability set to protect against hardware failure, you must coordinate the resize operation. First, check if the new size is available on the current hardware using Get-AzVMSize. If it is not available, you must deallocate all VMs in the set at the same time using Stop-AzVM because the entire availability set lives on the same hardware cluster. After they are deallocated, apply the new size to every VM with Update-AzVM, then restart them all with Start-AzVM. This approach prevents a situation where one VM has been resized to a new hardware cluster while another is still on the old cluster, breaking the availability guarantees of the set.
Domain 2 of 5
2 practice questions
Practice this DomainLast updated