Hello folks and welcome back. I recently had cause to convert the OS disk of an Azure VM from Standard (HDD) to Premium (SSD). This turned out to be a little more interesting than I expected, so I thought I’d blog the process I decided on and for once this will actually be quite a short post as it’s all PowerShell.
Before we get into it, let’s have a look at the existing VM and what we’re looking to achieve:
The VM We’re Starting With
Here are the particulars of our test VM, post change:
- VM Size: Standard D1 v2 (1 CPU, 3.5 GB RAM)
- 128 GB OS disk on standard storage (HDD)
- 2 x 128 GB data disks on standard storage (HDD)
- All disks are in the same storage account
- All disks are unmanaged
- VM has a dynamic Public IP assigned