-
Notifications
You must be signed in to change notification settings - Fork 6
/
createUiDefinition.json
575 lines (549 loc) · 29.1 KB
/
createUiDefinition.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
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
{
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#",
"handler": "Microsoft.Azure.CreateUIDef",
"version": "0.1.2-preview",
"parameters": {
"basics": [
{
"name": "virtualMachineAdminUsername",
"type": "Microsoft.Common.TextBox",
"label": "Username",
"toolTip": "Specifies the name of the administrator account of the virtual machine.",
"constraints": {
"required": true,
"regex": "^(?=[a-zA-Z0-9._]{1,15}$)(?!.*[_.]{2})[^_.].*[^_.]$",
"validationMessage": "Username must be between 1 and 15 characters long and no special characters are allowed"
}
},
{
"name": "virtualMachineAdminPassword",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "Password",
"confirmPassword": "Confirm password"
},
"toolTip": "Specifies the password of the administrator account of the virtual machine.",
"constraints": {
"required": true,
"regex": "^((?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])|(?=.*[0-9])(?=.*[a-z])(?=.*[!@#$%^&*])|(?=.*[0-9])(?=.*[A-Z])(?=.*[!@#$%^&*])|(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*])).{12,72}$",
"validationMessage": "Password must be at least 12 characters long and have 3 out of the following: one number, one lower case, one upper case, or one special character"
},
"options": {
"hideConfirmation": false
}
}
],
"steps": [
{
"name": "AzureInfrastructureConfig",
"label": "Azure Infrastructure",
"subLabel": {
"preValidation": "Configure the azure resources and settings",
"postValidation": "Done"
},
"bladeTitle": "Azure Infrastructure",
"elements": [
{
"name": "virtualNetworkAddressPrefixes",
"type": "Microsoft.Common.TextBox",
"label": "Virtual Network Address Prefixes",
"toolTip": "Specifies the address prefixes of the virtual network.",
"defaultValue": "10.0.0.0/16",
"constraints": {
"required": true,
"regex": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$",
"validationMessage": "Invalid Virtual Network Address Prefix"
}
},
{
"name": "aksSubnetAddressPrefix",
"type": "Microsoft.Common.TextBox",
"label": "AKS Subnet Address Prefix",
"toolTip": "Specifies the address prefix of the subnet hosting the system node pool of the AKS cluster",
"defaultValue": "10.0.0.0/18",
"constraints": {
"required": true,
"regex": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$",
"validationMessage": "Invalid AKS Subnet Address Prefix"
}
},
{
"name": "applicationGatewaySubnetAddressPrefix",
"type": "Microsoft.Common.TextBox",
"label": "Application Gateway Subnet Address Prefix",
"toolTip": "Specifies the address prefix of the subnet which contains the Application Gateway.",
"defaultValue": "10.0.64.0/24",
"constraints": {
"required": true,
"regex": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$",
"validationMessage": "Invalid Gateway Subnet Address Prefix"
}
},
{
"name": "virtualMachineSubnetAddressPrefix",
"type": "Microsoft.Common.TextBox",
"label": "Virtual Machine Subnet Address Prefix",
"toolTip": "Specifies the address prefix of the subnet which contains the virtual machine.",
"defaultValue": "10.0.65.0/24",
"constraints": {
"required": true,
"regex": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$",
"validationMessage": "Invalid Virtual Machine Address Prefix"
}
},
{
"name": "netAppFileSubnetAddressPrefix",
"type": "Microsoft.Common.TextBox",
"label": "NetApp File Subnet Address Prefix",
"toolTip": "Specifies the NetApp File subnet IP prefix. This prefix must be within vnet IP prefix address space.",
"defaultValue": "10.0.66.0/24",
"constraints": {
"required": true,
"regex": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$",
"validationMessage": "Invalid NetApp File Subnet Address Prefix"
}
},
{
"name": "remoteAccessCIDR",
"type": "Microsoft.Common.TextBox",
"label": "Remote Access CIDR",
"toolTip": "The CIDR IP range that is permitted to access the bastion instances. We recommend that you set this value to a trusted IP range.",
"defaultValue": "0.0.0.0/0",
"constraints": {
"required": true,
"regex": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$",
"validationMessage": "Invalid Remote Access CIDR"
}
},
{
"name": "virtualMachineSize",
"type": "Microsoft.Compute.SizeSelector",
"label": "Virtual machine size",
"toolTip": "Virtual machine size for bastion host",
"recommendedSizes": [
"Standard_DS1_v2"
],
"osPlatform": "Linux",
"count": "1"
},
{
"name": "netAppServiceLevel",
"type": "Microsoft.Common.DropDown",
"label": "Net App Service Level",
"toolTip": "Target performance for the capacity pool. Service level: Ultra, Premium, or Standard.",
"defaultValue": "Premium",
"constraints": {
"allowedValues": [
{
"label": "Premium",
"value": "Premium"
},
{
"label": "Ultra",
"value": "Ultra"
},
{
"label": "Standard",
"value": "Standard"
}
],
"required": true
}
},
{
"name": "sslCertificateSecretData",
"type": "Microsoft.Common.TextBox",
"label": "Application Gateway SSL Certificate Data",
"toolTip": "Specifies PFX format ssl certificate base64 encoded key data. This ssl certificate will be attached to application gateway",
"constraints": {
"required": true,
"regex": "^([A-Za-z\\d+/])",
"validationMessage": "Invalid SSL certificate base64 encoded key data"
}
}
]
},
{
"name": "KubernetesConfig",
"label": "Kubernetes",
"subLabel": {
"preValidation": "Configure the virtual machine's resources and settings",
"postValidation": "Done"
},
"bladeTitle": "Kubernetes",
"elements": [
{
"name": "aksClusterKubernetesVersion",
"type": "Microsoft.Common.TextBox",
"label": "AKS Cluster Kubernetes Version",
"toolTip": "Specifies the version of Kubernetes specified when creating the managed cluster.",
"defaultValue": "1.24.9",
"constraints": {
"required": true,
"regex": "^([0-9]{1,3}\\.){2}[0-9]{1,3}$",
"validationMessage": "Invalid Kuberenetes Version"
}
},
{
"name": "aksClusterEnablePrivateCluster",
"type": "Microsoft.Common.CheckBox",
"label": "AKS Cluster Enable Private Cluster",
"toolTip": "Check create the cluster as a private cluster or not."
},
{
"name": "aksClusterSkuTier",
"type": "Microsoft.Common.DropDown",
"label": "AKS Cluster Sku Tier",
"toolTip": "Specifies the tier of a managed cluster SKU: Paid or Free",
"defaultValue": "Paid",
"constraints": {
"allowedValues": [
{
"label": "Paid",
"value": "Paid"
},
{
"label": "Free",
"value": "Free"
}
],
"required": true
}
},
{
"name": "systemNodePoolVirtualMachineSize",
"type": "Microsoft.Compute.SizeSelector",
"label": "System Node Pool Virtual Machine Size",
"toolTip": "Specifies the vm size of nodes in the system node pool.AKS requires nodes to use VM sizes with at least 2 CPUs",
"recommendedSizes": [
"Standard_D4_v4"
],
"osPlatform": "Linux",
"count": "1"
},
{
"name": "userNodePoolVirtualMachineSize",
"type": "Microsoft.Compute.SizeSelector",
"label": "User Node Pool Virtual Machine Size",
"toolTip": "Specifies the vm size of nodes in the user node pool.AKS requires nodes to use VM sizes with at least 2 CPUs",
"recommendedSizes": [
"Standard_D4_v4"
],
"osPlatform": "Linux",
"count": "1"
},
{
"name": "aksClusterServiceCidr",
"type": "Microsoft.Common.TextBox",
"label": "AKS Cluster Service Cidr",
"toolTip": "A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges.",
"defaultValue": "10.0.67.0/24",
"constraints": {
"required": true,
"regex": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$",
"validationMessage": "Invalid AKS Cluster Service CIDR"
}
},
{
"name": "aksClusterDnsServiceIP",
"type": "Microsoft.Common.TextBox",
"label": "AKS Cluster Dns Service IP",
"toolTip": "Specifies the IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr.",
"defaultValue": "10.0.67.10",
"constraints": {
"required": true,
"regex": "^([0-9]{1,3}\\.){3}[0-9]{1,3}$",
"validationMessage": "Invalid DNS Service IP Address"
}
},
{
"name": "aksClusterPodCidr",
"type": "Microsoft.Common.TextBox",
"label": "AKS Cluster Pod Cidr",
"toolTip": "Specifies the CIDR notation IP range from which to assign pod IPs when kubenet is used.",
"defaultValue": "10.0.0.0/18",
"constraints": {
"required": true,
"regex": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$",
"validationMessage": "Invalid AKS Cluster Pod CIDR"
}
},
{
"name": "aksClusterDockerBridgeCidr",
"type": "Microsoft.Common.TextBox",
"label": "AKS Cluster Docker Bridge Cidr",
"toolTip": "Specifies the CIDR notation IP range from which to assign pod IPs when kubenet is used.",
"defaultValue": "172.17.0.1/16",
"constraints": {
"required": true,
"regex": "^([0-9]{1,3}\\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$",
"validationMessage": "Invalid AKS Cluster Docker Bridge CIDR"
}
},
{
"name": "aksNodePoolAvailabilityZones",
"type": "Microsoft.Common.DropDown",
"multiselect": true,
"selectAll": false,
"label": "AKS Node Pool Availability Zones",
"toolTip": "Specifies the availability zones for the agent nodes in the node pools.",
"defaultValue": "1",
"constraints": {
"allowedValues": [
{
"label": "1",
"description": "The value to select for option 1.",
"value": "1"
},
{
"label": "2",
"description": "The value to select for option 2.",
"value": "2"
},
{
"label": "3",
"description": "The value to select for option 2.",
"value": "3"
}
]
}
},
{
"name": "userNodePoolAgentCount",
"type": "Microsoft.Common.TextBox",
"label": "User Node Pool Agent Count",
"toolTip": "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 3.",
"defaultValue": "3",
"constraints": {
"required": true,
"regex": "^[1-9][0-9]?$|^100$",
"validationMessage": "Number of agents should be less than or equal to 100 without leading zeros"
}
},
{
"name": "userNodePoolMinCount",
"type": "Microsoft.Common.TextBox",
"label": "User Node Pool Min Count",
"toolTip": "Specifies the minimum number of nodes for auto-scaling for the user node pool.",
"defaultValue": "3",
"constraints": {
"required": true,
"regex": "^(?:[1-9]|[1-9]|10)$",
"validationMessage": "Minimum number of nodes should be less than or equal to 10 without leading zeros"
}
},
{
"name": "userNodePoolMaxCount",
"type": "Microsoft.Common.TextBox",
"label": "User Node Pool Max Count",
"toolTip": "Specifies the maximum number of nodes for auto-scaling for the user node pool.",
"defaultValue": "10",
"constraints": {
"required": true,
"regex": "^(?:[1-9]|[1-9]|10)$",
"validationMessage": "Maximum number of nodes should be less than or equal to 10 without leading zeros"
}
},
{
"name": "PodCPUSize",
"type": "Microsoft.Common.DropDown",
"label": "Pod CPU Size",
"toolTip": "Specifies Pod limit CPU Size",
"defaultValue": "1000m",
"constraints": {
"allowedValues": [
{
"label": "1000m",
"value": "1000m"
},
{
"label": "2000m",
"value": "2000m"
}
],
"required": true
}
},
{
"name": "PodMemorySize",
"type": "Microsoft.Common.DropDown",
"label": "Pod Memory Size",
"toolTip": "Specifies Pod limit Memory Size",
"defaultValue": "1024Mi",
"constraints": {
"allowedValues": [
{
"label": "512Mi",
"value": "512Mi"
},
{
"label": "1024Mi",
"value": "1024Mi"
},
{
"label": "2064Mi",
"value": "2064Mi"
}
],
"required": true
}
},
{
"name": "PersistentVolumeSize",
"type": "Microsoft.Common.DropDown",
"label": "Persistent Volume Size",
"toolTip": "Specifies persistent volume size",
"defaultValue": "250Gi",
"constraints": {
"allowedValues": [
{
"label": "250Gi",
"value": "250Gi"
},
{
"label": "500Gi",
"value": "500Gi"
}
],
"required": true
}
}
]
},
{
"name": "BoomiConfig",
"label": "Boomi",
"subLabel": {
"preValidation": "Configure the boomi settings",
"postValidation": "Done"
},
"bladeTitle": "Boomi",
"elements": [
{
"name": "BoomiAuthenticationType",
"type": "Microsoft.Common.DropDown",
"label": "Boomi Authentication Type",
"toolTip": "Boomi Platform Authentication Type",
"defaultValue": "Token",
"constraints": {
"allowedValues": [
{
"label": "Password",
"value": "Password"
},
{
"label": "Token",
"value": "Token"
}
],
"required": true
}
},
{
"name": "BoomiUsername",
"type": "Microsoft.Common.TextBox",
"label": "Boomi User name",
"toolTip": "The email account associated with the Boomi account.",
"constraints": {
"required": true,
"regex": "^.+@.+$",
"validationMessage": "The AtomSphere user name must be an email address"
}
},
{
"name": "BoomiPassword",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "Boomi Password",
"confirmPassword": "Boomi Confirm password"
},
"toolTip": "Boomi password needed when authentication type is Password",
"options": {
"hideConfirmation": false
},
"constraints": {
"required": true
},
"visible": "[if(equals(steps('BoomiConfig').BoomiAuthenticationType,'Password'),true,false)]"
},
{
"name": "BoomiMFAAPIToken",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "Boomi AtomSphere API Token",
"confirmPassword": "Confirm Boomi AtomSphere API Token"
},
"toolTip": "Boomi token needed when authentication type is Token",
"options": {
"hideConfirmation": false
},
"constraints": {
"required": true
},
"visible": "[if(equals(steps('BoomiConfig').BoomiAuthenticationType,'Token'),true,false)]"
},
{
"name": "BoomiAccountID",
"type": "Microsoft.Common.TextBox",
"label": "Boomi Account ID",
"toolTip": "The Boomi account ID that you want to associate with the new Molecule cluster.",
"constraints": {
"required": true,
"regex": "^\\w{1,25}-\\w{6}$",
"validationMessage": "Account ID is not valid. It can be found on the Account Information tab in the Setup page."
}
},
{
"name": "BoomiMoleculeName",
"type": "Microsoft.Common.TextBox",
"label": "Boomi Molecule Name",
"toolTip": "The name for the Boomi Molecule cluster.",
"defaultValue": "Boomi_Molecule_AKS",
"constraints": {
"required": true,
"regex": "^.{1,255}$",
"validationMessage": "Molecule name must be between 1 and 255 characters long"
}
}
]
}
],
"outputs":
{
"location": "[location()]",
"virtualMachineAdminUsername": "[basics('virtualMachineAdminUsername')]",
"virtualMachineAdminPassword": "[basics('virtualMachineAdminPassword')]",
"virtualNetworkAddressPrefixes": "[steps('AzureInfrastructureConfig').virtualNetworkAddressPrefixes]",
"aksSubnetAddressPrefix": "[steps('AzureInfrastructureConfig').aksSubnetAddressPrefix]",
"applicationGatewaySubnetAddressPrefix": "[steps('AzureInfrastructureConfig').applicationGatewaySubnetAddressPrefix]",
"virtualMachineSubnetAddressPrefix": "[steps('AzureInfrastructureConfig').virtualMachineSubnetAddressPrefix]",
"netAppFileSubnetAddressPrefix": "[steps('AzureInfrastructureConfig').netAppFileSubnetAddressPrefix]",
"remoteAccessCIDR": "[steps('AzureInfrastructureConfig').remoteAccessCIDR]",
"virtualMachineSize": "[steps('AzureInfrastructureConfig').virtualMachineSize]",
"netAppServiceLevel": "[steps('AzureInfrastructureConfig').netAppServiceLevel]",
"sslCertificateSecretData": "[steps('AzureInfrastructureConfig').sslCertificateSecretData]",
"aksClusterKubernetesVersion": "[steps('KubernetesConfig').aksClusterKubernetesVersion]",
"aksClusterEnablePrivateCluster": "[steps('KubernetesConfig').aksClusterEnablePrivateCluster]",
"aksClusterSkuTier": "[steps('KubernetesConfig').aksClusterSkuTier]",
"systemNodePoolVirtualMachineSize": "[steps('KubernetesConfig').systemNodePoolVirtualMachineSize]",
"userNodePoolVirtualMachineSize": "[steps('KubernetesConfig').userNodePoolVirtualMachineSize]",
"aksClusterServiceCidr": "[steps('KubernetesConfig').aksClusterServiceCidr]",
"aksClusterDnsServiceIP": "[steps('KubernetesConfig').aksClusterDnsServiceIP]",
"aksClusterPodCidr": "[steps('KubernetesConfig').aksClusterPodCidr]",
"aksClusterDockerBridgeCidr": "[steps('KubernetesConfig').aksClusterDockerBridgeCidr]",
"aksNodePoolAvailabilityZones": "[if(equals(steps('KubernetesConfig').aksNodePoolAvailabilityZones, '1'), parse(concat('[\"', steps('KubernetesConfig').aksNodePoolAvailabilityZones,'\"]')), steps('KubernetesConfig').aksNodePoolAvailabilityZones)]",
"userNodePoolAgentCount": "[int(steps('KubernetesConfig').userNodePoolAgentCount)]",
"userNodePoolMinCount": "[int(steps('KubernetesConfig').userNodePoolMinCount)]",
"userNodePoolMaxCount": "[int(steps('KubernetesConfig').userNodePoolMaxCount)]",
"PodCPUSize": "[steps('KubernetesConfig').PodCPUSize]",
"PodMemorySize": "[steps('KubernetesConfig').PodMemorySize]",
"PersistentVolumeSize": "[steps('KubernetesConfig').PersistentVolumeSize]",
"BoomiAuthenticationType": "[steps('BoomiConfig').BoomiAuthenticationType]",
"BoomiAccountID": "[steps('BoomiConfig').BoomiAccountID]",
"BoomiUsername": "[steps('BoomiConfig').BoomiUsername]",
"BoomiPassword": "[steps('BoomiConfig').BoomiPassword]",
"BoomiMFAAPIToken": "[steps('BoomiConfig').BoomiMFAAPIToken]",
"BoomiMoleculeName": "[steps('BoomiConfig').BoomiMoleculeName]"
}
}
}