-
Notifications
You must be signed in to change notification settings - Fork 2
/
azurePolicy.json
31 lines (31 loc) · 1.37 KB
/
azurePolicy.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"policyAssignments": {
"type": "array"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Authorization/policyAssignments",
"condition": "[parameters('policyAssignments')[copyIndex()].boolDeploy]",
"name": "[concat(parameters('policyAssignments')[copyIndex()].name)]",
"apiVersion": "2018-05-01",
"copy": {
"name": "loopPolicyAssigments",
"count": "[length(parameters('policyAssignments'))]"
},
"properties": {
"scope": "[parameters('policyAssignments')[copyIndex()].scope]",
"notScopes": "[parameters('policyAssignments')[copyIndex()].notScopes]",
"description": "[parameters('policyAssignments')[copyIndex()].description]",
"parameters": "[parameters('policyAssignments')[copyIndex()].parameters]",
"displayName": "[parameters('policyAssignments')[copyIndex()].displayName]",
"policyDefinitionId": "[concat('/providers/Microsoft.Authorization/policyDefinitions/', parameters('policyAssignments')[copyIndex()].policyDefinition)]"
}
}
],
"outputs": {}
}