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:
![](http://www.thatlazyadmin.com/wp-content/uploads/2021/05/word-image-7.png)
Then click on “Stop backup” to stop the current backup in the existing vault.
![](http://www.thatlazyadmin.com/wp-content/uploads/2021/05/word-image-8.png)
Once your backup has stopped successfully, head over to the old recovery vault and select properties.
![Graphical user interface, text, application, chat or text message
Description automatically generated](http://www.thatlazyadmin.com/wp-content/uploads/2021/05/graphical-user-interface-text-application-chat.png)
Under properties, “Disable” the “Soft delete” feature.
![Graphical user interface, text, application
Description automatically generated](http://www.thatlazyadmin.com/wp-content/uploads/2021/05/graphical-user-interface-text-application-descr-9.png)
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 |
![Text
Description automatically generated with medium confidence](http://www.thatlazyadmin.com/wp-content/uploads/2021/05/text-description-automatically-generated-with-med.png)
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.
![Graphical user interface, text, application
Description automatically generated](http://www.thatlazyadmin.com/wp-content/uploads/2021/05/graphical-user-interface-text-application-descr-10.png)
Now lets go back to the azure portal and look at the vm if it still associated with a recovery vault.
![Graphical user interface, application
Description automatically generated](http://www.thatlazyadmin.com/wp-content/uploads/2021/05/graphical-user-interface-application-description-3.png)
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.