-
Notifications
You must be signed in to change notification settings - Fork 6
/
mainTemplate.json
479 lines (477 loc) · 15.5 KB
/
mainTemplate.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
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"virtualNetworkAddressPrefixes": {
"defaultValue": "10.0.0.0/16",
"type": "string",
"metadata": {
"description": "Specifies the address prefixes of the virtual network."
}
},
"aksSubnetAddressPrefix": {
"defaultValue": "10.0.0.0/18",
"type": "string",
"metadata": {
"description": "Specifies the address prefix of the subnet hosting the system node pool of the AKS cluster."
}
},
"applicationGatewaySubnetAddressPrefix": {
"type": "string",
"defaultValue": "10.0.64.0/24",
"metadata": {
"description": "Specifies the address prefix of the subnet which contains the Application Gateway."
}
},
"virtualMachineSubnetAddressPrefix": {
"type": "string",
"defaultValue": "10.0.65.0/24",
"metadata": {
"description": "Specifies the address prefix of the subnet which contains the virtual machine."
}
},
"netAppFileSubnetAddressPrefix": {
"type": "string",
"defaultValue": "10.0.66.0/24",
"metadata": {
"description": "Specifies the NetApp File subnet IP prefix. This prefix must be within vnet IP prefix address space."
}
},
"remoteAccessCIDR": {
"type": "string",
"defaultValue": "0.0.0.0/0",
"metadata": {
"description": "The CIDR IP range that is permitted to access the bastion instances. We recommend that you set this value to a trusted IP range."
}
},
"aksClusterKubernetesVersion": {
"type": "string",
"defaultValue": "1.24.9",
"metadata": {
"description": "Specifies the version of Kubernetes specified when creating the managed cluster."
}
},
"aksClusterEnablePrivateCluster": {
"defaultValue": false,
"type": "bool",
"metadata": {
"description": "Specifies whether to create the cluster as a private cluster or not."
}
},
"aksClusterSkuTier": {
"type": "string",
"defaultValue": "Paid",
"allowedValues": [
"Paid",
"Free"
],
"metadata": {
"description": "Specifies the tier of a managed cluster SKU: Paid or Free"
}
},
"systemNodePoolVirtualMachineSize": {
"defaultValue": "Standard_D4_v4",
"type": "string",
"metadata": {
"description": "Specifies the vm size of nodes in the system node pool."
}
},
"userNodePoolVirtualMachineSize": {
"defaultValue": "Standard_D4_v4",
"type": "string",
"metadata": {
"description": "Specifies the vm size of nodes in the user node pool."
}
},
"aksClusterServiceCidr": {
"defaultValue": "10.0.67.0/24",
"type": "string",
"metadata": {
"description": "A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges."
}
},
"aksClusterDnsServiceIP": {
"defaultValue": "10.0.67.10",
"type": "string",
"metadata": {
"description": "Specifies the IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr."
}
},
"aksClusterPodCidr": {
"defaultValue": "10.0.128.0/18",
"type": "string",
"metadata": {
"description": "Specifies the CIDR notation IP range from which to assign pod IPs when kubenet is used."
}
},
"aksClusterDockerBridgeCidr": {
"defaultValue": "172.17.0.1/16",
"type": "string",
"metadata": {
"description": "Specifies the CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range."
}
},
"aksNodePoolAvailabilityZones": {
"type": "array",
"metadata": {
"description": "Specifies the availability zones for the agent nodes in the system node pool. Requirese the use of VirtualMachineScaleSets as node pool type."
}
},
"userNodePoolAgentCount": {
"defaultValue": 3,
"type": "int",
"metadata": {
"description": "Specifies the number of agents (VMs) to host docker containers in the user node pool. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1."
}
},
"userNodePoolMinCount": {
"defaultValue": 3,
"type": "int",
"metadata": {
"description": "Specifies the minimum number of nodes for auto-scaling for the user node pool."
}
},
"userNodePoolMaxCount": {
"defaultValue": 10,
"type": "int",
"metadata": {
"description": "Specifies the maximum number of nodes for auto-scaling for the user node pool."
}
},
"PodCPUSize": {
"type": "string",
"allowedValues": [
"1000m",
"2000m"
],
"defaultValue": "1000m",
"metadata": {
"description": "Specifies Pod limit CPU Size"
}
},
"PodMemorySize": {
"type": "string",
"allowedValues": [
"512Mi",
"1024Mi",
"2064Mi"
],
"defaultValue": "1024Mi",
"metadata": {
"description": "Specifies Pod limit Memory Size"
}
},
"PersistentVolumeSize": {
"type": "string",
"allowedValues": [
"250Gi",
"500Gi"
],
"defaultValue": "250Gi",
"metadata": {
"description": "Specifies persistent volume size"
}
},
"netAppServiceLevel": {
"defaultValue": "Premium",
"type": "string",
"allowedValues": [
"Premium",
"Ultra",
"Standard"
],
"metadata": {
"description": "Target performance for the capacity pool. Service level: Ultra, Premium, or Standard."
}
},
"virtualMachineSize": {
"type": "string",
"defaultValue": "Standard_DS1_v2",
"metadata": {
"description": "Specifies the size of the virtual machine."
}
},
"virtualMachineAdminUsername": {
"type": "string",
"defaultValue": "boomi",
"metadata": {
"description": "Specifies the name of the administrator account of the virtual machine."
}
},
"virtualMachineAdminPassword": {
"type": "securestring",
"metadata": {
"description": "Specifies the password for the virtual machine."
}
},
"BoomiAuthenticationType": {
"defaultValue": "Token",
"allowedValues": [
"Token",
"Password"
],
"type": "string",
"metadata": {
"description": "Boomi Platform Authentication Type"
}
},
"BoomiAccountID": {
"type": "string",
"metadata": {
"description": "The Boomi account ID that you want to associate with the new Molecule cluster."
}
},
"BoomiUsername": {
"type": "string",
"metadata": {
"description": "The email account associated with the Boomi account."
}
},
"BoomiMFAAPIToken": {
"type": "securestring",
"defaultValue": "",
"metadata": {
"description": "An MFA API token generated by your Boomi Administrator."
}
},
"BoomiPassword": {
"type": "securestring",
"defaultValue": "",
"metadata": {
"description": "The password associated with the Boomi account."
}
},
"BoomiMoleculeName": {
"type": "string",
"metadata": {
"description": "The Boomi Molecule cluster name"
}
},
"sslCertificateSecretData": {
"type": "securestring",
"metadata": {
"description": "Application Gateway SSL Certificate Data"
}
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "Location"
}
},
"_artifactsLocation": {
"type" : "string",
"metadata" : {
"description": "The base Url for dependent assets"
},
"defaultValue": "[deployment().properties.templateLink.uri]"
},
"_artifactsLocationSasToken": {
"type": "securestring",
"metadata": {
"description": "The sasToken required to access _artifactsLocation. When the template is deployed using the accompanying scripts, a sasToken will be automatically generated. Use the defaultValue if the staging location is not secured."
},
"defaultValue": ""
}
},
"variables": {
"nestedtemplatevar1": "[concat('nestedtemplates/azuredeploy.license.validation.json', parameters('_artifactsLocationSasToken'))]",
"nestedtemplatevar2": "[concat('nestedtemplates/azuredeploy.license.check.json', parameters('_artifactsLocationSasToken'))]",
"nestedtemplateUri1": "[uri(parameters('_artifactsLocation'), variables('nestedtemplatevar1') )]",
"nestedtemplateUri2": "[uri(parameters('_artifactsLocation'), variables('nestedtemplatevar2') )]"
},
"resources": [
{
"apiVersion": "2020-06-01",
"name": "pid-647a2fdf-73fa-45d6-a685-2ac5054f82e4-partnercenter",
"type": "Microsoft.Resources/deployments",
"properties": {
"mode": "Incremental",
"template": {
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": []
}
}
},
{
"name": "BoomiLicenseValidation",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('nestedtemplateUri1')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"BoomiAuthenticationType": {
"value": "[parameters('BoomiAuthenticationType')]"
},
"BoomiAccountID": {
"value": "[parameters('BoomiAccountID')]"
},
"BoomiUsername": {
"value": "[parameters('BoomiUsername')]"
},
"BoomiMFAAPIToken": {
"value": "[parameters('BoomiMFAAPIToken')]"
},
"BoomiPassword": {
"value": "[parameters('BoomiPassword')]"
},
"location" :{
"value": "[parameters('location')]"
},
"_artifactsLocation" :{
"value": "[parameters('_artifactsLocation')]"
}
}
}
},
{
"name": "BoomiQSInfrastructure",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2021-04-01",
"dependsOn": [
"BoomiLicenseValidation"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('nestedtemplateUri2')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"deploymentCondition": {
"value": "[reference('BoomiLicenseValidation').outputs.licenseValidation.value]"
},
"virtualNetworkAddressPrefixes": {
"value": "[parameters('virtualNetworkAddressPrefixes')]"
},
"aksSubnetAddressPrefix": {
"value": "[parameters('aksSubnetAddressPrefix')]"
},
"applicationGatewaySubnetAddressPrefix": {
"value": "[parameters('applicationGatewaySubnetAddressPrefix')]"
},
"virtualMachineSubnetAddressPrefix": {
"value": "[parameters('virtualMachineSubnetAddressPrefix')]"
},
"netAppFileSubnetAddressPrefix": {
"value": "[parameters('netAppFileSubnetAddressPrefix')]"
},
"netAppServiceLevel": {
"value": "[parameters('netAppServiceLevel')]"
},
"remoteAccessCIDR": {
"value": "[parameters('remoteAccessCIDR')]"
},
"aksClusterKubernetesVersion": {
"value": "[parameters('aksClusterKubernetesVersion')]"
},
"aksNodePoolAvailabilityZones": {
"value": "[parameters('aksNodePoolAvailabilityZones')]"
},
"aksClusterEnablePrivateCluster": {
"value": "[parameters('aksClusterEnablePrivateCluster')]"
},
"aksClusterSkuTier": {
"value": "[parameters('aksClusterSkuTier')]"
},
"userNodePoolAgentCount": {
"value": "[parameters('userNodePoolAgentCount')]"
},
"userNodePoolVirtualMachineSize": {
"value": "[parameters('userNodePoolVirtualMachineSize')]"
},
"userNodePoolMaxCount": {
"value": "[parameters('userNodePoolMaxCount')]"
},
"userNodePoolMinCount": {
"value": "[parameters('userNodePoolMinCount')]"
},
"systemNodePoolVirtualMachineSize": {
"value": "[parameters('systemNodePoolVirtualMachineSize')]"
},
"aksClusterPodCidr": {
"value": "[parameters('aksClusterPodCidr')]"
},
"aksClusterServiceCidr": {
"value": "[parameters('aksClusterServiceCidr')]"
},
"aksClusterDnsServiceIP": {
"value": "[parameters('aksClusterDnsServiceIP')]"
},
"aksClusterDockerBridgeCidr": {
"value": "[parameters('aksClusterDockerBridgeCidr')]"
},
"PodCPUSize": {
"value": "[parameters('PodCPUSize')]"
},
"PodMemorySize": {
"value": "[parameters('PodMemorySize')]"
},
"PersistentVolumeSize": {
"value": "[parameters('PersistentVolumeSize')]"
},
"virtualMachineSize": {
"value": "[parameters('virtualMachineSize')]"
},
"virtualMachineAdminUsername": {
"value": "[parameters('virtualMachineAdminUsername')]"
},
"virtualMachineAdminPassword": {
"value": "[parameters('virtualMachineAdminPassword')]"
},
"BoomiAuthenticationType": {
"value": "[parameters('BoomiAuthenticationType')]"
},
"BoomiAccountID": {
"value": "[parameters('BoomiAccountID')]"
},
"BoomiUsername": {
"value": "[parameters('BoomiUsername')]"
},
"BoomiMFAAPIToken": {
"value": "[reference('BoomiLicenseValidation').outputs.installationToken.value]"
},
"BoomiPassword": {
"value": "[parameters('BoomiPassword')]"
},
"BoomiMoleculeName":{
"value": "[parameters('BoomiMoleculeName')]"
},
"sslCertificateSecretData": {
"value": "[parameters('sslCertificateSecretData')]"
},
"location" :{
"value": "[parameters('location')]"
},
"_artifactsLocation" :{
"value": "[parameters('_artifactsLocation')]"
}
}
}
}
],
"outputs": {
"licenseValidation": {
"type": "string",
"value": "[reference('BoomiLicenseValidation').outputs.licenseValidation.value]"
},
"virtualMachinePublicIpAddress": {
"type": "string",
"value": "[reference('BoomiQSInfrastructure').outputs.virtualMachinePublicIpAddress.value]"
},
"applicationGatewayPublicIpAddress": {
"type": "string",
"value": "[reference('BoomiQSInfrastructure').outputs.applicationGatewayPublicIpAddress.value]"
},
"netAppFileVolumeIPAddress": {
"type": "string",
"value": "[reference('BoomiQSInfrastructure').outputs.netAppFileVolumeIPAddress.value]"
}
}
}