We are always being asked to expand disk and add new disk to VM’s on Azure and there is some confusion around the process.
Expanding a disk on an Azure virtual machine (WM) is easy:
Here are the two catches:
Adding new drive to an Azure VM without shutting it down. Again, you will need to add the drive then use DISK MANAGER to partition and format the volume.
To change the type of a data disk (e.g., from Standard SSD to Premium SSD) on an Azure VM, you also need to deallocate the VM first. This involves stopping the VM, making the change, and then restarting the VM.
Alternatively, if it is just data disk (i.e. no the drive containing the OS), you could detach the disk while the VM is still running, change the disk type, and then reattach it. However, this method can sometimes lead to data loss, so it’s safer to deallocate the VM.
Note that disks can be downgraded just as easily as they can be upgraded. For example, you can move a disk from STANDARD SSD to SPINNING DISK using the same rules as stated above for upgrades.
Changing the availability zone of an existing disk directly on the fly is not supported. To move a disk to a different availability zone, you need to follow these steps:
This process ensures that the disk is moved to the new availability zone, but it does require some downtime.
To figure out the cost of an drive changes on an Azure VM, use . You can change the type, redundancy and size to see what the price is.
If that is too much work, just click on the screenshot to the right to see what the prices were in USD in January 2024.
That is about all you need to know about expanding Azure VM disks.
This website uses cookies.