How to delete resource group with this error?

Capstone 45 Reputation points
2024-05-14T09:43:14.8533333+00:00

I cant delete my resource group named tejas761 ,
This is the error
Delete resource group TEJAS761 failed

Failed to delete resource group TEJAS761: Deletion of resource group 'TEJAS761' failed as resources with identifiers 'Microsoft.Storage/storageAccounts/tejas761' could not be deleted. The provisioning state of the resource group will be rolled back. The tracking Id is '034512e2-89aa-4e79-ab4d-89e71af94986'. Please check audit logs for more details. (Code: ResourceGroupDeletionBlocked) tejas761 is protected from deletion. (Code: AccountProtectedFromDeletion, Target: /subscriptions/e66d13b6-b975-4e19-b6c0-337f48e609fa/resourceGroups/TEJAS761/providers/Microsoft.Storage/stora

can someone help me out, Please!!.Screenshot 2024-05-14 at 3.10.11 PM

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,298 questions
{count} vote

Accepted answer
  1. vipullag-MSFT 25,121 Reputation points
    2024-05-14T09:48:06.9833333+00:00

    Hello Capstone

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    It looks like the resource group deletion is blocked because there are resources within the resource group that are protected from deletion.

    Based on the error you have shared, looks like the storage account named tejas761 is preventing the deletion of the resource group.

    First you need to delete the storage account (tejas761) within the resource group.

    Once the storage account is deleted, you should be able to delete the resource group without any issues.

    Hope this helps.

    0 comments No comments

0 additional answers

Sort by: Most helpful