I tried to figure out what’s the best way to backup and restore a VM with Azure RM. I found the obvious: The recovery services fault with the two recovery options “Create virtual machine” and “Restore disks”. I found the unexpected: There is no easy way to restore a virtual machine without former deletion of the old VM.
What I currently do:
- Run “Restore VM” with the “Restore disks” option to get the vhd
- Stop the VM
- Break the lease of the VMs vhd blob
- Blob Copy the restored vhd over the VMs vhd
- Start the VM
This works. The definition of the VM isn’t touched. VMs with special configurations keep their configuration. This is relative simple, but I wonder why it isn’t recommended.
Is there a hidden caveat of the method described above?
Are there other (better?) methods of restoring a VM without touching its configuration?