How can we prevent users from modifying subscription-level tags once they are created in Azure?

SrVish 20 Reputation points
2025-05-06T20:22:48.29+00:00

We want to enforce governance so that once tags (like Environment, CostCenter, etc.) are added to a subscription, no user—including subscription owners—can modify or delete them, unless explicitly allowed (e.g., by a central admin role). Is there a way to achieve this using?

Ideally, we want to:

Lock subscription tags from being edited after initial creation.

Allow only a specific role or identity to update them.

  • Audit any unauthorized modification attempts.
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
1,014 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2025-05-06T20:35:28.23+00:00

    That is not currently doable in Azure AFAIK. If you have write access to a resource then you can add/edit/delete tags on that resource. Azure doesn't have fine-grained permissions to allow you to add, but not edit, tags. Not sure how this would even work correctly since someone may add a tag but not use the correct tag. They could then not edit the tag to fix it.

    There is a Tag Contributor role that you can grant that allows someone to apply tags, but not edit the resource they are associated with. But, again, this is an all or nothing thing. You cannot allow adding tags but not edit them.

    Subscription owners, AFAIK, can do just about anything so even if there were such a RBAC available, a subscription owner could simply grant themselves any permissions needed to do it anyway.

    You can look into Azure policies for tagging as well. I've not gone this route but in theory you can define the policy that you want and then when someone tries to do something outside your policy it will fail. It doesn't "lock them out" but it would help prevent tags from getting set that you don't want. Of course the policy itself may be hard to set up, depending on your requirements.

    0 comments No comments

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.