-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
ASC_InstallLaAgentOnVm.json
57 lines (57 loc) · 1.68 KB
/
ASC_InstallLaAgentOnVm.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
{
"properties": {
"displayName": "[Deprecated]: Log Analytics agent should be installed on your virtual machine for Azure Security Center monitoring",
"policyType": "BuiltIn",
"mode": "All",
"description": "This policy audits any Windows/Linux virtual machines (VMs) if the Log Analytics agent is not installed which Security Center uses to monitor for security vulnerabilities and threats",
"metadata": {
"version": "1.1.0-deprecated",
"category": "Security Center",
"deprecated": true
},
"version": "1.1.0",
"parameters": {
"effect": {
"type": "string",
"defaultValue": "Disabled",
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"field": "type",
"in": [
"Microsoft.ClassicCompute/virtualMachines",
"Microsoft.Compute/virtualMachines"
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.Security/assessments",
"name": "d1db3318-01ff-16de-29eb-28b344515626",
"existenceCondition": {
"field": "Microsoft.Security/assessments/status.code",
"in": [
"NotApplicable",
"Healthy"
]
}
}
}
},
"versions": [
"1.1.0",
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/a4fe33eb-e377-4efb-ab31-0784311bc499",
"name": "a4fe33eb-e377-4efb-ab31-0784311bc499"
}