Convert Unmanaged Disk to Managed Disk

Azure , , , , 1 Comment


As I promissed in my last post about creating Managed disks in Azure you also have the option to convert your existing VM’s (Unmanaged disks) to Managed Disks!

The requirments for converting a unmanged disk (UMD) to managed disk (MD):

  • The Unmanged Disk(s) is not in a Encrypted storage accout (SSE)
  • The VM is created in ARM (Azure Resource manager)
  • The conversion cannot be performed in the Azure Portal; Use Powershell
  • All disks attached to your VM will be converted (That is: OSDisk and Datadisk(s))

Note1: You could also convert a Classic VM (ASM) to have Managed Disks. In this case you have to mgirate the Classic VM to ARM. This may also include a migration of your VNET and/or Public IP’s to ARM etc.

Note2: If you want to convert UMD’s in a Encrypted storage account (SSE) you have to move the disks (VHD’s) to a Unencrypted Storage Account before converting to MD. After conversion to MD you can encrypt your MD’s with Azure Disk Encryption

Convert a single VM from Unmanaged disk (UMD) to Managed disk (MD)

Ok! lets check which type of OS disk your VM has:

note: you could also check for StorageProfile.DataDisk if your VM has Data disk(s) attached to it

Now we know your VM has a UMD, lets convert it to a MD:

Check again if your VM has a Managed disk:

note about Data Disk(s): In the above example I have only showed you the conversion of a Single VM with one OSDisk. Please be aware that your Data Disk(s), if you have them attached to your VM, will also be converted to Managed Disks.

Convert VM’s in an availability set to managed disks (MD) in a managed availability set

For VM’s running in a availability set the conversion is slightly different. in short the steps:

  1. Convert your Availability set to a ‘Managed Availability set’
  2. Convert each VM in the Managed Availability set to MD’s

Thats it for now! happy converting!

Next posts i will be convering the details about re-sizing MD’s and upgrade MD’s to premium storage.




Convert a VM from unmanaged disks to managed disks

One thought on “Convert Unmanaged Disk to Managed Disk

Leave a Reply

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