Tagging to all resources in the resource group

sns 9,236 Reputation points
2023-03-28T17:25:36.75+00:00

I have created the resource group with env: dev

I want to apply to all resources under that particular resource group, is there any way to achieve it?

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

1 answer

Sort by: Most helpful
  1. Michael Durkan 12,201 Reputation points MVP
    2023-03-28T18:47:38.9333333+00:00

    Hi

    Create a new policy using this definition and apply it to the Resource Group:

    https://github.com/Azure/azure-policy/blob/master/built-in-policies/policyDefinitions/Tags/AddOrReplaceTag_Modify.json

    Hope this helps,

    Thanks

    Michael Durkan

    • If the reply was helpful please upvote and/or accept as answer as this helps others in the community with similar questions. Thanks!
    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.