Reputation: 1
Does azure storage folder supports disabling/restricting the ability to delete a folder in a container. If no, how to trigger an event off deletion that will automatically recreate the folder.
Upvotes: 0
Views: 456
Reputation: 1876
1.Azure Blob storage does not have concept of folders. everything inside the container is considered a blob including the folders. The hierarchy is storage account>>container>>blob. Removing a particular folder is removing all the blobs which start with the folder name.
2.You can use custom RBAC roles to "Restrict user from upload or delete operation on Storage” Restrict user to delete blob
We have few options available for end-to-end protection for blobs
Container soft delete, to restore a container that has been deleted.
Blob versioning, to automatically maintain previous versions of a blob. When blob versioning is enabled, you can restore an earlier version of a blob to recover your data if it is erroneously modified or deleted
Blob soft delete, to restore a blob or version that has been deleted
Upvotes: 1