Azure / ResourceModules

This repository includes a CI platform for and collection of mature and curated Bicep modules. The platform supports both ARM and Bicep and can be leveraged using GitHub actions as well as Azure DevOps pipelines.
https://aka.ms/carml
MIT License
726 stars 459 forks source link

[Issue from Discussions] Re-create Azure tags in existing azure environment #4547

Open eriqua opened 4 months ago

eriqua commented 4 months ago

Discussed in https://github.com/Azure/ResourceModules/discussions/3385

Originally posted by **gbalajicl** June 29, 2023 Hello All, We are assigning tags to Azure resources. Some of the tags are assigned using Azure policy, and some of the tags are assigned manually. We have assigned tags to resources by using the Azure policy effect "append". Now we want to assign the same tags with the Policy effect "modify". Can you please suggest to me the best process for how to **re-create** tags using IaC Terraform? or **How to re-create** tags using policy? I need suggestions on this tagging **process**. What's the best approach to do it and how to do it? Example tags: ApplicationName, Owner, CostCenter,
eriqua commented 4 months ago

Hi @gbalajicl, as mentioned in the original discussion, your question seems more related to Terraform, which the CARML initiative didn't cover back in the days.

The good news is that Azure Verified Modules (AVM), i.e. the evolution of the CARML initiative, also covers Terraform DSL, so your question may find a good answer once converted to an AVM GitHub issue 🙂