Can I tag a resource, if that already has a resource lock?

Amit Kumar Srivastava 20 Reputation points
2023-09-15T12:38:23.38+00:00

If a resource has already a resource lock in place, Can I apply a resource tag on that particular resource without removing the lock.

Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
232 questions
0 comments No comments
{count} votes

Accepted answer
  1. tbgangav-MSFT 10,416 Reputation points
    2023-09-15T16:28:46.1533333+00:00

    Hi @Amit Kumar Srivastava ,

    As explained here, you can set locks that prevent either deletions or modifications. In the portal, these locks are called Delete and Read-only. In the command line, these locks are called CanNotDelete and ReadOnly.

    • CanNotDelete means authorized users can read and modify a resource, but they can't delete it.
    • ReadOnly means authorized users can read a resource, but they can't delete or update it. Applying this lock is similar to restricting all authorized users to the permissions that the Reader role provides.

    So, to answer your question,

    • if a resource has already a Read-only resource lock in place, you can't apply a resource tag on that particular resource without removing the lock.
    • if a resource has already a Delete resource lock in place, you can apply a resource tag on that particular resource without removing the lock.
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.