azure vm swapping disk with another vm

During a recovery, we often restore a VM and then start our recovery process. Sometimes, DBA don't like VM to be called differently. So lets swap the OS disk drive. To do that, follow these steps :-


  1. We restore the backup to a new VM using the latest snapshot available (standard and snapshot

  2. Swap the VM disk with the VM and re-init sql server registration for the VM

            Go to the restored VM → Goto the Disk → Create Snapshot. Ensure it is the same configuration as the target restore VM (Premium SSD vs Standard HDD).

            Call it OS-disk-snapshot-<date>.

            Then once this is completed, we will go and use this to create an OS Disk. Click on the snapshot → Create Disk.

            Once we have done this, we will be able to do a OS swap. VM does not need to be stopped

  1. Attached all the disk back

  2. Install extension such as VMBackup, Azure diagnostic extension → 





Comments

Popular posts from this blog

vllm : Failed to infer device type

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

android studio kotlin source is null error