-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathazuredeploy.json
302 lines (302 loc) · 10.4 KB
/
azuredeploy.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"appRegistrationClientId": {
"type": "string",
"metadata": {
"description": "Client Id (GUID) of AAD app registration"
}
},
"appRegistrationClientSecret": {
"type": "string",
"metadata": {
"description": "Client Secret of AAD app registration"
}
},
"autopilotProfileGroup": {
"type": "string",
"metadata": {
"description": "AAD group (Object ID) for Autopilot profile assignment (direct members)"
}
},
"authorizationSecurityGroup": {
"type": "string",
"metadata": {
"description": "AAD group (Object ID) for general AutopilotManager access"
}
},
"viewerSecurityGroup": {
"type": "string",
"metadata": {
"description": "AAD group (Object ID) for Viewer access (Import History)"
}
},
"approverSecurityGroup": {
"type": "string",
"metadata": {
"description": "AAD group (Object ID) for Approver in Approval Mode"
}
},
"approvalMode": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "Enable Approval Mode"
}
},
"useApprovalUserAsAssignedUser": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "Use the approval user as assigned user on the Autopilot device"
}
},
"groupTag": {
"type": "string",
"defaultValue": "AutopilotManager",
"metadata": {
"description": "Use following Autopilot Group Tag for every import (the value is overwritten in Approval Mode)"
}
},
"useApprovalModeGroupTags": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "Allow choice of Group Tags in Approval Mode"
}
},
"approvalModeGroupTags": {
"type": "string",
"defaultValue": "AutopilotManager,NONE=No Group Tag",
"metadata": {
"description": "Approval Mode Group Tag list (use entry 'NONE=No Group Tag' to provide empty choice). Use a comma separated string groupTag1,groupTag2,..."
}
},
"useManufacturersFilter": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "Enable filter (whitelist) for allowed Manufacturers"
}
},
"useModelsFilter": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "Enable filter (whitelist) for allowed Models"
}
},
"manufacturers": {
"type": "string",
"defaultValue": "Microsoft Corporation",
"metadata": {
"description": "Manufacturers whitelist, use a comma separated string manufacturer1,manufacturer2,..."
}
},
"models": {
"type": "string",
"defaultValue": "Virtual Machine",
"metadata": {
"description": "Models whitelist, use a comma separated string model1,model2,..."
}
},
"hideHomepageImportInstructions": {
"type": "bool",
"defaultValue": false,
"metadata": {
"description": "Hide import instructions (commands) on the AutopilotManager homepage"
}
},
"HomepageImportCommandUrls": {
"type": "string",
"defaultValue": "ap.domain.com,apserver.domain.com",
"metadata": {
"description": "Urls for client and server to build command to display on homepage. It may also be just the client url if the server url is compiled into the ap.exe."
}
}
},
"variables": {
"_repoUrl": "https://raw.githubusercontent.com/okieselbach/Autopilot-Manager",
"_artifactsLocation": "[concat(variables('_repoUrl'), '/master/dist/Artifacts.zip')]",
"_appServicePlan": "[concat('AutopilotManager-ServicePlan-', uniqueString(resourceGroup().id))]",
"_appSerivceName": "[concat('AutopilotManager-', uniqueString(resourceGroup().id))]"
},
"resources": [
{
"apiVersion": "2020-06-01",
"type": "Microsoft.Web/serverfarms",
"name": "[variables('_appServicePlan')]",
"location": "[resourceGroup().location]",
"sku": {
"Tier": "Standard",
"Name": "S1"
},
"properties": {
"name": "[variables('_appServicePlan')]",
"workerSize": 1,
"numberOfWorkers": 1
}
},
{
"apiVersion": "2020-06-01",
"type": "Microsoft.Web/sites",
"name": "[variables('_appSerivceName')]",
"location": "[resourceGroup().location]",
"properties": {
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('_appServicePlan'))]",
"httpsOnly": false,
"clientAffinityEnabled": false,
"siteConfig": {
"alwaysOn": true,
"use32BitWorkerProcess": false,
"ftpsState": "Disabled",
"netFrameworkVersion": "v6.0",
"metadata": [
{
"name": "CURRENT_STACK",
"value": "dotnet"
}
],
"appSettings": [
{
"name": "WEBSITE_RUN_FROM_PACKAGE",
"value": "[variables('_artifactsLocation')]"
},
{
"name": "AppConfig:AuthConfig:TenantId",
"value": "[subscription().tenantId]"
},
{
"name": "AppConfig:AuthConfig:ClientId",
"value": "[parameters('appRegistrationClientId')]"
},
{
"name": "AppConfig:AuthConfig:ClientSecret",
"value": "[parameters('appRegistrationClientSecret')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:UseAutopilotProfileGroup",
"value": "true"
},
{
"name": "AppConfig:AutopilotManagerConfig:AutopilotProfileGroup",
"value": "[parameters('autopilotProfileGroup')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:AuthorizationSecurityGroup",
"value": "[parameters('authorizationSecurityGroup')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:ViewerSecurityGroup",
"value": "[parameters('viewerSecurityGroup')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:ApproverSecurityGroup",
"value": "[parameters('approverSecurityGroup')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:ApprovalMode",
"value": "[parameters('approvalMode')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:UseApprovalUserAsAssignedUser",
"value": "[parameters('useApprovalUserAsAssignedUser')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:GroupTag",
"value": "[parameters('groupTag')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:UseApprovalModeGroupTags",
"value": "[parameters('useApprovalModeGroupTags')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:ApprovalModeGroupTags",
"value": "[parameters('approvalModeGroupTags')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:UseManufacturersFilter",
"value": "[parameters('useManufacturersFilter')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:UseModelsFilter",
"value": "[parameters('useModelsFilter')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:Manufacturers",
"value": "[parameters('manufacturers')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:Models",
"value": "[parameters('models')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:HideHomepageImportInstructions",
"value": "[parameters('hideHomepageImportInstructions')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:HomepageImportCommandUrls",
"value": "[parameters('HomepageImportCommandUrls')]"
},
{
"name": "AppConfig:AutopilotManagerConfig:Timeout",
"value": "120"
},
{
"name": "AppConfig:AutopilotManagerConfig:AllowDeletionInApprovalMode",
"value": "false"
},
{
"name": "AppConfig:AutopilotManagerConfig:ShowHomepageApprovalLink",
"value": "false"
},
{
"name": "AppConfig:AutopilotManagerConfig:ShowHomepageHistoryLink",
"value": "false"
},
{
"name": "AppConfig:AutopilotManagerConfig:UseReRegisterMode",
"value": "false"
},
{
"name": "AppConfig:AutopilotManagerConfig:PreservePurchaseOrderIdOnReRegister",
"value": "true"
},
{
"name": "AppConfig:AutopilotManagerConfig:UseLogAnalytics",
"value": "false"
},
{
"name": "AppConfig:AutopilotManagerConfig:LogAnalyticsWorkspaceId",
"value": ""
},
{
"name": "AppConfig:AutopilotManagerConfig:LogAnalyticsSharedKey",
"value": ""
},
{
"name": "AppConfig:AutopilotManagerConfig:LogAnalyticsReportHardwareHash",
"value": "false"
},
{
"name": "AppConfig:AutopilotManagerConfig:HomepageHeadlineSentenceApprovalMode",
"value": ""
},
{
"name": "AppConfig:AutopilotManagerConfig:HomepageHeadlineSentenceNonApprovalMode",
"value": ""
},
{
"name": "AppConfig:AutopilotManagerConfig:HomepageCompanyLogoImageUrl",
"value": ""
}
]
}
},
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('_appServicePlan'))]"
]
}
]
}