Delete Storage Account Access Policy : Time-based retention - LOCKED

Fabien Coloignier 1 Reputation point
2022-11-09T16:13:13.317+00:00

Hello,

For testing purpose, i've created a container with an Access Policy (Time-based retention)
I was testing adding and removing the policy and checking how it impacts blob file.

At some point i try to "LOCK" the policy to understand the difference between LOCK and UNLOCK.
Now that my policy is lock i cannot unlock it anymore nor i cannot delete blob, container or storage.

I understand NOW that it's the purpose of the "LOCK" option but i did it in an "test environnement" and i would like to delete my tests.
Is there any option to delete my container or my complete storage ?

Thank you in advance for your help.

Fabien

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,635 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SaiKishor-MSFT 17,221 Reputation points
    2022-11-11T23:44:46.573+00:00

    @Fabien Coloignier Thank you for reaching out to Microsoft Q&A. I understand that you are having issues with deleting the storage account access policy for the container after locking the time based retention policy.

    Have you tried to delete the Blobs in the Container and then delete the container or storage account?

    Please refer to similar issue resolved here- https://stackoverflow.com/questions/54090887/how-can-i-delete-a-lease-container-with-a-audit-log-in-azure

    https://learn.microsoft.com/en-us/answers/questions/155202/cannot-delete-a-storage-account-with-containers-wi.html
    https://learn.microsoft.com/en-us/answers/questions/447677/blob-storage-immutability-termination.html

    Let me know if the above solution works or not so we can further troubleshoot the issue. Thank you!

    Please let us know if you have any more questions and we will be glad to assist you further. Thank you!

    Remember:

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Want a reminder to come back and check responses? Here is how to subscribe to a notification.