Forum Discussion
Tom Harvey
May 18, 2017Copper Contributor
Revert to Azure Managed Disk snapshot on Azure VM
Hi All, Looking for some assistance in reverting a Managed disk snapshot to an OS disk of the VM. Idealy i would like to do the following: 1. Detach existing OS managed disk from VM 2. Conve...
Tom Harvey
May 27, 2018Copper Contributor
Hi Panos,
I haven't spent any more time on this since my post. I wrote a script that will recreate the Disk from the snapshot and then recreate the VM using the new Disk. It deletes the VM but retains the VM components, nic, pip etc. The whole process takes about 5 minutes which isn't too bad. Sometimes when the VM comes back up its lost its domain account although it's an easy fix and happens 1 out of every 10 restores old say. Needless to say, the process is working for us I'm just surprised there isn't an easier option. On your note, I'm not sure you can detach / attach an os Disk from a VM, not sure I've tried that although could be a better option.
I'm happy to share my script for anyone interested, been a few comments on here since my last post.
I haven't spent any more time on this since my post. I wrote a script that will recreate the Disk from the snapshot and then recreate the VM using the new Disk. It deletes the VM but retains the VM components, nic, pip etc. The whole process takes about 5 minutes which isn't too bad. Sometimes when the VM comes back up its lost its domain account although it's an easy fix and happens 1 out of every 10 restores old say. Needless to say, the process is working for us I'm just surprised there isn't an easier option. On your note, I'm not sure you can detach / attach an os Disk from a VM, not sure I've tried that although could be a better option.
I'm happy to share my script for anyone interested, been a few comments on here since my last post.
Anonymous
Jul 23, 2018Hi Can you please send me the script too.