-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
WindowsLogAnalyticsAgentInstalled_AINE.json
83 lines (83 loc) · 2.39 KB
/
WindowsLogAnalyticsAgentInstalled_AINE.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
79
80
81
82
83
{
"properties": {
"displayName": "[Deprecated]: Windows machines should have Log Analytics agent installed on Azure Arc",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Machines are non-compliant if Log Analytics agent is not installed on Azure Arc enabled windows server.",
"metadata": {
"category": "Guest Configuration",
"version": "2.1.0-deprecated",
"deprecated": true,
"requiredProviders": [
"Microsoft.GuestConfiguration"
],
"guestConfiguration": {
"name": "WindowsLogAnalyticsAgentInstalled",
"version": "1.*"
}
},
"version": "2.1.0",
"parameters": {
"IncludeArcMachines": {
"type": "string",
"metadata": {
"displayName": "Include Arc connected servers",
"description": "By selecting this option, you agree to be charged monthly per Arc connected machine.",
"portalReview": "true"
},
"allowedValues": [
"true",
"false"
],
"defaultValue": "false"
},
"effect": {
"type": "string",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of this policy"
},
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"defaultValue": "Disabled"
}
},
"policyRule": {
"if": {
"allOf": [
{
"value": "[parameters('IncludeArcMachines')]",
"equals": "true"
},
{
"field": "type",
"equals": "Microsoft.HybridCompute/machines"
},
{
"field": "Microsoft.HybridCompute/imageOffer",
"like": "windows*"
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
"name": "WindowsLogAnalyticsAgentInstalled",
"existenceCondition": {
"field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
"equals": "Compliant"
}
}
}
},
"versions": [
"2.1.0",
"2.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/4078e558-bda6-41fb-9b3c-361e8875200d",
"name": "4078e558-bda6-41fb-9b3c-361e8875200d"
}