You can deallocate a VM by using the stop button in the portal to turn it off.

Disk Resize


NOTE: Virtual machines MUST be deallocated in order to resize.

Using the portal

  • In the Azure portal select the VM you wish to resize
  • Select the stop button (this should deallocate it)
  • Navigate to 'Disks' in the lefthand pane
  • Select the disk you wish to resize by name
  • Navigate to 'Size + performance' under 'Settings' in the lefthand pane
  • Update disk accordingly

Once restarted:

  • use growpart to grow the partition to fill up all available space on the disk
  • use resize2fs to grow the volume to utilize the new partition space