storageaccount is protected from deletion. (Code: AccountProtectedFromDeletion)

gauri Kothekar 0 Reputation points
2024-09-25T06:39:07.2433333+00:00

Hi,

I have been facing the issue since long time. I want to delete the resource group but it contains storage account and it has immutability policy. Kindly guide me how to move further with the issue. Its on high priority as my billing is increasing. I am attaching the screenshot of properties of container. Please guide me as soon as possible.User's image

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,154 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,849 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vinod Kumar Reddy Chilupuri 305 Reputation points Microsoft Vendor
    2024-09-25T09:42:17.4866667+00:00

    Hi @gauri Kothekar ,
    Welcome to Microsoft Q&A, thanks for posting your query.

    If you want to delete the resource group that contains the storage account with the immutable policy. First you need to remove the immutable policy.

    Immutable Storage with Versioning is a feature in Azure Blob Storage that provides enhanced data protection by preventing accidental or malicious deletion or modification of data. When this feature is enabled, it ensures that data stored in the container or object cannot be modified or deleted for a specified retention period. This helps maintain data integrity and compliance with regulatory requirements.

    To modify or delete data protected by Immutable Storage with Versioning, you will need to disable the feature or wait until the retention period expires.
    In the above screenshot it seems that the container you want to delete has the immutable policy is enable. It prevents the deletion.

    • Open the azure portal and navigate to the storage account that has the immutable policy.
    • In the left hand menu, click on the immutable policy.
    • Click on "delete" button to remove the immutable policy.
    • Once the immutable policy is disabled or deleted you can delete the storage account and then delete the resource group

    Go through the below Microsoft documentation for more information.

    https://learn.microsoft.com/en-us/azure/storage/blobs/immutable-policy-configure-version-scope?tabs=azure-portal#modify-or-delete-an-unlocked-retention-policy

    Please let us know if you have any further queries. I’m happy to assist you further. 


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.