/
Disks_and_OS_Should_Support_TrustedLaunch.json
65 lines (65 loc) · 1.75 KB
/
Disks_and_OS_Should_Support_TrustedLaunch.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
{
"properties": {
"displayName": "Disks and OS image should support TrustedLaunch",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "TrustedLaunch improves security of a Virtual Machine which requires OS Disk & OS Image to support it (Gen 2). To learn more about TrustedLaunch, visit https://aka.ms/trustedlaunch",
"metadata": {
"version": "1.0.0",
"category": "Trusted Launch"
},
"version": "1.0.0",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Compute/disks"
},
{
"allOf": [
{
"field": "Microsoft.Compute/disks/osType",
"exists": "true"
},
{
"anyOf": [
{
"field": "Microsoft.Compute/disks/hyperVGeneration",
"exists": "false"
},
{
"field": "Microsoft.Compute/disks/hyperVGeneration",
"equals": "V1"
}
]
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/b03bb370-5249-4ea4-9fce-2552e87e45fa",
"name": "b03bb370-5249-4ea4-9fce-2552e87e45fa"
}