-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
ASC_EnableVTPM_Audit.json
58 lines (58 loc) · 1.79 KB
/
ASC_EnableVTPM_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": "[Preview]: vTPM should be enabled on supported virtual machines",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Enable virtual TPM device on supported virtual machines to facilitate Measured Boot and other OS security features that require a TPM. Once enabled, vTPM can be used to attest boot integrity. This assessment only applies to trusted launch enabled virtual machines.",
"metadata": {
"category": "Security Center",
"version": "2.0.0-preview",
"preview": true
},
"version": "2.0.0-preview",
"parameters": {
"effect": {
"type": "string",
"defaultValue": "Audit",
"allowedValues": [
"Audit",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Compute/virtualMachines"
},
{
"field": "Microsoft.Compute/virtualMachines/securityProfile.securityType",
"equals": "TrustedLaunch"
},
{
"field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings",
"exists": "true"
},
{
"field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.vTpmEnabled",
"notequals": "true"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"2.0.0-PREVIEW"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/1c30f9cd-b84c-49cc-aa2c-9288447cc3b3",
"name": "1c30f9cd-b84c-49cc-aa2c-9288447cc3b3"
}