An Azure service that is used to automate, configure, and install updates across hybrid environments.
Hello moti jirata
Thank you for posting your query on Microsoft Q&A platform.
Azure Policy can enforce tag inheritance from a Resource Group by using the built-in "Inherit a tag from the resource group" policy (Modify effect). This policy applies when a resource is created or updated and can also be applied to existing resources through a remediation task.
However, if you later update the tag value on the Resource Group, Azure Policy does not automatically propagate that change to all existing resources in real time. Existing resources are updated only when:
- The resource is updated and re-evaluated by policy, or
- A remediation task is run for the policy assignment. citeturn2search1turn2search3
If your requirement is to immediately synchronize tag changes from a Resource Group to all resources whenever the Resource Group tag is modified, Azure Policy alone does not provide an event-driven update mechanism.
In that scenario, you would need an automation solution such as Azure Automation, Azure Functions, or Logic Apps triggered by Resource Group change events.
Microsoft documentation:
- Azure Policy tag governance and built-in tagging policies:
Policy definitions for tagging resources
- Tag inheritance and Modify effect examples:
Using tags in Azure Policy definitions
- Built-in sample: Inherit a tag from the Resource Group:
Inherit a tag from the resource group
So, for your scenario, the supported Microsoft approach is to use a Modify policy with remediation. If you need immediate updates whenever a Resource Group tag changes, you will need to supplement Azure Policy with an automation workflow.
I hope the details shared above helped in addressing your concern.
If the suggested resolution resolved the issue, kindly consider marking the answer as "Accepted" and "Upvote" it. This helps other community members who may encounter a similar issue in the future.
If you’re still experiencing the problem or need further clarification, please feel free to share additional information so we can continue investigating and assist you further.
Thanks,
Suchitra.