Skip to content
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

Merged
merged 38 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e7693e1
Update alzDefaultPolicyAssignments.bicep
VeronicaSea Feb 21, 2024
0f1725c
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 21, 2024
14ec44b
Update mc-alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 21, 2024
2ae19fb
Update mc-alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 21, 2024
93931c6
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 21, 2024
6716922
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 21, 2024
e4f0e69
Update mc-alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 21, 2024
b00cc79
Update alzDefaultPolicyAssignments.bicep
VeronicaSea Feb 21, 2024
f686c23
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 21, 2024
92052a7
Update alzDefaultPolicyAssignments.bicep
VeronicaSea Feb 22, 2024
8ff4791
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 22, 2024
67772e8
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 22, 2024
2f04a25
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 22, 2024
c70f4f6
Update alzDefaultPolicyAssignments.bicep
VeronicaSea Feb 26, 2024
6c7200e
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 26, 2024
1879d8d
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 26, 2024
ba47cdf
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 26, 2024
32ef2e0
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 26, 2024
47d5e5a
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 26, 2024
fa19f37
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 26, 2024
f6fc132
Merge branch 'main' into main
oZakari Feb 26, 2024
3cf99cc
Add effect properties to UDT and remove disable slz policy param
oZakari Feb 27, 2024
ce00d22
Simplify sov effect policy property names
oZakari Feb 27, 2024
1171ede
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 27, 2024
bff6a8c
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 27, 2024
914ab84
Update alzDefaultPolicyAssignments.bicep
VeronicaSea Feb 27, 2024
acde149
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 27, 2024
cd215e0
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 27, 2024
818e212
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 27, 2024
4dcd0f7
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 27, 2024
8d1ab5e
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 27, 2024
d038a74
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 27, 2024
91d434c
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 27, 2024
40786fd
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 27, 2024
aaddd13
Update alzDefaultPolicyAssignments.bicep
VeronicaSea Feb 27, 2024
7b89639
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 27, 2024
dff733b
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 27, 2024
273c44c
Update alzDefaultPolicyAssignments.bicep.md
VeronicaSea Feb 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ param parExcludedPolicyAssignments array = []
@sys.description('Set Parameter to true to Opt-out of deployment telemetry')
param parTelemetryOptOut bool = false

@sys.description('Effect type for sovereign policy definitions')
param parSovereigntyPolicyEffect string = 'Deny'
VeronicaSea marked this conversation as resolved.
Show resolved Hide resolved

var varLogAnalyticsWorkspaceName = split(parLogAnalyticsWorkspaceResourceId, '/')[8]

