forked from aswini-chirumamilla/Project_Documents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deny_unapproved_udr.json
60 lines (60 loc) · 1.52 KB
/
deny_unapproved_udr.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
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"type": "Microsoft.Authorization/policyDefinitions",
"name": "deny_unapproved_udr",
"properties": {
"metadata": {
"category": "Network"
},
"parameters": {
"allowedHops": {
"type": "Array",
"metadata": {
"displayName": "Allowed next hops",
"description": "A list of the permitted 'next hops' for a UDR"
}
},
"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": {
"allOf": [
{
"field": "type",
"contains": "Microsoft.Network/routeTables"
},
{
"anyOf": [
{
"allOf": [
{
"field": "Microsoft.Network/routeTables/routes/nextHopIpAddress",
"exists": "true"
},
{
"field": "Microsoft.Network/routeTables/routes/nextHopIpAddress",
"notIn": "[parameters('allowedHops')]"
}
]
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
}
}
}