It might seem quite obvious but it's not.

My question is how to change backup policy for particular VM, which is already configured to use another policy in the Recovery services vault?

Just to be clear, we're talking about Azure VM backup. So I can't add VM to Associated items of another policy, because It's already configured with the first one.

My thoughts to resolve this:

Stop backup for the VM, retain data. Configure backup again, but now with different policy. This would show some errors in backup alerts as the backup will be stopped.

Any though how to resolve this in more elegant way?


You can go to replicated items and from backup policy, click on its name and then you change to a new one. See this image Change policy


You can change the backup policy programmatically as well. See MS Doc: Change policy for backup items

PowerShell example from the above doc:

$TargetPol1 = Get-AzRecoveryServicesBackupProtectionPolicy `
  -Name <PolicyName> -VaultId $targetVault.ID
$anotherBkpItem = Get-AzRecoveryServicesBackupItem -WorkloadType AzureVM -BackupManagementType AzureVM -Name "<BackupItemName>" `
  -VaultId $targetVault.ID
Enable-AzRecoveryServicesBackupProtection -Item $anotherBkpItem `
  -Policy $TargetPol1 -VaultId $targetVault.ID

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.