is it possible to change the recovery service vault of azure vm without deleting the previous one

Vinoth Kaliaperumal 386 Reputation points
2023-02-20T15:11:57.67+00:00

I would like to change the recovery service vault of the virtual machine without affecting the previous recovery service vault as i need those backup data till their retention period.

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,497 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alessio Sciuto 46 Reputation points
    2023-02-20T16:21:18.22+00:00

    Hi Vinoth,

    it is totally possibile, I have setup a custom procedure to achieve this while keeping the old backup data for the retention period.

    This procedure requires a VM migration from the original Resource Group to a temporary one.

    These are the steps to follow:

    1. Stop protection and retain backup data (https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/backup/backup-azure-manage-vms.md#stop-protection-and-retain-backup-data)
    2. Move the VM to a temporary Resource Group (changing the Resource Group will also change the resource ID, so Azure will recognize the VM as different and unprotected, allowing you to configure protection in the new vault)
    3. Protect the VM in the new vault
    4. Wait the retention period to be fulfilled in the new RSV
    5. Disable the Soft Delete feature and delete the recovery points in the old RSV

    Optionally, if you want to go back to the original Resource Group, do the following:

    1. Move the VM to the original Resource Group (to change the resource ID again and allow Azure recognize the VM as unprotected, so you can set up the protection again in the new RSV).
    2. Protect the VM again in the new vault
    3. Wait the retention period to be fulfilled again
    4. Delete the old recovery points from the new RSV and wait for the Soft Delete feature to automatically delete the points after 14 days

    Please let me know if the procedure is clear.

    Best Regards,

    Alessio

    3 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.