QuestionQ74

VerifiedDescribe Azure management and governance

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Yes or No
StatementsYesNo
An Azure resource can have multiple Delete locks.
An Azure resource inherits locks from its resource group.
If an Azure resource has a Read-only lock, you can add a Delete lock to the resource.
Explanation

Yes: each management lock is a separate, named lock, and a scope can hold up to 20 management locks, so a resource can have more than one Delete (CanNotDelete) lock. Yes: when you apply a lock at a parent scope such as a resource group, all resources in that scope inherit it, including resources added later, and the most restrictive lock in the inheritance chain takes precedence. Yes: a Read-only lock blocks updates and deletions of the resource, not the management of its locks; that's why you can remove a lock from a locked resource before changing it. Anyone with access to the Microsoft.Authorization/locks/* actions (for example, the Owner or User Access Administrator role) can create and delete locks, so a Delete lock can be added next to the Read-only lock. The Read-only lock remains the most restrictive lock in effect, so the extra Delete lock adds no protection.

Learn more

Community Discussion

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