forked from vmware-archive/bosh-azure-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreateUiDefinition.json
97 lines (97 loc) · 3.42 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
{
"handler": "Microsoft.Compute.MultiVm",
"version": "0.0.1-preview",
"parameters": {
"basics": [
{
"name": "storageAccountNamePrefix",
"type": "Microsoft.Common.TextBox",
"label": "Storage Account Name Prefix",
"defaultValue": "",
"constraints": {
"required": true,
"regex": "^[a-z0-9A-Z]{1,10}$",
"validationMessage": "Only letters and numbers are allowed, and the value must be 1-10 characters long."
}
},
{
"name": "sshKeyData",
"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": true,
"hidePassword": true
},
"osPlatform": "Linux"
},
{
"name": "tenantID",
"type": "Microsoft.Common.TextBox",
"label": "Tenant ID",
"defaultValue": "",
"constraints": {
"required": true,
"regex": "^(([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12})$",
"validationMessage": "Invalid GUID"
}
},
{
"name": "clientID",
"type": "Microsoft.Common.TextBox",
"label": "Client ID",
"defaultValue": "",
"constraints": {
"required": true,
"regex": "^(([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12})$",
"validationMessage": "Invalid GUID"
}
},
{
"name": "clientSecret",
"type": "Microsoft.Common.PasswordBox",
"label": {
"password": "Client Secret"
},
"defaultValue": "",
"options" : {
"hideConfirmation" : true
},
"constraints": {
"required": true
}
},
{
"name": "pivnetAPIToken",
"type": "Microsoft.Common.TextBox",
"label": "Pivotal Network Token",
"defaultValue": "",
"constraints": {
"required": true
}
}
],
"steps": [],
"outputs": {
"storageAccountNamePrefixString": "[basics('storageAccountNamePrefix')]",
"adminSSHKey": "[basics('sshKeyData').sshPublicKey]",
"tenantID": "[basics('tenantID')]",
"clientID": "[basics('clientID')]",
"clientSecret": "[basics('clientSecret')]",
"pivnetAPIToken": "[basics('pivnetAPIToken')]",
"location": "[location()]"
}
}
}