-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreatingDeliveryControllerGallery.json
461 lines (453 loc) · 13.9 KB
/
creatingDeliveryControllerGallery.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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
// Infrastructure
"vhdStorageAccount": {
"type": "string",
"metadata": {
"description": "Specifies the name of the storage account used for virtual machine disks. This has to be a unique name, up to 24 chars, all lowercase."
}
},
"imageUri": {
"type": "string",
"metadata": {
"description": "Specifies the user image URI to provision this machine on. Must contain the 7.7 release of XenApp."
}
},
"publisher": {
"type": "string",
"metadata": {
"description": "Specifies the marketplace publisher of the image to provision this machine on."
}
},
"offer": {
"type": "string",
"metadata": {
"description": "Specifies the marketplace offer of the image to provision this machine on."
}
},
"sku": {
"type": "string",
"metadata": {
"description": "Specifies the marketplace sku of the image to provision this machine on."
}
},
"machineSize": {
"type": "string",
"defaultValue": "Standard_A2",
"metadata": {
"description": "Specifies the size of the virtual machine."
}
},
"machineName": {
"type": "string",
"metadata": {
"description": "Specifies the name of this machine in Azure and on the network."
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Specifies the Location for the deployment."
}
},
"privateIp": {
"type": "string",
"metadata": {
"description": "Specifies the static IP to assign to this machine."
}
},
"availabilitySetId": {
"type": "string",
"metadata": {
"description": "Specifies the availability set this machine should belong to."
}
},
"subnetId": {
"type": "string",
"metadata": {
"description": "Specifies the id of the subnet the machine should connect to."
}
},
"dnsServers": {
"type": "array",
"metadata": {
"description": "Specifies a list of DNS servers the machine should use."
}
},
"lbBapId": {
"type": "string",
"metadata": {
"description": "Specifies the id of the load balancer's back end address pool."
}
},
"lbInboundRules": {
"type": "array",
"metadata": {
"description": "Specifies a list of inbound NAT rules to apply to this VM."
}
},
// Credentials and domain
"adminUsername": {
"type": "string",
"metadata": {
"description": "Specifies the name of the administrator for machines, Active Directory domain, NetScaler and XenApp. Exclusion list: 'admin','administrator'. Must be no more than 9 alphanumeric characters."
}
},
"adminPassword": {
"type": "securestring",
"metadata": {
"description": "Specifies the password of the administrator for machines, Active Directory domain, NetScaler and XenApp."
}
},
"domainName": {
"type": "string",
"metadata": {
"description": "Specifies the name of the Active Directory domain."
}
},
"domainControllerFQDN": {
"type": "string",
"metadata": {
"description": "Specifies the name of the Active Directory domain controller on the virtual network."
}
},
"domainControllerPrivateIp": {
"type": "string",
"metadata": {
"description": "Specifies the private IP of a domain controller on the virtual network."
}
},
// Delegated servers
"sqlServerFQDN": {
"type": "string",
"metadata": {
"description": "Specifies the name of a SQL server on the virtual network used for hosting the site database."
}
},
"sqlServerInstance": {
"type": "string",
"metadata": {
"description": "Specifies the instance name of the SQL server used for hosting the site database."
}
},
"licenseServerFQDN": {
"type": "string",
"metadata": {
"description": "Specifies the name of a Citrix license server on the virtual network."
}
},
"netScalerPrivateIp": {
"type": "string",
"metadata": {
"description": "Specifies the private IP of a NetScaler on the virtual network."
}
},
// StoreFront
"storeFrontFQDN": {
"type": "string",
"metadata": {
"description": "Specifies the name of a StoreFront on the virtual network."
}
},
"virtualServerName": {
"type": "string",
"metadata": {
"description": "Specifies the name of the NetScaler virtual server to be created for serving StoreFront content."
}
},
"virtualServerPort": {
"type": "int",
"metadata": {
"description": "Specifies the port of the NetScaler virtual server to be created for serving StoreFront content."
}
},
"forwardServerPort": {
"type": "int",
"metadata": {
"description": "Specifies the port of the NetScaler virtual server to be created for forwarding http connections to https."
}
},
"storeFrontGatewayName": {
"type": "string",
"metadata": {
"description": "Specifies the name of the NetScaler gateway in StoreFront."
}
},
"emailAddress": {
"type": "string",
"metadata": {
"description": "Specifies the email address that that will be used to request a public SSL certificate for NetScaler gateway from letsencrypt.org on your behalf. This will also be used to notify you when the template has deployed successfully."
}
},
"certificateAuthority": {
"type": "string",
"defaultValue": "ACME",
"allowedValues": [
"ACME",
"Enterprise"
],
"metadata": {
"description": "Specifies whether an ACME CA or the internal Enterprise CA should be used for obtaining certificates."
}
},
"acmeServer": {
"type": "string",
"defaultValue": "https://acme-v01.api.letsencrypt.org/",
"allowedValues": [
"https://acme-staging.api.letsencrypt.org/",
"https://acme-v01.api.letsencrypt.org/"
],
"metadata": {
"description": "Specifies the ACME protocol server used for public TLS certificate requests. Allowed values correspond to letsencrypt.org staging or production."
}
},
"gatewayFQDN": {
"type": "string",
"metadata": {
"description": "Specifies the FQDN where the user will reach the deployment."
}
},
"deploymentFQDN": {
"type": "string",
"metadata": {
"description": "Specifies the FQDN of the Azure public IP to which the gateway FQDN will be forwarded."
}
},
"themeUri": {
"type": "string",
"metadata": {
"description": "Specifies the URI of a NetScaler theme which should be installed."
}
},
"html5Mode": {
"type": "string",
"defaultValue": "Always",
"allowedValues": [
"Always",
"Fallback",
"Off"
],
"metadata": {
"description": "Specifies whether HTML5 Reciever is to be used."
}
},
"appGroups": {
"type": "array",
"metadata": {
"description": "Specifies a list of application groups to be created in StoreFront."
}
},
// Delivery controller
"deliveryControllerFQDN": {
"type": "string",
"metadata": {
"description": "Specifies the name of the XenApp delivery controller."
}
},
"siteName": {
"type": "string",
"metadata": {
"description": "Specifies the name of the XenApp site."
}
},
// Configuration
"artifactsLocationUri": {
"type": "string",
"metadata": {
"description": "Specifies the shared access signature token which provides access to the base artifacts location."
}
},
"artifactsLocationSasToken": {
"type": "string",
"metadata": {
"description": "Specifies the base location of the child templates and desired state configuration scripts."
}
},
"dscVersion": {
"type": "string",
"metadata": {
"description": "Specifies the version of the DSC extension to use."
}
},
"configurationFileUrl": {
"type": "string",
"metadata": {
"description": "Specifies the URI of the DSC configuration script."
}
},
"configurationFunction": {
"type": "string",
"metadata": {
"description": "Specifies the function to be executed in the DSC configuration script."
}
},
"azureGov": {
"type": "string",
"metadata": {
"description": "Specifies the shared access signature token which provides access to the base artifacts location."
},
"defaultValue": "true",
"allowedValues": [
"true",
"false"
]
},
//Cloud Connector Settings
"customerId": {
"type": "string",
"metadata": {
"description": "This is the customer ID available in the Citrix Cloud console on the API Access page (within Identity and Access Management)."
}
},
"clientId": {
"type": "string",
"metadata": {
"description": "Found on the API Access page. This is the secure client ID an administrator can create."
}
},
"ClientSecret": {
"type": "string",
"metadata": {
"description": "Found on the API Access page. This is the secure client secret available via download after a secure client is created."
}
},
"ResourceLocationId": {
"type": "string",
"metadata": {
"description": "This ID can be retrieved on the Resource Locations page using the ID button."
}
}
},
"variables": {
"imagePublisher": "[parameters('publisher')]",
"imageOffer": "[parameters('offer')]",
"imageSKU": "[parameters('sku')]",
"planPublisher": "[parameters('publisher')]",
"planProduct": "[parameters('offer')]",
"planName": "[parameters('sku')]",
"nicName": "[concat(parameters('machineName'),'-nic')]",
"nicId": "[resourceId('Microsoft.Network/networkInterfaces',variables('nicName'))]",
"machineId": "[resourceId('Microsoft.Compute/virtualMachines',parameters('machineName'))]",
"configurationId": "[concat(resourceId('Microsoft.Compute/virtualMachines',parameters('machineName')),'/extensions/configure')]",
"osDiskName": "[concat(resourceGroup().name,'-',parameters('machineName'),'-osdisk')]",
"osDisk": {
"true": {
"osDiskUri": "[concat('http://',parameters('vhdStorageAccount'),'.blob.core.usgovcloudapi.net/vhds/',variables('osDiskName'),'.vhd')]"
},
"false": {
"osDiskUri": "[concat('http://',parameters('vhdStorageAccount'),'.blob.core.windows.net/vhds/',variables('osDiskName'),'.vhd')]"
}
},
"currentOsDisk": "[variables('osDisk')[parameters('azureGov')]]",
"osDiskUri": "[variables('currentOsDisk').osDiskUri]"
},
"resources": [
{
"apiVersion": "2015-06-15",
"type": "Microsoft.Network/networkInterfaces",
"name": "[variables('nicName')]",
"tags": {
"displayName": "ControllerNic"
},
"location": "[parameters('location')]",
"properties": {
"ipConfigurations": [
{
"name": "ipconfig",
"properties": {
"privateIPAllocationMethod": "Static",
"privateIPAddress": "[parameters('privateIp')]",
"subnet": {
"id": "[parameters('subnetId')]"
},
"loadBalancerBackendAddressPools": [
{
"id": "[parameters('lbBapId')]"
}
],
"loadBalancerInboundNatRules": "[parameters('lbInboundRules')]"
}
}
]
}
},
{
"apiVersion": "2015-06-15",
"type": "Microsoft.Compute/virtualMachines",
"name": "[parameters('machineName')]",
"tags": {
"displayName": "ControllerVM"
},
"location": "[parameters('location')]",
"dependsOn": [
"[variables('nicId')]"
],
"plan": {
"name": "[variables('planName')]",
"publisher": "[variables('planPublisher')]",
"product": "[variables('planProduct')]"
},
"properties": {
"availabilitySet": {
"id": "[parameters('availabilitySetId')]"
},
"hardwareProfile": {
"vmSize": "[parameters('machineSize')]"
},
"osProfile": {
"computerName": "[parameters('machineName')]",
"adminUsername": "[parameters('adminUsername')]",
"adminPassword": "[parameters('adminPassword')]",
"windowsConfiguration": {
"provisionVMAgent": true,
"enableAutomaticUpdates": true
}
},
"storageProfile": {
"imageReference": {
"publisher": "[variables('imagePublisher')]",
"offer": "[variables('imageOffer')]",
"sku": "[variables('imageSKU')]",
"version": "latest"
},
"osDisk": {
"name": "[variables('osDiskName')]",
"vhd": {
"uri": "[variables('osDiskUri')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
}
},
"networkProfile": {
"networkInterfaces": [
{
"id": "[variables('nicId')]"
}
]
}
}
}
],
"outputs": {
"machineId": {
"type": "string",
"value": "[variables('machineId')]"
},
"nicName": {
"type": "string",
"value": "[variables('nicName')]"
},
"nicId": {
"type": "string",
"value": "[variables('nicId')]"
},
"configurationId": {
"type": "string",
"value": "[variables('configurationId')]"
}
}
}