Convert a VM disk from unmanaged to managed - addycluri/Azure GitHub Wiki

There can be many situations where you are required to convert a disk attached to a VM from unManaged-->managed. Some of the common reasons being:

  • Restore a VM post migrating to another ssubscription another Azure subscription. Explained here
  • General upgrade as managed disks are the recommended storage for IaaS VM's

This wiki particularly focuses on such a conversion process using an Azure powershell cmdlet called ConvertTo-AzureRmVMManagedDisk whose usage instructions are provided here. Upon successful completion, the unmanaged disks attached to the VM will be converted to managed disks and the VM restored. Please note that this process requires VM downtime so plan for it accordingly

⚠️ **GitHub.com Fallback** ⚠️