var varLogAnalyticsWorkspaceResourceGroupName = split(parLogAnalyticsWorkspaceResourceId, '/')[4]
Expand Down Expand Up @@ -524,9 +527,12 @@ module modPolicyAssignmentIntRootEnforceSovereigntyGlobal '../../../policy/assig
#disable-next-line no-loc-expr-outside-params
value: !(empty(parTopLevelPolicyAssignmentSovereigntyGlobal.parListOfAllowedLocations)) ? parTopLevelPolicyAssignmentSovereigntyGlobal.parListOfAllowedLocations : array(deployment().location)
}
effect: {
value: parSovereigntyPolicyEffect
}
}
parPolicyAssignmentIdentityType: varPolicyAssignmentEnforceSovereignGlobal.libDefinition.identity.type
parPolicyAssignmentEnforcementMode: parDisableAlzDefaultPolicies ? 'DoNotEnforce' : varPolicyAssignmentEnforceSovereignGlobal.libDefinition.properties.enforcementMode
parPolicyAssignmentEnforcementMode: parTopLevelPolicyAssignmentSovereigntyGlobal.parTopLevelSovereigntyGlobalPoliciesEnable ? 'Default' : varPolicyAssignmentEnforceSovereignGlobal.libDefinition.properties.enforcementMode
parTelemetryOptOut: parTelemetryOptOut
}
}
Expand Down Expand Up @@ -1560,9 +1566,12 @@ module modPolicyAssignmentLzsConfidentialOnlineEnforceSovereigntyConf '../../../
allowedVirtualMachineSKUs: {
value: !(empty(parPolicyAssignmentSovereigntyConfidential.parAllowedVirtualMachineSKUs)) ? parPolicyAssignmentSovereigntyConfidential.parAllowedVirtualMachineSKUs : varPolicyAssignmentEnforceSovereignConf.libDefinition.properties.parameters.allowedVirtualMachineSKUs.value
}
effect: {
value: parSovereigntyPolicyEffect
}
}
parPolicyAssignmentIdentityType: varPolicyAssignmentEnforceSovereignConf.libDefinition.identity.type
parPolicyAssignmentEnforcementMode: parDisableAlzDefaultPolicies ? 'DoNotEnforce' : varPolicyAssignmentEnforceSovereignConf.libDefinition.properties.enforcementMode
parPolicyAssignmentEnforcementMode: parLandingZoneMgConfidentialEnable ? 'Default' : varPolicyAssignmentEnforceSovereignConf.libDefinition.properties.enforcementMode
parTelemetryOptOut: parTelemetryOptOut
}
}
Expand All @@ -1589,9 +1598,12 @@ module modPolicyAssignmentLzsConfidentialCorpEnforceSovereigntyConf '../../../po
allowedVirtualMachineSKUs: {
value: !(empty(parPolicyAssignmentSovereigntyConfidential.parAllowedVirtualMachineSKUs)) ? parPolicyAssignmentSovereigntyConfidential.parAllowedVirtualMachineSKUs : varPolicyAssignmentEnforceSovereignConf.libDefinition.properties.parameters.allowedVirtualMachineSKUs.value
}
effect: {
value: parSovereigntyPolicyEffect
}
}
parPolicyAssignmentIdentityType: varPolicyAssignmentEnforceSovereignConf.libDefinition.identity.type
parPolicyAssignmentEnforcementMode: parDisableAlzDefaultPolicies ? 'DoNotEnforce' : varPolicyAssignmentEnforceSovereignConf.libDefinition.properties.enforcementMode
parPolicyAssignmentEnforcementMode: parLandingZoneMgConfidentialEnable ? 'Default' : varPolicyAssignmentEnforceSovereignConf.libDefinition.properties.enforcementMode
VeronicaSea marked this conversation as resolved.
Show resolved Hide resolved
parTelemetryOptOut: parTelemetryOptOut
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ parVmBackupExclusionTagName | No | Name of the tag to use for excluding VM
parVmBackupExclusionTagValue | No | Value of the tag to use for excluding VMs from the scope of this policy (in case of multiple values, use a comma-separated list). This should be used along with the Exclusion Tag Name parameter.
parExcludedPolicyAssignments | No | Adding assignment definition names to this array will exclude the specific policies from assignment. Find the correct values to this array in the following documentation: https://github.com/Azure/ALZ-Bicep/wiki/AssigningPolicies#what-if-i-want-to-exclude-specific-policy-assignments-from-alz-default-policy-assignments
parTelemetryOptOut | No | Set Parameter to true to Opt-out of deployment telemetry
parSovereigntyPolicyEffect | No | Effect type for sovereign policy definitions

### parTopLevelManagementGroupPrefix

Expand Down Expand Up @@ -182,6 +183,14 @@ Set Parameter to true to Opt-out of deployment telemetry

- Default value: `False`

### parSovereigntyPolicyEffect

![Parameter Setting](https://img.shields.io/badge/parameter-optional-green?style=flat-square)

Effect type for sovereign policy definitions

- Default value: `Deny`

## Snippets

### Parameter file
Expand Down Expand Up @@ -260,6 +269,9 @@ Set Parameter to true to Opt-out of deployment telemetry
},
"parTelemetryOptOut": {
"value": false
},
"parSovereigntyPolicyEffect": {
"value": "Deny"
}
}
}
Expand Down
Loading