-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
AzureMonitorPrivateLinkScopes_AccessModeSettings_Audit.json
58 lines (58 loc) · 2.02 KB
/
AzureMonitorPrivateLinkScopes_AccessModeSettings_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
{
"properties": {
"displayName": "Azure Monitor Private Link Scope should block access to non private link resources",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Azure Private Link lets you connect your virtual networks to Azure resources through a private endpoint to an Azure Monitor Private Link scope (AMPLS). Private Link Access modes are set on your AMPLS to control whether ingestion and query requests from your networks can reach all resources, or only Private Link resources (to prevent data exfiltration). Learn more about private links at: https://docs.microsoft.com/azure/azure-monitor/logs/private-link-security#private-link-access-modes-private-only-vs-open.",
"metadata": {
"version": "1.0.0",
"category": "Monitoring"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "The effect determines what happens when the policy rule is evaluated to match"
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Insights/privateLinkScopes"
},
{
"anyOf": [
{
"field": "Microsoft.Insights/privateLinkScopes/accessModeSettings.ingestionAccessMode",
"notEquals": "PrivateOnly"
},
{
"field": "Microsoft.Insights/privateLinkScopes/accessModeSettings.queryAccessMode",
"notEquals": "PrivateOnly"
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/a499fed8-bcc8-4195-b154-641f14743757",
"name": "a499fed8-bcc8-4195-b154-641f14743757"
}