-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
ActivityLog_CaptureAllRegions.json
78 lines (78 loc) · 2.24 KB
/
ActivityLog_CaptureAllRegions.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
73
74
75
76
77
78
{
"properties": {
"displayName": "Azure Monitor should collect activity logs from all regions",
"policyType": "BuiltIn",
"mode": "All",
"description": "This policy audits the Azure Monitor log profile which does not export activities from all Azure supported regions including global.",
"metadata": {
"version": "2.0.0",
"category": "Monitoring"
},
"version": "2.0.0",
"parameters": {
"effect": {
"type": "string",
"defaultValue": "AuditIfNotExists",
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"field": "type",
"equals": "Microsoft.Resources/subscriptions"
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Insights/logProfiles",
"existenceCondition": {
"allOf": [
{
"not": {
"field": "Microsoft.Insights/logProfiles/locations[*]",
"notEquals": "usgovarizona"
}
},
{
"not": {
"field": "Microsoft.Insights/logProfiles/locations[*]",
"notEquals": "usgoviowa"
}
},
{
"not": {
"field": "Microsoft.Insights/logProfiles/locations[*]",
"notEquals": "usgovtexas"
}
},
{
"not": {
"field": "Microsoft.Insights/logProfiles/locations[*]",
"notEquals": "usgovvirginia"
}
},
{
"not": {
"field": "Microsoft.Insights/logProfiles/locations[*]",
"notEquals": "global"
}
}
]
}
}
}
},
"versions": [
"2.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/41388f1c-2db0-4c25-95b2-35d7f5ccbfa9",
"name": "41388f1c-2db0-4c25-95b2-35d7f5ccbfa9"
}