-
Notifications
You must be signed in to change notification settings - Fork 6
/
createUiDefinition.json
127 lines (127 loc) · 3.9 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
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
{
"$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": {
"basics": {
"subscription": {
"constraints": {
"validations": [
{
"permission": "Microsoft.Authorization/roleDefinitions/write",
"message": "Azure user deploying this Managed Application must have permission to assign roles."
}
]
},
"resourceProviders": [
"Microsoft.Resources",
"Microsoft.OperationalInsights",
"Microsoft.OperationsManagement",
"Microsoft.ContainerService",
"Microsoft.Compute",
"Microsoft.Network",
"Microsoft.Storage"
]
},
"resourceGroup": {
"allowExisting": true
},
"location": {
"visible": true,
"resourceTypes": [
"Microsoft.ContainerService/managedClusters"
]
}
}
},
"basics": [
{
"name": "aksName",
"type": "Microsoft.Common.TextBox",
"label": "AKS Cluster Name",
"defaultValue": "",
"toolTip": "Use only allowed characters",
"constraints": {
"required": true,
"regex": "^[a-z0-9_\\-]{3,63}$",
"validationMessage": "Only alphanumeric, underscores, hyphens, and must be 3-63 characters long."
},
"visible": true
},
{
"name": "nodeSize",
"type": "Microsoft.Compute.SizeSelector",
"label": "Size",
"toolTip": "The size of virtual machines to use for nodes in the cluster",
"recommendedSizes": [
"Standard_DS2_v2",
"Standard_D4s_v3"
],
"options": {
"hideDiskTypeFilter": false
},
"osPlatform": "Linux",
"imageReference": {
"publisher": "Canonical",
"offer": "UbuntuServer",
"sku": "16.04-LTS"
},
"count": 1,
"visible": true
},
{
"name": "nodeCount",
"type": "Microsoft.Common.Slider",
"min": 1,
"max": 10,
"label": "Node Count",
"subLabel": "Nodes",
"defaultValue": 1,
"showStepMarkers": true,
"toolTip": "The number of nodes to provision in the cluster",
"constraints": {
"required": true
},
"visible": true
}
],
"steps": [
{
"name": "managedIdentitySettings",
"label": "Managed Identity Settings",
"subLabel": {
"preValidation": "Configure managed identity settings",
"postValidation": "Done"
},
"bladeTitle": "Managed Identity Settings",
"elements": [
{
"name": "appManagedIdentity",
"type": "Microsoft.ManagedIdentity.IdentitySelector",
"label": "Managed Identity Configuration",
"toolTip": {
"systemAssignedIdentity": "Enable system assigned identity to grant the managed application access to additional existing resources.",
"userAssignedIdentity": "Add user assigned identities to grant the managed application access to additional existing resources."
},
"defaultValue": {
"systemAssignedIdentity": "OnOnly"
},
"options": {
"hideSystemAssignedIdentity": false,
"hideUserAssignedIdentity": true
},
"visible": true
}
]
}
],
"outputs": {
"location": "[location()]",
"aksName": "[basics('aksName')]",
"nodeSize": "[basics('nodeSize')]",
"nodeCount": "[basics('nodeCount')]",
"managedIdentity": "[steps('managedIdentitySettings').appManagedIdentity]"
}
}
}