Upgrade your Standard MD VM to Premium MD VM and Resize

Azure , , , , , 0 Comments

Before upgrading your Manged disk VM to Premium Storage, please check that the VM supports ‘Premium Storage’! If your VM Size does not support Premium storage please update it accordingly.

You can upgrade to Premium MD VM or Resize via the Azure Portal or Powershell. of course it will also be possible via Azure CLI, but I will show you only these two.

Keep in mind:

  • That you can always switch between Standard or Premium Storage (LRS) as long as your VM size supports it (Premium Support)
  • That you can only extend a disk! you cannot shrink them!

Azure Portal:

First: Stop your VM (Deallocated) and browse to ‘Disks’ and open the details for the disk you want to upgrade/resize.
On ‘Account Type’ you can switch between Standard and Premium Storage. At ‘Size (GB)’ you can increase the disk size (you cannot decrease).
Keep in mind that you do need to extend the disk in Windows Disk Management after you have resized the disk.

PowerShell:

Upgrade your MD VM disk to Premium MD VM disk in Powershell:

Resizing your MD disk VM in Powershell:

Both, Upgrade to Premium and Resizing, are pretty much the same! Of Course you could also combine both into one command like:
$NewDiskCOnfig = New-AzureRmDiskUpdateConfig -DiskSizeGB 200 -AccountType PremiumLRS

Note: Don’t forget to Extend your disk in Windows ‘Disk Management’ as you should normally do.

gr,

Pieterbas

Leave a Reply

Your email address will not be published. Required fields are marked *

*