question

MauriceRossi-1063 avatar image
0 Votes"
MauriceRossi-1063 asked SadiqhAhmed-MSFT commented

Backup Policy still exists after deletion

When i delete a Backup Policy in the Backupcenter, i get the Message "Deleting Backup Policy: Operation successful" but the Backup Policy still exists. How can i remove them?

azure-backup
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

To follow-up, Please let us know if you have further query on this.
Please don’t forget to Accept the answer

0 Votes 0 ·
MauriceRossi-1063 avatar image
1 Vote"
MauriceRossi-1063 answered SadiqhAhmed-MSFT commented

I figured out the problem:

I deleted the Backup Vault for a Policy and recreated a Backup Vault with the same name. Then i wasn't able to delete the Backup Policy anymore. Looks like it was in an inconsistent state. The old Backup Vault was deleted and the Policy wasn't assigned cleanly to the new Backup Vault with the same name.

The solution was to create a new Backup Policy with the same name as the inconsistent Policy. After that there wasn't a new Policy created instead the inconsistent Policy was reassigned to the Backup Vault and then i was able to delete the Policy.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the update. Glad to know you were able to find solution to this issue. This certainly would be helpful to other community members on Microsoft Q&A community platform.

0 Votes 0 ·
learn2skills avatar image
0 Votes"
learn2skills answered MauriceRossi-1063 commented

Hi @MauriceRossi-1063

Before you can delete a Backup protection policy, the policy must not have any associated Backup items. To associate another policy with a Backup item, use the backup item set-policy command.
https://docs.microsoft.com/en-us/cli/azure/backup/policy?view=azure-cli-latest#az_backup_policy_delete-examples


If the Answer is helpful, please click Accept Answer and up-vote, so that it can help others in the community looking for help on similar topics.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

With backup item you mean Backup Instances?

0 Votes 0 ·