This Microsoft Azure Recovery Services vault deletion error appeared in my account when I was deleting all the resources from my subscription. The reason behind this situation was, there were no resources other than the Azure Recovery Services Vault. I was confused and searched everywhere in my Azure resources to confirm whether there is any hidden resource left behind without deleting. Finally, I was able to resolve the issue and this is how I deleted my Recovery Vault at the end.
This is the appeared error when I was deleting the recovery vault
Vault cannot be deleted as there are existing resources within the vault. Please ensure there are no backup items, protected servers or backup management servers associated with this vault. Unregister the following containers associated with this vault before proceeding for deletion: [name_of_my_storage_account]
Unregister all containers from the vault then retry to delete vault
As I mentioned earlier the storage account which I created named “tcstrg2” was already deleted but it was registered with the vault still.
Just checked the Storage Accounts under “Backup Infrastructure” navigating to Recovery Vault -> Backup Infrastructure -> Storage Accounts my old deleted Storage Account was still listed
I unregistered the account just following the triple dots, right next to the Storage Account name
Confirmed the Storage Account name and deleted
Checked the notification status
Unregistration was successfully completed
Storage account was not listed under the Backup Infrastructure after the completion of the above operation
Deleted the Recovery Vault after that and it was successfully deleted
I hope this post will help anyone who got similar situation.