feat: add policy exemption to overwrites - #696
Open
Stephanie Lanius (steph409) wants to merge 3 commits into
Open
feat: add policy exemption to overwrites#696Stephanie Lanius (steph409) wants to merge 3 commits into
Stephanie Lanius (steph409) wants to merge 3 commits into
Conversation
Contributor
|
Hi Stephanie Lanius (@steph409) thanks for your PR! We will consider this, as it's a balance of being opinionated about the exemptions, vs. more complex inputs adding more features. |
Contributor
|
I think we need to modify the schema for the variable: Otherwise this seems workable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview/Summary
Replace this with a brief description of what this Pull Request fixes, changes, etc.
This PR fixes/adds/changes/removes
Add policy exemptions to the CAF using the
archetype_config_overridesas discussed in Azure/Azure-Landing-Zones#545 . It is possible to exempt a scope (either subscription, resource group or individual resources) from a policy/initiative or from one policy within an initiative. The exemption must be defined at the scope the policy is assigned.For every entry in the configuration above, one exemption is created.
There are several limitations to discuss:
archetype_config_overridesis confusing, as thepolicy_exemptionparameter actually works for both policies and initiatives (it makes a complete exemption), while theinitiative_exemptionparameter gives the possibility to select policies within the initiative to exempt from.Breaking Changes
No breaking changes, as this is an optional configuration.
Testing Evidence
The exemptions are visible in the portal as expected.
As part of this Pull Request I have
mainbranch