Share via


OS Disk swap for unmanaged disk VM

Question

Saturday, September 29, 2018 6:46 PM

Team,

Thanks in advance, as per the below article, OS disk swap functionality is available for managed OS disk, as mentioned in the article the same functionality is available for unmanaged disk VM as well.

"Today, we are excited to announce the availability of the OS Disk Swap capability for VMs using Managed Disks. Until now, this capability was only available for Unmanaged Disks."

Just wanted to know if i don't want to create a new vm from scratch with existing VHD(unmanaged disk), how can i do OS disk swap when i have unmanaged disk VM and a OS vhd present in the storage account? any Powershell commandlet for the same?

https://azure.microsoft.com/en-us/blog/os-disk-swap-managed-disks/

All replies (12)

Sunday, September 30, 2018 6:08 PM âś…Answered | 1 vote

Oops! Sorry about that! 

I am still trying to find the official article on this but there is one in a blog that achieves it for you

https://marckean.com/2017/11/11/change-azure-arm-vm-os-disk/

The commands are essentially the same however you actually have access to the disk URI so you can plug it in. 


Sunday, September 30, 2018 2:05 AM

If you have unmanaged disks you can use the following doc: 

/en-us/azure/virtual-machines/windows/os-disk-swap


Sunday, September 30, 2018 8:54 AM

Hi Micah,

Thanks for answering, I already had a look at the article and the article is for managed disk and not for unmanaged disk VM. Below command from the article uses -ManagedDiskID propertity which we can only get from managed disk

Set-AzureRmVMOSDisk -VM $vm -ManagedDiskId $disk.Id -Name $disk.Name


Sunday, September 30, 2018 7:04 PM

Thanks Micah,

It's the one which i was looking for instead of creating a new VM from the VHD file.

If you find the DOCs link do share.


Sunday, September 30, 2018 7:57 PM

Will do! I am following up the with the content team. If we don't have an official doc I will submit a request to get one added :) 


Monday, October 1, 2018 4:14 AM

Thanks for the reply! Have a great evening ahead.


Friday, October 5, 2018 7:25 PM

Just a quick update. There is no official doc. I am working on creating one with our content team and getting it published. I don't have an ETA but am working on it now :) 


Saturday, October 6, 2018 4:44 PM

Thanks Mckittrick for update, Do post the link once you are done with the publishing.


Saturday, October 27, 2018 7:44 AM

Hey Mckittrick,

Just wanted to know, Do you have any update on the official doc?


Saturday, October 27, 2018 4:17 PM

Yes! The new document has been approved. I am actually working on writing it up now. I have a few other things I am also working on but it is in progress. 


Monday, May 20, 2019 3:55 AM

Hi McKittrick,

just wanted to know if you're done with the document? can you share me the link.


Monday, May 20, 2019 6:50 PM

We have a few doc updates planned around this. However there is also some push back as we want to have all customers using managed disks and not unmanaged. So the need for the article is considered low priority. 

I just created an item on the os swap disk doc so we can track and work this to close. 

https://github.com/MicrosoftDocs/azure-docs/issues/31754