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 22, 2017Copper Contributor
Hi Sunit,
Actually no. I'm attempting to restore the snapshot in a similar way you would apply a Hyper-V checkpoint. I would prefer not to delete and recreate the Azure VM from the snapshot. Instead i was wondering if there is a way i can convert the snapshot to a disk and attach it back to the existing VM....
Sunit Patil
May 22, 2017Brass Contributor
Hi Tom,
in this scenario use backup feature to take Snapshot backup you may have to pay some more money for backup Feature.
Check this URL for more details
https://docs.microsoft.com/en-us/azure/backup/backup-azure-vms
Best
Sunit Patil
Skype: Sunitonline
- Tom HarveyMay 23, 2017Copper Contributor
Thats what i love about azure, so many ways to achieve the same thing.
Thanks Sunit, i think Azure Backup is a bit excessive for my needs. The VM;s in question are all DEV boxes, we need a quick procedure to take a point in time backup pre-deployment. This would also serve as a fast restore point if required.
What we are currently doing by using managed disks with snapshot capabilities, then recreating a disk from the snapshot and then re-creating the VM from the new disk is serving its purpose. I think we will stick with this approach for now as to not introduce additional costs. Its actually a fast process when the powershell scripts are all in order too.
- Sunit PatilMay 11, 2018Brass Contributor
Have you guys seen this? but this only available in Managed Disk
https://docs.microsoft.com/en-us/azure/virtual-machines/linux/snapshot-copy-managed-disk
Use Azure portal
- Sign in to the Azure portal.
- Starting in the upper-left, click Create a resource and search for snapshot.
- In the Snapshot blade, click Create.
- Enter a Name for the snapshot.
- Select an existing Resource group or type the name for a new one.
- Select an Azure datacenter Location.
- For Source disk, select the Managed Disk to snapshot.
- Select the Account type to use to store the snapshot. We recommend Standard_LRS unless you need it stored on a high performing disk.
- Click Create.
- Darrell LowranceSep 13, 2018Copper Contributor
Yes, I've seen it. However, in order to revert back to the VM's original state, you must delete the original VM, then create a new VM from the snapshot by running a PS script and manually entering many required parameters.
This process seems awfully involved, even risky and prone for mistakes.
What we're looking for is something similar to VMWare where you can take a quick snapshot just before making changes to the VM (e.g. upgrade the OS/apps, make config changes, etc). If something fails, you can easily revert back to the VM's original Snapshot state by simple clicking a button.
Thanks for considering.
- NatMar 28, 2018Brass Contributor
I came here looking for the exact same solution to the original poster's question:
"Actually no. I'm attempting to restore the snapshot in a similar way you would apply a Hyper-V checkpoint. I would prefer not to delete and recreate the Azure VM from the snapshot. Instead i was wondering if there is a way i can convert the snapshot to a disk and attach it back to the existing VM...."
Left disappointed.
Why does Microsoft make it easy to create a snapshot of disks in the Azure portal, but not provide any obvious way to revert to these snapshots?- S_V_Anil_KumarMar 26, 2024Copper Contributor
Hi All,
Here is how, you can revert back to previous Snapshopt on the existing VM and not by deleting and re-creating the VM.
1. Login to Azure Portal.
2. Navigate to "snapshots".3. Select the Snapshot that you want your VM revert back to.
4. Crete the Disk using the Snapshot that you want to revert to. Now the Disk is ready.
5. Navigate to Virtual Machines in Azure Portal.
6. Select the Virtual Machine you want to revert.
7. Navigate to "Disks".
8. Select the OS Disk of the VM. There will an Option to "swap OS disks".9. Select "swap OS disks", it will open a form to select the New Disk.
10. Select the New Disk That Created in Step#4.
11. Provide the VM Name and Say Submit.
12. Now the VM will stop --> Swap the OS Disk. Wait for the process to complete.13. Start the VM and try to login and verify your packages.