-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
153 additions
and
3 deletions.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
...managementGroupTemplates/policyAssignments/Compliant-CognitiveSearchPolicyAssignment.json
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"topLevelManagementGroupPrefix": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Provide a company prefix to the intermediate root management group containing the policy definitions." | ||
} | ||
}, | ||
"enforcementMode": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"Default", | ||
"DoNotEnforce" | ||
], | ||
"defaultValue": "Default" | ||
}, | ||
"cognitiveSearchDiagnostics": { | ||
"type": "string", | ||
"defaultValue": "DeployIfNotExists", | ||
"allowedValues": [ | ||
"Disabled", | ||
"DeployIfNotExists" | ||
] | ||
}, | ||
"cognitiveSearchLogAnalyticsResourceId": { | ||
"type": "string", | ||
"defaultValue": "" | ||
}, | ||
"userAssignedIdentityResourceId": { | ||
"type": "string" | ||
} | ||
}, | ||
"variables": { | ||
"policyDefinitions": { | ||
"compute": "[concat('/providers/Microsoft.Management/managementGroups/', parameters('topLevelManagementGroupPrefix'), '/providers/Microsoft.Authorization/policySetDefinitions/Compliant-CognitiveSearch')]" | ||
}, | ||
"policyAssignmentNames": { | ||
"compute": "Compliant-Compute", | ||
"description": "This policy initiative is a group of policies that ensures Cognitive Search is compliant per FSI Landing Zones", | ||
"displayName": "Enforce secure-by-default Cognitive Search for Financial Services Industry" | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Authorization/policyAssignments", | ||
"apiVersion": "2022-06-01", | ||
"name": "[variables('policyAssignmentNames').compute]", | ||
"location": "[deployment().location]", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"[parameters('userAssignedIdentityResourceId')]": {} | ||
} | ||
}, | ||
"properties": { | ||
"description": "[variables('policyAssignmentNames').description]", | ||
"displayName": "[variables('policyAssignmentNames').displayName]", | ||
"policyDefinitionId": "[variables('policyDefinitions').compute]", | ||
"enforcementMode": "[parameters('enforcementMode')]", | ||
"parameters": { | ||
"cognitiveSearchDiagnostics": { | ||
"value": "[parameters('cognitiveSearchDiagnostics')]" | ||
}, | ||
"cognitiveSearchLogAnalyticsResourceId": { | ||
"value": "[parameters('cognitiveSearchLogAnalyticsResourceId')]" | ||
} | ||
} | ||
} | ||
} | ||
|
||
], | ||
"outputs": {} | ||
} |
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