-
Notifications
You must be signed in to change notification settings - Fork 547
feat: add ability to override varManagementGroupIds
values in alzDefaultPolicyAssignments.bicep
& workloadSpecificPolicyAssignments.bicep
to support rename of ALZ default MGs and fix #986
#987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add ability to override varManagementGroupIds
values in alzDefaultPolicyAssignments.bicep
& workloadSpecificPolicyAssignments.bicep
to support rename of ALZ default MGs and fix #986
#987
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds the ability to override default management group IDs for ALZ policies, supporting scenarios where ALZ default management groups are renamed.
- Added a new parameter (parManagementGroupIdOverrides) and updated the generated documentation in both alzDefaultPolicyAssignments.bicep.md and workloadSpecificPolicyAssignments.bicep.md.
- Enhanced the parameter descriptions and snippets to include guidance on providing custom management group IDs.
Reviewed Changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
infra-as-code/bicep/modules/policy/assignments/alzDefaults/generateddocs/alzDefaultPolicyAssignments.bicep.md | Added documentation for the new override parameter |
infra-as-code/bicep/modules/policy/assignments/workloadSpecificPolicyAssignments.bicep.md | Added documentation for the new override parameter |
Files not reviewed (2)
- infra-as-code/bicep/modules/policy/assignments/alzDefaults/alzDefaultPolicyAssignments.bicep: Language not supported
- infra-as-code/bicep/modules/policy/assignments/workloadSpecific/workloadSpecificPolicyAssignments.bicep: Language not supported
Comments suppressed due to low confidence (2)
infra-as-code/bicep/modules/policy/assignments/alzDefaults/generateddocs/alzDefaultPolicyAssignments.bicep.md:34
- [nitpick] Consider renaming the parameter to use the plural form (e.g., parManagementGroupIdsOverrides) to better match the referenced variable (varManagementGroupIds) and update the description for clarity (e.g., include a possessive apostrophe in 'management groups' names').
parManagementGroupIdOverrides | Yes | Specify the ALZ Default Management Group IDs to override as specified in `varManagementGroupIds`. Useful for scenarios when renaming ALZ default management groups names and IDs but not their intent or hierarchy structure.
infra-as-code/bicep/modules/policy/assignments/workloadSpecific/generateddocs/workloadSpecificPolicyAssignments.bicep.md:18
- [nitpick] Consider renaming the parameter to use the plural form (e.g., parManagementGroupIdsOverrides) to align with the referenced variable (varManagementGroupIds) and consider updating the description to improve clarity by using the possessive form for 'management groups' names'.
parManagementGroupIdOverrides | Yes | Specify the ALZ Default Management Group IDs to override as specified in `varManagementGroupIds`. Useful for scenarios when renaming ALZ default management groups names and IDs but not their intent or hierarchy structure.
varManagementGroupIds
values in alzDefaultPolicyAssignments.bicep
& workloadSpecificPolicyAssignments.bicep
to support rename of ALZ default MGsvarManagementGroupIds
values in alzDefaultPolicyAssignments.bicep
& workloadSpecificPolicyAssignments.bicep
to support rename of ALZ default MGs and fix #986
/azp run validateazcloud |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Command 'validate' is not supported by Azure Pipelines. Supported commands
See additional documentation. |
/azp run validateazcloud |
Azure Pipelines successfully started running 1 pipeline(s). |
2500c16
to
4876698
Compare
/azp run validateazcloud |
Azure Pipelines successfully started running 1 pipeline(s). |
e70330d
to
1d0d1aa
Compare
/azp run validateazcloud |
Azure Pipelines successfully started running 1 pipeline(s). |
Overview/Summary
Add ability to override
varManagementGroupIds
values inalzDefaultPolicyAssignments.bicep
&workloadSpecificPolicyAssignments.bicep
to support rename of ALZ default MGsUseful for scenarios when renaming ALZ default management groups names and IDs but not their intent or hierarchy structure.
Also fix #986
Breaking Changes
None
Testing Evidence
Default logic, no inputs provided to new parameter

inputs provided to new parameter to override MG IDs

As part of this Pull Request I have
.bicep
file/s I am adding/editing are using the latest API version possiblemain
branch