-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
LogAnalyticsWorkspaces_NetworkAccessEnabled_Deny.json
61 lines (61 loc) · 1.82 KB
/
LogAnalyticsWorkspaces_NetworkAccessEnabled_Deny.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
{
"properties": {
"displayName": "Log Analytics workspaces should block log ingestion and querying from public networks",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Improve workspace security by blocking log ingestion and querying from public networks. Only private-link connected networks will be able to ingest and query logs on this workspace. Learn more at https://aka.ms/AzMonPrivateLink#configure-log-analytics.",
"metadata": {
"version": "1.1.0",
"category": "Monitoring"
},
"version": "1.1.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "The effect determines what happens when the policy rule is evaluated to match"
},
"allowedValues": [
"audit",
"Audit",
"deny",
"Deny",
"disabled",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.OperationalInsights/workspaces"
},
{
"anyOf": [
{
"field": "Microsoft.OperationalInsights/workspaces/publicNetworkAccessForIngestion",
"notEquals": "disabled"
},
{
"field": "Microsoft.OperationalInsights/workspaces/publicNetworkAccessForQuery",
"notEquals": "disabled"
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.1.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/6c53d030-cc64-46f0-906d-2bc061cd1334",
"name": "6c53d030-cc64-46f0-906d-2bc061cd1334"
}