forked from saurabhtrekker/azure1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateUiDefinition4.json
238 lines (238 loc) · 8.5 KB
/
CreateUiDefinition4.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
{
"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": "ipAddressPrefix",
"type": "Microsoft.Common.TextBox",
"label": "VNET IP address prefix to use for VNET",
"toolTip": "VNET 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/32",
"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](?:[a-z0-9]|(\\-(?!\\-))){8,24}[a-z0-9]$|^\\$root$",
"validationMessage": "names must be between 8 and 24 characters long, and can contain numbers, lowercase letters and dash"
},
"osPlatform": "Linux"
}
],
"steps": [
{
"name": "panvnetconfig",
"label": "Networking Configuration",
"subLabel": {
"preValidation": "Configure PA-VM's networking",
"postValidation": "Done"
},
"bladeTitle": "Configure PA-VM's networking",
"elements": [
{
"name": "vnetSpec",
"type": "Microsoft.Network.VirtualNetworkCombo",
"label": {
"virtualNetwork": "Virtual network",
"subnets": "Subnets"
},
"toolTip": {
"virtualNetwork": "",
"subnets": ""
},
"defaultValue": {
"name": "panVnet",
"addressPrefixSize": "/16"
},
"constraints": {
"minAddressPrefixSize": "/29"
},
"subnets": {
"subnet0": {
"label": "Management Subnet",
"defaultValue": {
"name": "Mgmt",
"addressPrefixSize": "/24"
},
"constraints": {
"minAddressPrefixSize": "/29",
"minAddressCount": 1,
"requireContiguousAddresses": true
}
},
"subnet1": {
"label": "Untrust Subnet",
"defaultValue": {
"name": "Untrust",
"addressPrefixSize": "/24"
},
"constraints": {
"minAddressPrefixSize": "/29",
"minAddressCount": 4,
"requireContiguousAddresses": true
}
},
"subnet2": {
"label": "Trust Subnet",
"defaultValue": {
"name": "Trust",
"addressPrefixSize": "/24"
},
"constraints": {
"minAddressPrefixSize": "/29",
"minAddressCount": 4,
"requireContiguousAddresses": true
}
}
}
},
{
"name": "newStorageAccount",
"type": "Microsoft.Storage.StorageAccountSelector",
"label": "Storage Account Name",
"defaultValue": {
"type": "Standard_LRS"
}
}
]
},
{
"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",
"Standard_D4"
],
"constraints": {
"allowedSizes": [
"Standard_D3",
"Standard_D4"
]
},
"osPlatform": "Linux",
"imageReference": {
"publisher": "paloaltonetworks",
"offer": "vm-series-testpass1-preview",
"sku": "vmseriesbyol"
}
}, {
"name": "imageSku",
"type": "Microsoft.Common.DropDown",
"label": "Image SKU for PANW firewall",
"defaultValue": "VM Series BYOL",
"toolTip": "Image SKU for PANW firewall",
"constraints": {
"allowedValues": [
{
"label": "VM Series BYOL",
"value": "vmseriesboyl"
},
{
"label": "VM Series Bundle1",
"value": "vmseriesbundle1"
},
{
"label": "VM Series Bundle2",
"value": "vmseriesbundle2"
}
],
"required": true
}
}, {
"name": "imageOffer",
"type": "Microsoft.Common.DropDown",
"label": "Image Offer of PANW firewall",
"defaultValue": "VM Series TestPass1 Preview",
"toolTip": "Image Offer of PANW firewall",
"constraints": {
"allowedValues": [
{
"label": "VM Series TestPass1 Preview",
"value": "vm-series-testpass1-preview"
}
],
"required": true
}
}
]
}
],
"outputs": {
"newStorageAccount": "[basics('newStorageAccount')]",
"ipAddressPrefix": "[basics('ipAddressPrefix')]",
"srcIPInboundNSG": "[basics('srcIPInboundNSG')]",
"vmName": "[basics('vmName')]",
"adminUsername": "[basics('adminUsername')]",
"vmSize": "[steps('SamplePANVMConfig').vmSize]",
"adminPassword": "[basics('SSHCredntials').password]",
"imageOffer": "[steps('SamplePANVMConfig').imageOffer]",
"imageSku": "[steps('SamplePANVMConfig').imageSku]",
"virtualNetworkName": "[steps('panvnetconfig').vnetSpec.name]",
"virtualNetworkNewOrExisting": "[steps('panvnetconfig').vnetSpec.newOrExisting]",
"virtualNetworkExistingRGName": "[steps('panvnetconfig').vnetSpec.resourceGroup]",
"virtualNetworkAddressPrefix": "[steps('panvnetconfig').vnetSpec.addressPrefix]",
"subnet0Name": "[steps('panvnetconfig').vnetSpec.subnets.subnet0.name]",
"subnet1Name": "[steps('panvnetconfig').vnetSpec.subnets.subnet1.name]",
"subnet2Name": "[steps('panvnetconfig').vnetSpec.subnets.subnet2.name]",
"subnet0Prefix": "[steps('panvnetconfig').vnetSpec.subnets.subnet0.addressPrefix]",
"subnet1Prefix": "[steps('panvnetconfig').vnetSpec.subnets.subnet1.addressPrefix]",
"subnet2Prefix": "[steps('panvnetconfig').vnetSpec.subnets.subnet2.addressPrefix]",
"subnet0StartAddress": "[steps('panvnetconfig').vnetSpec.subnets.subnet0.startAddress]",
"subnet1StartAddress": "[steps('panvnetconfig').vnetSpec.subnets.subnet1.startAddress]",
"subnet2StartAddress": "[steps('panvnetconfig').vnetSpec.subnets.subnet2.startAddress]"
}
}
}