-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
PendingESUUpdates_AINE.json
73 lines (73 loc) · 2.25 KB
/
PendingESUUpdates_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
{
"properties": {
"displayName": "[Preview]: Extended Security Updates should be installed on Windows Server 2012 Arc machines.",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Windows Server 2012 Arc machines should have installed all the Extended Security Updates released by Microsoft. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol",
"metadata": {
"version": "1.0.0-preview",
"category": "Guest Configuration",
"requiredProviders": [
"Microsoft.GuestConfiguration"
],
"guestConfiguration": {
"name": "PendingESUUpdates",
"version": "1.*"
},
"preview": true
},
"version": "1.0.0-preview",
"parameters": {
"effect": {
"type": "string",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of this policy"
},
"allowedValues": [
"AuditIfNotExists",
"Disabled"
],
"defaultValue": "AuditIfNotExists"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.HybridCompute/machines"
},
{
"field": "Microsoft.HybridCompute/imageOffer",
"like": "windows*"
},
{
"field": "Microsoft.HybridCompute/machines/licenseProfile.esuProfile.licenseAssignmentState",
"equals": "Assigned"
}
]
},
"then": {
"effect": "[parameters('effect')]",
"details": {
"type": "Microsoft.GuestConfiguration/guestConfigurationAssignments",
"name": "PendingESUUpdates",
"existenceCondition": {
"allOf": [
{
"field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus",
"equals": "Compliant"
}
]
}
}
}
},
"versions": [
"1.0.0-PREVIEW"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/14b4e776-9fab-44b0-b53f-38d2458ea8be",
"name": "14b4e776-9fab-44b0-b53f-38d2458ea8be"
}