This repository was archived by the owner on May 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcreateUiDefinition.json
75 lines (75 loc) · 2.25 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
{
"handler": "Microsoft.Compute.MultiVm",
"version": "0.1.2-preview",
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#",
"parameters": {
"basics": [
{
"name": "vmName",
"type": "Microsoft.Common.TextBox",
"label": "Name",
"toolTip": "The name of the virtual machine.",
"constraints": {
"required": true,
"regex": "^[a-zA-Z][a-zA-Z0-9-]{2,13}[a-zA-Z0-9]$",
"validationMessage": "VM names must be between 3 and 15 characters long, and can contain only numbers, letters, and hyphens."
}
},
{
"name": "adminUsername",
"type": "Microsoft.Compute.UserNameTextBox",
"label": "User name",
"toolTip": "Admin username for the virtual machines.",
"osPlatform": "Windows"
},
{
"name": "adminPassword",
"type": "Microsoft.Compute.CredentialsCombo",
"label": {
"password": "Password",
"confirmPassword": "Confirm password"
},
"toolTip": {
"password": "Admin password for the virtual machines."
},
"osPlatform": "Windows"
}
],
"steps": [
{
"name": "infrastructureConfig",
"label": "Settings",
"subLabel": {
"preValidation": "Configure additional settings",
"postValidation": "Done"
},
"bladeTitle": "Settings",
"elements": [
{
"name": "vmSize",
"type": "Microsoft.Compute.SizeSelector",
"label": "Virtual machine size",
"toolTip": "The size of the virtual machine.",
"recommendedSizes": [
"Standard_F8s_v2",
"Standard_F16s_v2",
"Standard_F32s_v2",
"Standard_F72s_v2"
],
"constraints": {
"required": true
},
"osPlatform": "Windows"
}
]
}
],
"outputs": {
"adminUsername": "[basics('adminUsername')]",
"adminPassword": "[basics('adminPassword').password]",
"vmSize": "[steps('infrastructureConfig').vmSize]",
"vmName": "[basics('vmName')]",
"location": "[location()]"
}
}
}