Immutable storage - cannot delete data after policy has been removed

mij2020 376 Reputation points
2023-08-28T12:26:08.2266667+00:00

Hi,

I created an SA with version-level immutability enabled.

I created a new container and uploaded a file.

Created an immutable policy with 1-day retention on the SA. The policy was left unlocked.

An hour later I deleted the unlocked policy.

Any attempt some hours later to delete the blob, container or SA results in being denied due to immutable policy being enforced.

But there is no policy in place any more.

Why wouldn't I be able to delete the data in the SA?

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 124.7K Reputation points Volunteer Moderator
    2023-08-28T17:46:57.6233333+00:00

    Hi,

    To be able to delete you need to delete the policy on the individual blob(s) you uploaded using the context menu, next delete the blob(s), then finally you can delete the storage account.

    azure blob context menu

    Please click Accept Answer if the above was useful.

    Thanks.

    -TP

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Ramya Harinarthini_MSFT 5,366 Reputation points Microsoft Employee Moderator
    2023-08-28T16:06:17.3933333+00:00


    mij2020
    Welcome to Microsoft Q&A, Thank you for posting your here!

    The protection afforded by an immutability policy depends on the scope of the immutability policy and, in the case of a time-based retention policy, whether it is locked or unlocked and whether it is active or expired.

    User's image

    As per the above you have to wait for the retention policy to expire only then you will be able to delete the blob, container and Storage.

    Reference Article: https://learn.microsoft.com/en-us/azure/storage/blobs/immutable-storage-overview#summary-of-immutability-scenarios

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.


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


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.