QuestionQ137

VerifiedDescribe Azure management and governance

You have an Azure Storage account named storage1.

You need to make sure that containers can be created in storage1, but cannot be deleted from it.

What should you do?

Explanation

A Delete (CanNotDelete) management lock lets authorized users read and modify a resource but not delete it. Among the options, it is the only preventive control that still allows containers to be created. A ReadOnly lock blocks container creation through Azure Resource Manager, and the soft-delete options provide recovery rather than preventing deletion. Note that Resource Manager locks apply only to control-plane (management.azure.com) operations: container deletes made through the data plane (the storage account's own endpoint) are not blocked, so combine the lock with RBAC and soft delete for full protection.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!