Delete Resource Group

Sepehr Soltanpour 20 Reputation points

I get this Error while i want to delete my Resource Group. please help me Failed to delete resource group learn-file-sync-rg: Deletion of resource group 'learn-file-sync-rg' failed as resources with identifiers 'Microsoft.RecoveryServices/vaults/vault-lr294jtg' could not be deleted. The provisioning state of the resource group will be rolled back. The tracking Id is 'ff6eaf68-855c-4efe-b707-a01551c71683'. Please check audit logs for more details. (Code: ResourceGroupDeletionBlocked) The request to delete the resource 'Microsoft.RecoveryServices/vaults/vault-lr294jtg' failed. subscription id '1ce90df8-7db7-40c2-8464-716715c842d2', activity id 'e210a76b-700a-4f19-973a-4cccba3fbd7a', request correlation id 'ff6eaf68-855c-4efe-b707-a01551c71683'. (Code: ResourceDeletionFailed, Target: /subscriptions/1ce90df8-7db7-40c2-8464-716715c842d2/resourceGroups/learn-file-sync-rg/providers/Microsoft.RecoveryServices/vaults/vault-lr294jtg)

Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
191 questions
0 comments No comments
{count} votes

Accepted answer
  1. Igor Iric 80 Reputation points

    The error message you are encountering indicates that the Azure Recovery Services vault within your resource group 'learn-file-sync-rg' cannot be deleted. This is likely because there are still dependencies or protected items within the vault that need to be addressed before the vault and subsequently, the resource group can be deleted. Here's what you should do to resolve this issue: Cancel Protected Items: If the vault contains any backups or items that are still being protected, you will need to cancel the protection first. This could mean stopping any backup jobs and deleting backup data, or disabling any replication settings for Site Recovery.

    Soft Delete Feature: Azure Recovery Services vaults have a soft delete feature, which retains backup data for a period of time after deletion as a protective measure. If this feature is enabled, you must wait for the soft delete period to expire before the vault can be deleted.

    Remove Dependencies - This could include policies or other resources that are still linked to the vault.

    Delete Vault: Once all protected items are removed and dependencies are cleared, you should be able to delete the vault from the Azure portal or using Azure CLI or PowerShell commands.

    After successfully deleting the vault, you should then be able to delete the resource group itself.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful