-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
PublicNetworkAccess_Audit.json
72 lines (72 loc) · 1.96 KB
/
PublicNetworkAccess_Audit.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
61
62
63
64
65
66
67
68
69
70
71
72
{
"properties": {
"displayName": "Azure Key Vault should disable public network access",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Disable public network access for your key vault so that it's not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://aka.ms/akvprivatelink.",
"metadata": {
"version": "1.1.0",
"category": "Key Vault"
},
"version": "1.1.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.KeyVault/vaults"
},
{
"not": {
"field": "Microsoft.KeyVault/vaults/createMode",
"equals": "recover"
}
},
{
"anyOf": [
{
"value": "[requestContext().apiVersion]",
"less": "2021-06-01-preview"
},
{
"allOf": [
{
"value": "[requestContext().apiVersion]",
"greaterOrEquals": "2021-06-01-preview"
},
{
"field": "Microsoft.KeyVault/vaults/publicNetworkAccess",
"notEquals": "Disabled"
}
]
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.1.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/405c5871-3e91-4644-8a63-58e19d68ff5b",
"name": "405c5871-3e91-4644-8a63-58e19d68ff5b"
}