-
Notifications
You must be signed in to change notification settings - Fork 513
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
Update alzDefaultPolicyAssignments.bicep #729
Conversation
Issue 1 : Currently, all the ALZ modules will be deployed when the policy assignment file is invoked. ALZ modules should be deployed optionally based on the flag. Issue 2 : The SLZ policy assignment modules are using ALZ flag to control the policy enforcement. All the SLZ modules should use the SLZ flag for SLZ policy enforcement or make it ‘Default’. Issue 3 : The SLZ policy assignment modules don’t have policyEffect param, which we previously supported.
parPolicyEffect | Deny | Set Parameter for effect type for all policy definitions
parPolicyEffect | Deny | Set Parameter for effect type for all policy definitions
Effect type for all policy definitions
Effect type for all policy definitions
infra-as-code/bicep/modules/policy/assignments/alzDefaults/alzDefaultPolicyAssignments.bicep
Outdated
Show resolved
Hide resolved
...ep/modules/policy/assignments/alzDefaults/generateddocs/alzDefaultPolicyAssignments.bicep.md
Outdated
Show resolved
Hide resolved
Update the parameter name to parSovereigntyPolicyEffect.
parSovereigntyPolicyEffect
parSovereigntyPolicyEffect
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.
Hey @vericasea, once you incorporate the policy effect param into the UDT properties, can you also please add the new properties to the params within this parameters file?
infra-as-code/bicep/modules/policy/assignments/alzDefaults/alzDefaultPolicyAssignments.bicep
Outdated
Show resolved
Hide resolved
infra-as-code/bicep/modules/policy/assignments/alzDefaults/alzDefaultPolicyAssignments.bicep
Outdated
Show resolved
Hide resolved
Add sovereignty policy effect for different levels and parDisableSlzDefaultPolicies parameters.
Update for new policy effects and parDisableSlzDefaultPolicies parameters.
Add allowed values in the markdown file.
Adding blank line.
Thanks and added them in the PR. |
Thanks @VeronicaSea, I've moved the params into the UDT for each param and added them to the parameters file. I think the param to disable the SLZ policies is probably easier to understand if left out. You can still disable the deployment of the policy entirely with |
Update parameters markdown.
Add parDisableSlzDefaultPolicies.
Update the markdown.
Add extra spaces at the end of line.
infra-as-code/bicep/modules/policy/assignments/alzDefaults/alzDefaultPolicyAssignments.bicep
Show resolved
Hide resolved
@@ -7,6 +7,9 @@ type policyAssignmentSovereigntyGlobalOptionsType = { | |||
|
|||
@sys.description('The list of locations that your organization can use to restrict deploying resources to. If left empty, only the deployment location will be allowed.') | |||
parListOfAllowedLocations: string[] | |||
|
|||
@sys.description('The effect type for the Sovereignty Baseline - Global Policies Assignment.') | |||
parPolicyEffect: ('Audit' | 'Deny' | 'Disabled' | 'AuditIfNotExists') |
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.
This is to broad as a parameter name and will cause confusion also seems a duplicate of parTopLevelSovereignGlobalPoliciesEnable
?
Please can we align and make this simplified and clear to customers what the parameter does
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.
Yes, it explains in the description. It is already simplified and clear. We need it for different scope, like global, confidential.
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.
@oZakari How do you think?
Overview/Summary
Those changes are used to have ALZ modules should be deployed optionally based on the SLZ flag to control the policy enforcement. All the SLZ modules should use the SLZ flag for SLZ policy enforcement or make it ‘Default’. Besides, the SLZ policy assignment modules supports policy Effect param, which we previously supported.
This PR fixes/adds/changes/removes
Issue 1 : Currently, all the ALZ modules will be deployed when the policy assignment file is invoked. ALZ modules should be deployed optionally based on the flag.
Issue 2 : The SLZ policy assignment modules are using ALZ flag to control the policy enforcement. All the SLZ modules should use the SLZ flag for SLZ policy enforcement or make it ‘Default’.
Issue 3 : The SLZ policy assignment modules don’t have policy Effect param, which we previously supported.
Breaking Changes
N/A
Testing Evidence
Replace this with any testing evidence to show that your Pull Request works/fixes as described and planned (include screenshots, if appropriate).
As part of this Pull Request I have
.bicep
file/s I am adding/editing are using the latest API version possiblemain
branch