I want to create a Azure policy

Liam dawson 40 Reputation points
2025-07-28T16:47:34.7966667+00:00

I want to create a Azure policy that ensures when I update the tags on a resource group, all resources within that group automatically inherit the same tags.

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
0 comments No comments
{count} votes

Accepted answer
  1. Naveena Patlolla 4,805 Reputation points Microsoft External Staff Moderator
    2025-07-28T17:10:55.0866667+00:00

    Hi Liam dawson
    To enforce that all resources in a Resource Group (RG) get the same tags as the Resource Group itself, you can use Azure Policy to inherit tags from the Resource Group. Here's how you can do that:When a tag is added or updated on a Resource Group, all resources within that RG should receive (or update to) the same tag.

    Azure Policy for Tag Inheritance (on resource creation/modification)

    This ensures any new or updated resource inherits the RG 

    You can use the built-in Azure Policy definition:

    "Inherit a tag from the resource group if missing"

    Here's how to apply it:

    Step-by-step via Azure Portal:

    1. Go to Azure Policy → Definitions
    2. Search for: "Inherit a tag from the resource group"
    3. Assign it at subscription or RG level
    4. During assignment, provide:

    Tag Name (e.g., Environment)

    Effect = Modify

    Please let me know if you face any challenge here, I can help you to resolve this issue further

    Provide your valuable Comments.

    Please do not forget to "Accept the answer” and “upvote it” wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.

    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.