Recovery Services vault – How to Disable Backup, Move to a new Recovery Services vault
1. Stop Backup – without Erasing Data 2. Disable Soft Deletion in Recovery Service VaultId 3. Execute Script: $RG=backup-mig $Vault=backup-mig $VMName=medicareiisql $vault = Get-AzRecoveryServicesVault -ResourceGroupName $RG -Name $Vault $Container = Get-AzRecoveryServicesBackupContainer -ContainerType AzureVM -Status Registered -VaultId $vault.ID -FriendlyName $VMName $BackupItem = Get-AzRecoveryServicesBackupItem -Container $Container -WorkloadType AzureVM -VaultId $vault.ID Disable-AzRecoveryServicesBackupProtection -Item $BackupItem -VaultId $vault.ID -RemoveRecoveryPoints -Force