Forum Discussion
david_milette
Mar 16, 2021Copper Contributor
Azure resource group tag requirement exception?
Good day to you all, we have a policy in place requiring all new resources groups created to have 6 tags added and populated. Currently we have an application allowing elastic cloud provisioning of a...
ibnmbodji
Mar 16, 2021Steel Contributor
Hi
You can go the policy definition or Initiative you will see a Create exemption button
- Click on Create exemption
- Define Exemption scope as the Resource group
- Give an Exemption name, category and description
- Define the exemption expiration settings
- Select the policy definitions scope (If it is an iniative by default all the policy definitions are selected . )
- Review and Create the exemption
david_milette
Mar 16, 2021Copper Contributor
Thx team the product when creating its resource group will create it with this format: MF_TESTRUN_RESOURCEGROUP_XXXXX_YYYYY where XXXXX is a random number and YYYY is the test scenario name requiring the resource group and assets. So I would suppose I'd need to create an exception around this template/mask. Is this feasible? Thx for all your help!
- ibnmbodjiMar 16, 2021Steel ContributorThe resource group should exist before creating the exemption so deployment will be blocked if the effect is set to deny .
You can either see another effect to avoid the deny
https://docs.microsoft.com/en-us/azure/governance/policy/concepts/effects
Or deploy resources in another subscription- david_miletteMar 16, 2021Copper ContributorIndeed, that is what we are seing. Thx for the clarification.
- david_miletteMar 21, 2021Copper ContributorAs our app implementation was using the .Net API we managed to code this to finally work. Thx for all your assistance!