-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcreateUiDefinition.json
More file actions
56 lines (56 loc) · 2.54 KB
/
Copy pathcreateUiDefinition.json
File metadata and controls
56 lines (56 loc) · 2.54 KB
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
{
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#",
"handler": "Microsoft.Azure.CreateUIDef",
"version": "0.1.2-preview",
"parameters": {
"basics": [
{
"name": "namePrefix",
"type": "Microsoft.Common.TextBox",
"label": "Name prefix",
"defaultValue": "",
"toolTip": "3-12 lowercase letters/digits. Used to name <prefix>-aoai and <prefix>-cache. Leave blank to auto-generate.",
"placeholder": "auto-generated if left blank (e.g. cc7f3a2b1c0d)",
"constraints": {
"required": false,
"regex": "^$|^[a-z0-9]{3,12}$",
"validationMessage": "3-12 lowercase letters or digits, or leave empty to auto-generate."
},
"visible": true
},
{
"name": "useExistingAoai",
"type": "Microsoft.Common.OptionsGroup",
"label": "Azure OpenAI account",
"defaultValue": "Create new",
"toolTip": "Create a brand-new AOAI account, or attach the cache to an existing one in this resource group (skips S0 account-quota usage).",
"constraints": {
"allowedValues": [
{ "label": "Create new", "value": "new" },
{ "label": "Use existing in this resource group", "value": "existing" }
],
"required": true
}
},
{
"name": "existingAoaiAccountName",
"type": "Microsoft.Common.TextBox",
"label": "Existing AOAI account name",
"defaultValue": "",
"toolTip": "Name of an Azure OpenAI (Cognitive Services) account that already exists in the selected resource group.",
"placeholder": "e.g. my-aoai-account",
"constraints": {
"required": true,
"regex": "^[a-zA-Z0-9-]{2,64}$",
"validationMessage": "Enter a valid Cognitive Services account name."
},
"visible": "[equals(basics('useExistingAoai'), 'existing')]"
}
],
"steps": [],
"outputs": {
"namePrefix": "[basics('namePrefix')]",
"existingAoaiAccountName": "[if(equals(basics('useExistingAoai'), 'existing'), basics('existingAoaiAccountName'), '')]"
}
}
}