SOLVED

Cannot Delete AzureRm Backup Vault

%3CLINGO-SUB%20id%3D%22lingo-sub-151039%22%20slang%3D%22en-US%22%3ECannot%20Delete%20AzureRm%20Backup%20Vault%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-151039%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20an%20AzureRm%20Recovery%20Services%20Vault%2C%20I%20am%20unable%20to%20delete.%20Receiving%20the%20following%20error%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EVault%20cannot%20be%20deleted%20as%20there%20are%20existing%20resources%20within%20the%20vault.%20Please%20ensure%20there%20are%20no%20backup%20items%2C%20protected%20servers%20or%20backup%20management%20servers%20associated%20with%20this%20vault.%20Unregister%20the%20following%20containers%20associated%20with%20this%20vault%20before%20proceeding%20for%20deletion%20%3A%20Sql%3Bgt-lab%3Bgtlab-sql01%20Unregister%20all%20containers%20from%20the%20vault%20and%20then%20retry%20to%20delete%20vault%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENote%20that%20it%20says%20to%20unregister%20the%20containers%20associated%2C%20however%20all%20the%20items%20listed%20does%20not%20exist%20in%20the%20entire%20subscription.%20In%20fact%20Backup%20Items%20%3D%200%20and%20Replicated%20Items%20%3D%200%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPowerShell%20with%20no%20success%20either%2C%20same%20error.%20Because%20this%20is%20a%20subscription%20from%20Visual%20Studio%2C%20I%20can't%20get%20Microsoft%20to%20look%20into%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-151039%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Resource%20Management%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-151098%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20Delete%20AzureRm%20Backup%20Vault%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-151098%22%20slang%3D%22en-US%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F33659%22%20target%3D%22_blank%22%3E%40Hannel%20Hazeley%3C%2FA%3E%20wrote%3A%3CBR%20%2F%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20seems%20you%20might%20have%20enable%20Azure%20SQL%20Database%20long%20term%20backup%20retention%2C%20if%20that's%20the%20case%20article%20below%20should%20help%20you%20out.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsql-database%2Fsql-database-long-term-backup-retention-configure%23powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsql-database%2Fsql-database-long-term-backup-retention-configure%23powershell%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThose%20backup%20go%20not%20show%20as%20backup%26nbsp%3Bor%20replicated%20item%20but%20you%20should%20see%20backup%20storage%20usage.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20213px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F27806i319732BACADAF2FC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2220180131-215851.png%22%20title%3D%2220180131-215851.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20this%20helps.%3C%2FP%3E%0A%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%0A%3CP%3EThanks%20that%20is%20exactly%20what%20I%20am%20seeing%2C%20and%20I%20have%20resolved%20the%20issue%20with%20your%20help!%3CBR%20%2F%3ECheers!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-151091%22%20slang%3D%22en-US%22%3ERe%3A%20Cannot%20Delete%20AzureRm%20Backup%20Vault%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-151091%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20seems%20you%20might%20have%20enable%20Azure%20SQL%20Database%20long%20term%20backup%20retention%2C%20if%20that's%20the%20case%20article%20below%20should%20help%20you%20out.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsql-database%2Fsql-database-long-term-backup-retention-configure%23powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsql-database%2Fsql-database-long-term-backup-retention-configure%23powershell%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThose%20backup%20go%20not%20show%20as%20backup%26nbsp%3Bor%20replicated%20item%20but%20you%20should%20see%20backup%20storage%20usage.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20213px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F27806i319732BACADAF2FC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%2220180131-215851.png%22%20title%3D%2220180131-215851.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20this%20helps.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have an AzureRm Recovery Services Vault, I am unable to delete. Receiving the following error,

 

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 : Sql;gt-lab;gtlab-sql01 Unregister all containers from the vault and then retry to delete vault

 

Note that it says to unregister the containers associated, however all the items listed does not exist in the entire subscription. In fact Backup Items = 0 and Replicated Items = 0

 

PowerShell with no success either, same error. Because this is a subscription from Visual Studio, I can't get Microsoft to look into it.

2 Replies
best response confirmed by Gavin Tan (Occasional Contributor)
Solution

 

It seems you might have enable Azure SQL Database long term backup retention, if that's the case article below should help you out.

 

https://docs.microsoft.com/en-us/azure/sql-database/sql-database-long-term-backup-retention-configur...

 

Those backup go not show as backup or replicated item but you should see backup storage usage.

20180131-215851.png

 

 

Hope this helps.


@Hannel Hazeley wrote:

 

It seems you might have enable Azure SQL Database long term backup retention, if that's the case article below should help you out.

 

https://docs.microsoft.com/en-us/azure/sql-database/sql-database-long-term-backup-retention-configur...

 

Those backup go not show as backup or replicated item but you should see backup storage usage.

20180131-215851.png

 

 

Hope this helps.


Thanks that is exactly what I am seeing, and I have resolved the issue with your help!
Cheers!