-
Notifications
You must be signed in to change notification settings - Fork 0
/
GlencoreCUIDv3.json
320 lines (320 loc) · 10.6 KB
/
GlencoreCUIDv3.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
{
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#",
"handler": "Microsoft.Azure.CreateUIDef",
"version": "0.1.2-preview",
"parameters": {
"config": {
"isWizard:": false,
"basics": {
"description": "Glencore customized Image with **SentinelOne & MECM** preinstalled. Any Questions click [here](mailto:[email protected]).",
"subscription": {
"constraints": {
"validations": [
{
"isValid": "[not(contains(subscription().displayName, 'Test'))]",
"message": "Can't use test subscription."
},
{
"permission": "Microsoft.Compute/virtualmachines/write",
"message": "Must have write permission for the virtual machine."
},
{
"permission": "Microsoft.Compute/virtualMachines/extensions/write",
"message": "Must have write permission for the extension."
}
]
},
"resourceProviders": [
"Microsoft.Compute"
]
},
"resourceGroup": {
"constraints": {
"validations": [
{
"isValid": "[not(contains(resourceGroup().name, 'testscenario'))]",
"message": "Resource group name can't contain 'test'."
}
]
},
"allowExisting": true
},
"location": {
"label": "Resource group location",
"toolTip": "If an existing resource group has been selected, this is the region of that resource group and is read only. If a new resource group is selected, this is the location that new resource group will be created in.",
"visible": true
}
}
},
"resourceTypes": [
"microsoft.compute/virtualmachines",
"microsoft.resources/resourcegroups"
],
"basics": [
{
"name": "adminUsername",
"type": "Microsoft.Common.TextBox",
"label": "Admin Username",
"defaultValue": "vmadmin",
"toolTip": "Username for the Virtual Machine.",
"constraints": {
"regex": "^(DEAZT|DEAZ1|CAAZ1|GBAZ1)[a-zA-Z]{3}[0-9]{1}[a-zA-Z0-9]{2,4}[PpTtDd][0-9]$"
},
"visible": false
},
{
"name": "OUPath",
"type": "Microsoft.Common.TextBox",
"label": "OU Path",
"defaultValue": "OU=Member Servers,OU=Baar,OU=Europe,DC=ANYACCESS,DC=NET",
"toolTip": "FQDN to the OU this VM should be place in",
"constraints": {
"required": false,
"regex": ".{8,}$",
"validationMessage": "ANYACCESS OU FQDN"
},
"visible": true
},
{
"name": "vmSize",
"type": "Microsoft.Compute.SizeSelector",
"label": "VM Size",
"toolTip": "Choose an appropriate sizing",
"recommendedSizes": [
"Standard_B2ms",
"Standard_B4ms",
"Standard_B8ms",
"Standard_D1",
"Standard_D2",
"Standard_D3"
],
"constraints": {
"allowedSizes": []
},
"options": {
"hideDiskTypeFilter": false
},
"osPlatform": "Windows",
"imageReference": {
"publisher": "MicrosoftWindowsServer",
"offer": "WindowsServer",
"sku": "2019-datacenter-gensecond"
},
"count": 1,
"visible": true
},
{
"name": "Approvedlocation",
"type": "Microsoft.Common.DropDown",
"label": "Glencore Approved Regions",
"toolTip": "You can only deploy into approved Regions",
"constraints": {
"allowedValues": [
{
"label":"germanywestcentral",
"value":"germanywestcentral"
},
{
"label":"uksouth",
"value":"uksouth"
},
{
"label":"canadacentral",
"value":"canadacentral"
}
],
"required": true
},
"visible": true
},
{
"name": "vmName",
"type": "Microsoft.Common.TextBox",
"label": "Vm Name",
"defaultValue": "DEAZTSRV9",
"toolTip": "Name of the virtual machine.",
"multiline": false,
"constraints": {
"required": true,
"regex": "^(DEAZT|DEAZ1|CAAZ1|GBAZ1)[a-zA-Z]{3}[0-9]{1}[a-zA-Z0-9]{2,4}[PpTtDd][0-9]$",
"validationMessage": "Please use a VM naming that adheres to the Global Naming Standard. Eg: CHBARSRV7XXXXP1. GNS can be found here: https://globalit.glencore.net/global-it-operations/Pages/Standards-and-requirements.aspx"
},
"visible": true
},
{
"name": "osName",
"type": "Microsoft.Common.DropDown",
"label": "Operating System",
"defaultValue": "Windows-2019",
"toolTip": "Operating System",
"constraints": {
"required": true,
"allowedValues": [
{
"label": "Windows-2019",
"value": "Windows-2019"
}
]
},
"visible": true
},
{
"name": "imageVersion",
"type": "Microsoft.Common.TextBox",
"label": "Image Version",
"defaultValue": "latest",
"toolTip": "Choose specific image version. Default is latest",
"constraints": {
"required": true
},
"visible": true
}
],
"steps": [
{
"name": "networking",
"label": "Networking",
"elements": [
{
"name": "networkInfo",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "You can NOT create a new vNet, please choose one of the avaiable ones. \n If you require a new virtual Network, please create a Cherwell ticket to request one.",
"link": {
"label": "Request New vNet",
"uri": "https://myit.ch.glencore.net/CherwellPortal/MyIT?_=50793a9a#0"
}
}
},
{
"name": "vnet",
"type": "Microsoft.Network.VirtualNetworkCombo",
"label": {
"virtualNetwork": "Virtual network",
"subnets": "Subnets"
},
"toolTip": {
"virtualNetwork": "Options are filtered based on Subscription and Region",
"subnets": "Options are filtered based on vNet"
},
"defaultValue": {
"name": "DO NOT CREATE NEW VNET",
"addressPrefixSize": "/16"
},
"constraints": {
"minAddressPrefixSize": "/29"
},
"options": {
"hideExisting": false
},
"subnets": {
"subnet1": {
"label": "First subnet",
"defaultValue": {
"name": "subnet-1",
"addressPrefixSize": "/24"
},
"constraints": {
"minAddressPrefixSize": "/29",
"minAddressCount": 1,
"requireContiguousAddresses": true
}
}
},
"visible": true
}
]
},
{
"name": "disk",
"label": "Disks",
"elements": [
{
"name": "disksInfo",
"type": "Microsoft.Common.InfoBox",
"visible": true,
"options": {
"icon": "Info",
"text": "Azure VMs have one operating system disk and a temporary disk for short-term storage. \n Please choose the StorageTier required.",
"uri": "https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview"
}
},
{
"name": "storageType",
"type": "Microsoft.Common.DropDown",
"label": "Storage Options",
"defaultValue": "StandardSSD_LRS",
"toolTip": "Defines the StorageType of your VMs Disks",
"multiselect": false,
"multiLine": false,
"defaultDescription": "A value for selection",
"constraints": {
"allowedValues": [
{
"label": "StandardSSD_LRS",
"description": "Best for web server, lightly used enterprise applications and dev/test.",
"value": "StandardSSD_LRS"
},
{
"label": "PremiumSSD_LRS",
"description": "Best for production and performance sensitive workloads.",
"value": "Premium_LRS"
},
{
"label": "StandardHDD_LRS",
"description": "Best for non-critical and infrequent access",
"value": "Standard_LRS"
}
],
"required": true
},
"visible": true
},
{
"name": "osDiskSize",
"type": "Microsoft.Common.Slider",
"min": 127,
"max": 2000,
"label": "OS Disk",
"subLabel": "GB",
"defaultValue": 127,
"toolTip": "Pick the size in GB",
"constraints": {
"required": false
},
"visible": true
}
]
},
{
"name": "tags",
"label": "Tags",
"elements": [
{
"name": "tagsByResource",
"type": "Microsoft.Common.TagsByResource",
"resources": [
"Microsoft.Compute/virtualMachines"
]
}
]
}
],
"outputs": {
"adminUsername": "[basics('adminUsername')]",
"OUPath": "[basics('OUPath')]",
"vmSize": "[basics('vmSize')]",
"location": "[basics('Approvedlocation')]",
"vmName": "[basics('vmName')]",
"osDiskSize": "[steps('disk').osDiskSize]",
"storageType": "[steps('disk').storageType]",
"vnetName": "[steps('networking').vnet.name]",
"vnetResGroup": "[steps('networking').vnet.resourceGroup]",
"subnetName": "[steps('networking').vnet.subnets.subnet1.name]",
"tagsByResource": "[steps('tags').tagsByResource]",
"osName": "[basics('osName')]",
"imageVersion": "[basics('imageVersion')]"
}
}
}