-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optional policy assignment module in root deployment (#490)
- Loading branch information
Showing
5 changed files
with
81 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -268,7 +268,7 @@ module sharedServicesVirtualNetworkPeering './modules/spokeNetworkPeering.bicep' | |
|
||
//// policy | ||
|
||
module hubPolicyAssignment './modules/policyAssignment.bicep' = { | ||
module hubPolicyAssignment './modules/policyAssignment.bicep' = if(deployPolicy) { | ||
name: 'assign-policy-hub-${nowUtc}' | ||
scope: resourceGroup(hubSubscriptionId, hubResourceGroupName) | ||
params: { | ||
|
@@ -279,7 +279,7 @@ module hubPolicyAssignment './modules/policyAssignment.bicep' = { | |
} | ||
} | ||
|
||
module operationsPolicyAssignment './modules/policyAssignment.bicep' = { | ||
module operationsPolicyAssignment './modules/policyAssignment.bicep' = if(deployPolicy) { | ||
name: 'assign-policy-operations-${nowUtc}' | ||
scope: resourceGroup(operationsSubscriptionId, operationsResourceGroupName) | ||
params: { | ||
|
@@ -290,7 +290,7 @@ module operationsPolicyAssignment './modules/policyAssignment.bicep' = { | |
} | ||
} | ||
|
||
module sharedServicesPolicyAssignment './modules/policyAssignment.bicep' = { | ||
module sharedServicesPolicyAssignment './modules/policyAssignment.bicep' = if(deployPolicy) { | ||
name: 'assign-policy-sharedServices-${nowUtc}' | ||
scope: resourceGroup(sharedServicesSubscriptionId, sharedServicesResourceGroupName) | ||
params: { | ||
|
@@ -301,7 +301,7 @@ module sharedServicesPolicyAssignment './modules/policyAssignment.bicep' = { | |
} | ||
} | ||
|
||
module identityPolicyAssignment './modules/policyAssignment.bicep' = { | ||
module identityPolicyAssignment './modules/policyAssignment.bicep' = if(deployPolicy) { | ||
name: 'assign-policy-identity-${nowUtc}' | ||
scope: resourceGroup(identitySubscriptionId, identityResourceGroupName) | ||
params: { | ||
|
@@ -648,12 +648,12 @@ param logAnalyticsWorkspaceSkuName string = 'PerGB2018' | |
|
||
@allowed([ | ||
'NIST' | ||
'IL5' // Gov cloud only, trying to deploy IL5 in AzureCloud will switch to NIST | ||
'IL5' // AzureUsGoverment only, trying to deploy IL5 in AzureCloud will switch to NIST | ||
'CMMC' | ||
'' | ||
]) | ||
@description('Built-in policy assignments to assign, default is none. [NIST/IL5/CMMC] IL5 is only availalbe for GOV cloud and will switch to NIST if tried in AzureCloud.') | ||
param policy string = '' | ||
@description('[NIST/IL5/CMMC] Built-in policy assignments to assign, default is NIST. IL5 is only availalbe for AzureUsGovernment and will switch to NIST if tried in AzureCloud.') | ||
param policy string = 'NIST' | ||
param deployPolicy bool = false | ||
|
||
@description('Email address of the contact, in the form of [email protected]') | ||
param emailSecurityContact string = '' | ||
|
This file contains 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
This file contains 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