forked from danielsollondon/azvmimagebuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
armTemplateWVD.json
130 lines (109 loc) · 4.41 KB
/
armTemplateWVD.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"imageTemplateName": {
"type": "string"
},
"api-version": {
"type": "string"
},
"svclocation": {
"type": "string"
}
},
"variables": {
},
"resources": [
{
"name": "[parameters('imageTemplateName')]",
"type": "Microsoft.VirtualMachineImages/imageTemplates",
"apiVersion": "[parameters('api-version')]",
"location": "[parameters('svclocation')]",
"dependsOn": [],
"tags": {
"imagebuilderTemplate": "AzureImageBuilderSIG",
"userIdentity": "enabled"
},
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"/subscriptions/74eaa7c3-20cd-428c-90c4-24cee8f0be25/resourcegroups/AIB-RG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/aibIdentity1612410720": {}
}
},
"properties": {
"buildTimeoutInMinutes" : 120,
"vmProfile":
{
"vmSize": "Standard_D2_v2",
"osDiskSizeGB": 127
},
"source": {
"type": "PlatformImage",
"publisher": "MicrosoftWindowsDesktop",
"offer": "office-365",
"sku": "20h2-evd-o365pp",
"version": "latest"
},
"customize": [
{
"type": "PowerShell",
"name": "installFsLogix",
"runElevated": true,
"runAsSystem": true,
"scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/solutions/14_Building_Images_WVD/0_installConfFsLogix.ps1"
},
{
"type": "PowerShell",
"name": "OptimizeOS",
"runElevated": true,
"runAsSystem": true,
"scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/solutions/14_Building_Images_WVD/1_Optimize_OS_for_WVD.ps1"
},
{
"type": "WindowsRestart",
"restartCheckCommand": "write-host 'restarting post Optimizations'",
"restartTimeout": "5m"
},
{
"type": "PowerShell",
"name": "Install Teams",
"runElevated": true,
"runAsSystem": true,
"scriptUri": "https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/solutions/14_Building_Images_WVD/2_installTeams.ps1"
},
{
"type": "WindowsRestart",
"restartCheckCommand": "write-host 'restarting post Teams Install'",
"restartTimeout": "5m"
},
{
"type": "WindowsUpdate",
"searchCriteria": "IsInstalled=0",
"filters": [
"exclude:$_.Title -like '*Preview*'",
"include:$true"
],
"updateLimit": 40
}
],
"distribute":
[
{
"type": "SharedImage",
"galleryImageId": "/subscriptions/74eaa7c3-20cd-428c-90c4-24cee8f0be25/resourceGroups/AIB-RG/providers/Microsoft.Compute/galleries/SIG/images/Win10msO365-20H2",
"runOutputName": "sigOutput",
"artifactTags": {
"source": "wvd10",
"baseosimg": "windows10"
},
"replicationRegions": [
"westus2",
"australiaeast"
]
}
]
}
}
]
}