-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwhitelist_regions.json
47 lines (47 loc) · 1.13 KB
/
whitelist_regions.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"type": "Microsoft.Authorization/policyDefinitions",
"name": "whitelist_regions",
"properties": {
"metadata": {
"category": "General"
},
"parameters": {
"listOfRegionsAllowed": {
"type": "Array",
"metadata": {
"description": "The list of regions where resources can be deployed.",
"displayName": "Allowed regions",
"strongType": "location"
},
"defaultValue": [
"UK South",
"UK West"
]
},
"effect": {
"type": "String",
"defaultValue": "Audit",
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "The effect determines what happens when the policy rule is evaluated to match"
}
}
},
"policyRule": {
"if": {
"not": {
"field": "location",
"in": "[parameters('listOfRegionsAllowed')]"
}
},
"then": {
"effect": "[parameters('effect')]"
}
}
}
}