forked from saurabhtrekker/azure1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateUiDefinition3.json
138 lines (138 loc) · 4.72 KB
/
CreateUiDefinition3.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
{
"handler": "Microsoft.Compute.MultiVm",
"version": "0.0.1-preview",
"parameters": {
"basics": [
{
"name": "adminUsername",
"type": "Microsoft.Compute.UserNameTextBox",
"label": "Username",
"toolTip": "Admin username for the virtual machines. Same Credientials is to SSH to the box.",
"osPlatform": "Linux"
},
{
"name": "SSHCredntials",
"type": "Microsoft.Compute.CredentialsCombo",
"label": {
"authenticationType": "Authentication type",
"password": "Password",
"confirmPassword": "Confirm password",
"sshPublicKey": "SSH public key"
},
"toolTip": {
"authenticationType": "",
"password": "",
"sshPublicKey": ""
},
"constraints": {
"required": true
},
"options": {
"hideConfirmation": false
},
"osPlatform": "Linux"
},
{
"name": "userImageStorageAccountName",
"type": "Microsoft.Common.TextBox",
"label": "Storage Account Name",
"toolTip": "Storage Account Name",
"constraints": {
"required": true,
"regex": "^[a-z0-9](?:[a-z0-9]|(\\-(?!\\-))){1,61}[a-z0-9]$|^\\$root$",
"validationMessage": "names must be between 3 and 24 characters long, and can contain only numbers and lowercase letters."
},
"osPlatform": "Linux"
},
{
"name": "IPAddressPrefix",
"type": "Microsoft.Common.TextBox",
"label": "Source IP address prefix to use for VNET",
"toolTip": "Source IP prefix for vnet",
"defaultValue": "192.168",
"osPlatform": "Linux"
},
{
"name": "srcIPInboundNSG",
"type": "Microsoft.Common.TextBox",
"label": "NSG InBound source-IP",
"toolTip": "NSG InBound source-IP",
"defaultValue": "199.167.55.50",
"constraints": {
"required": true,
"regex": "(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(/([1-2]d|3[0-2]|d))",
"validationMessage": "names must be between 3 and 24 characters long, and can contain only numbers and lowercase letters."
},
"osPlatform": "Linux"
},
{
"name": "vmName",
"type": "Microsoft.Common.TextBox",
"label": "Name of the PA-VM",
"toolTip": "PA-VM Name",
"constraints": {
"required": true,
"regex": "^[a-z0-9]{8,24}$",
"validationMessage": "names must be between 8 and 24 characters long, and can contain only numbers and lowercase letters."
},
"osPlatform": "Linux"
},
{
"name": "dnsNameForPublicIP",
"type": "Microsoft.Common.TextBox",
"label": "DNS name for public IP of the mgmt interface",
"toolTip": "DNS name",
"constraints": {
"required": true,
"regex": "^[a-z0-9]{8,24}$",
"validationMessage": "names must be between 8 and 24 characters long, and can contain only numbers and lowercase letters."
},
"osPlatform": "Linux"
}
],
"steps": [
{
"name": "SamplePANVMConfig",
"label": "Palo Alto Networks VM config",
"subLabel": {
"preValidation": "Configure PA-VM",
"postValidation": "Done"
},
"bladeTitle": "Palo Alto Networks VM config",
"elements": [
{
"name": "vmSize",
"type": "Microsoft.Compute.SizeSelector",
"label": "Virtual machine size",
"toolTip": "The size of virtual machine to provision for each cluster node.",
"recommendedSizes": [
"Standard_D3"
],
"constraints": {
"allowedSizes": [
"Standard_D3",
"Standard_D4"
]
},
"osPlatform": "Linux",
"imageReference": {
"publisher": "Canonical",
"offer": "UbuntuServer",
"sku": "14.04.2-LTS"
}
}
]
}
],
"outputs": {
"userImageStorageAccountName": "[basics('userImageStorageAccountName')]",
"IPAddressPrefix": "[basics('IPAddressPrefix')]",
"srcIPInboundNSG": "[basics('srcIPInboundNSG')]",
"vmName": "[basics('vmName')]",
"dnsNameForPublicIP": "[basics('dnsNameForPublicIP')]",
"adminUsername": "[basics('adminUsername')]",
"vmSize": "[steps('SamplePANVMConfig').vmSize]",
"adminPassword": "[basics('SSHCredntials').password]"
}
}
}