In this post I will walk through the process of how to change your recovery vault once you have setup your azure backup.
To get started:
Navigate to your vm which you want to move to a new recovery vault.
Then click on Backup:

Then click on “Stop backup” to stop the current backup in the existing vault.

Once your backup has stopped successfully, head over to the old recovery vault and select properties.

Under properties, “Disable” the “Soft delete” feature.

Click on Save.
On the next step, you will have to install the Azure PowerShell Module. Here we will remove the backup protection for the selected vm.
Install Azure PowerShell: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-4.2.0
Connect to Azure once the PowerShell module has been installed.
1 |
Connect-AzAccount |

Once you are connected run the following to remove backup protection from the VM.
Remember to update following fields
- ResourceGroupName
- VM FriendlyName
1 2 3 4 5 6 7 |
$vault = Get-AzRecoveryServicesVault -ResourceGroupName "[Resource group name here]" -Name "[Recovery Services Vault name here]" $Container = Get-AzRecoveryServicesBackupContainer -ContainerType AzureVM -Status Registered -FriendlyName [VM name here] -VaultId $vault.ID $BackupItem = Get-AzRecoveryServicesBackupItem -Container $Container -WorkloadType AzureVM -VaultId $vault.ID Disable-AzRecoveryServicesBackupProtection -Item $BackupItem -VaultId $vault.ID -RemoveRecoveryPoints -Force |
Once you have completed the process you will notice that the status is completed.

Now lets go back to the azure portal and look at the vm if it still associated with a recovery vault.

As we can see from the vm backup menu it is no longer associated with a recovery vault, we can now select the new recovery vault to continue backing up the virtual machine.
Credit: this process was found on “https://feedback.azure.com/forums/258995-azure-backup/suggestions/33419662-move-vm-from-recovery-services-vault-to-new-vault “by user Matheus.
Good post. Was scratching my head trying to work out how to do this. Nice one.