Merge pull request #69 from Azure/portal_ui

Portal UI
This commit is contained in:
Marvin Buss 2021-05-03 16:31:49 +02:00 коммит произвёл GitHub
Родитель f7fa8227f3 428b55d629
Коммит 930b4bcd4f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 168 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,168 @@
{
"$schema": "<relative path to createFormUI.schema.json>",
"view": {
"kind": "Form",
"properties": {
"title": "Enterprise-Scale Analytics & AI",
"steps": [
{
"name": "basics",
"label": "Basics",
"elements": [
{
"name": "resourceScope",
"type": "Microsoft.Common.ResourceScope"
}
]
},
{
"name": "landingZoneSettings",
"label": "Enterprise-Scale company prefix",
"subLabel": {
"preValidation": "Provide a company prefix that will be used as prefix for all resources.",
"postValidation": "Done"
},
"bladeTitle": "Company prefix",
"bladeSubtitle": "Company prefix",
"elements": [
{
"name": "infoBox",
"type": "Microsoft.Common.InfoBox",
"visible": true,
"options": {
"text": "Enterprise-Scale Analytics & AI requires access to at least one subscription. Ensure that you have access to the specified subscriptions.",
"style": "Info"
}
},
{
"name": "enterpriseScaleAnalyticsCompanyPrefix",
"label": "Enterprise-Scale company prefix",
"type": "Microsoft.Common.TextBox",
"visible": true,
"toolTip": "Provide a prefix (max 10 characters, unique at tenant-scope) for the Management Group hierarchy and other resources created as part of Enterprise-scale.",
"defaultValue": "",
"constraints": {
"required": true,
"regex": "^[a-z0-9A-Z-]{1,10}$",
"validationMessage": "The prefix must be 1-10 characters."
}
}
]
},
{
"name": "connectivitySettings",
"label": "Connectivity",
"subLabel": {
"preValidation": "",
"postValidation": ""
},
"bladeTitle": "Connectivity Settings",
"bladeSubtitle": "Connectivity Settings",
"elements": [
{
"name": "addressSpace",
"label": "Address space",
"type": "Microsoft.Common.TextBox",
"visible": true,
"toolTip": "Provide address prefix in CIDR notation (e.g 10.200.0.0/16)",
"defaultValue": "10.200.0.0/16",
"constraints": {
"required": true,
"validationMessage": "The virtual hubs network's address space, specified as one address prefixes in CIDR notation (e.g. 10.200.0.0/16)."
}
},
{
"name": "infoBox",
"type": "Microsoft.Common.InfoBox",
"visible": true,
"options": {
"text": "Enterprise-Scale Analytics & AI allows you to leverage your existing network infrastructure or deploy a new centralized network infrastructure.",
"style": "Info"
}
},
{
"name": "enableDnsAndFirewall",
"label": "Deploy Firewall and Private DNS Zones",
"type": "Microsoft.Common.OptionsGroup",
"visible": true,
"toolTip": "If 'Yes' is selected a Firewall and Private DNS Zones will be added to the Data Management Zone.",
"defaultValue": "Yes",
"constraints": {
"allowedValues": [
{
"label": "Yes",
"value": "Yes"
},
{
"label": "No",
"value": "No"
}
]
}
},
{
"name": "dnsServerAddresses",
"label": "DNS Server Private IP Addresses",
"type": "Microsoft.Common.TextBox",
"visible": "[equals(steps('connectivitySettings').enableDnsAndFirewall, 'No')]",
"toolTip": "Provide the private IP addresses of your DNS forwarders (e.g '10.100.0.1,10.100.0.2').",
"defaultValue": "10.0.0.4",
"constraints": {
"required": true,
"validationMessage": "Private IP addresses of the DNS forwarders (e.g '10.100.0.1,10.100.0.2')."
}
},
{
"name": "firewallAddress",
"label": "Firewall Private IP Address",
"type": "Microsoft.Common.TextBox",
"visible": "[equals(steps('connectivitySettings').enableDnsAndFirewall, 'No')]",
"toolTip": "Provide the private IP address of your Firewall (e.g 10.100.0.1).",
"defaultValue": "10.0.0.4",
"constraints": {
"required": true,
"validationMessage": "Private IPs of the Firewall (e.g 10.100.0.1)."
}
},
{
"name": "resourceGroupsApi",
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "resourceGroups?api-version=2020-06-01"
}
},
{
"name": "privateDnsZoneResourceGroup",
"label": "Private DNS Zone resource group",
"type": "Microsoft.Common.DropDown",
"visible": "[equals(steps('connectivitySettings').enableDnsAndFirewall, 'No')]",
"toolTip": "Provide the resource group reference in which all private DNS zones are deployed.",
"multiselect": false,
"selectAll": true,
"filter": true,
"filterPlaceholder": "Filter items ...",
"multiLine": true,
"constraints": {
"allowedValues": "[map(steps('connectivitySettings').resourceGroupsApi.value, (resourceGroup) => parse(concat('{\"label\":\"', resourceGroup.name, '\",\"description\":\"', resourceGroup.location, '\",\"value\":\"', toLower(resourceGroup.id),'\"}')))]",
"required": true
}
}
]
}
]
},
"outputs": {
"kind": "Subscription",
"location": "[steps('basics').resourceScope.location.name]",
"parameters": {
"enterpriseScaleAnalyticsCompanyPrefix": "[steps('landingZoneSettings').enterpriseScaleAnalyticsCompanyPrefix]",
"enableDnsAndFirewall": "[equals(steps('connectivitySettings').enableDnsAndFirewall, 'Yes')]",
"dnsServerAdresses": "[split(replace(steps('connectivitySettings').dnsServerAddresses, ' ', ''), ',')]",
"firewallPrivateIp": "[steps('connectivitySettings').firewallAddress]",
"privateDnsZoneResourceGroupId": "[steps('connectivitySettings').privateDnsZoneResourceGroup]"
}
}
}
}