azure tags on existing resources

prasantc 931 Reputation points
2023-09-05T19:14:51.13+00:00

is it possible to implement azure policy to apply different tags value for different resource groups and resources in the resources group with Azure policy? Or it would be better to apply with PowerShell scripting as the policy does not allow the variable value that changes for each resource group.?

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

Accepted answer
  1. JimmySalian-2011 42,111 Reputation points
    2023-09-05T19:36:19.4633333+00:00

    Hi ,

    Yes it is possible to use Azure Policy tags for RG and resources, however you will need to multiple policies if you have diff RGs deployed and resources will inherit from the top level Resources group and apply the tags - check few examples over here - https://learn.microsoft.com/en-us/azure/governance/policy/samples/pattern-tags

    Hope this helps.

    JS

    ==

    Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.

    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.