Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file-new-lz #272

Merged
merged 1 commit into from
Oct 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions docs/reference/lzs/armTemplates/eslz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"subscriptions": {
"type": "array"
},
"billingAccount": {
"type": "string"
}
},
"variables": {
},
"resources": [
{
// Routing the request to the tenant root to PUT subscriptions
// "scope": "/", //commenting out this property as it is not available in all regions yet. Once available, you can deploy this as management group deployment instead of tenant deployment
"name": "[concat(parameters('subscriptions')[copyIndex()].esSubName)]",
"type": "Microsoft.Subscription/aliases",
"apiVersion": "2020-09-01",
"copy": {
"name": "subAliasCopy",
"count": "[length(parameters('subscriptions'))]"
},
"properties": {
"workLoad": "Production",
"displayName": "[concat(parameters('subscriptions')[copyIndex()].esSubName)]",
"billingScope": "[parameters('billingAccount')]",
"managementGroupId": "[tenantResourceId('Microsoft.Management/managementGroups/', concat(parameters('subscriptions')[copyIndex()].esMgSelection))]"
}
}
],
"outputs": {
}
}
151 changes: 151 additions & 0 deletions docs/reference/lzs/armTemplates/portal-eslz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
{
"handler": "Microsoft.Azure.CreateUIDef",
"version": "0.1.2-preview",
"parameters": {
"basics": [
{}
],
"steps": [
{
"name": "lzSettings",
"label": "Create Enterprise-Scale landing zones",
"bladeTitle": "Company prefix",
"elements": [
{
"name": "textBlock0",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "Select the billing account and enrollment account used for subscription provisioning.",
"link": {
"label": "Learn more",
"uri": "https://docs.microsoft.com/azure/cloud-adoption-framework/ready/enterprise-scale/enterprise-enrollment-and-azure-ad-tenants"
}
}
},
{
"name": "mgApi",
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "providers/Microsoft.Management/managementGroups?api-version=2020-02-01"
}
},
{
"name": "esBillingApi",
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "providers/Microsoft.Billing/billingAccounts?api-version=2020-05-01"
}
},
{
"name": "esBillingAccount",
"type": "Microsoft.Common.DropDown",
"label": "Billing Account",
"toolTip": "",
"multiselect": false,
"selectAll": true,
"filter": true,
"filterPlaceholder": "Filter items ...",
"multiLine": true,
"visible": true,
"constraints": {
"allowedValues": "[map(steps('lzSettings').esBillingApi.value, (billing) => parse(concat('{\"label\":\"', billing.properties.displayName, '\",\"description\":\"', billing.id, '\",\"value\":\"', toLower(billing.id), '\"}')) )]",
"required": true
}
},
{
"name": "esEaApi",
"type": "Microsoft.Solutions.ArmApiControl",
"request": {
"method": "GET",
"path": "[concat(steps('lzSettings').esBillingAccount, '/enrollmentAccounts/', '?api-version=2019-10-01-preview')]"
}
},
{
"name": "esEa",
"type": "Microsoft.Common.DropDown",
"label": "Enrollment Account",
"toolTip": "",
"multiselect": false,
"selectAll": true,
"filter": true,
"filterPlaceholder": "Filter items ...",
"multiLine": true,
"visible": true,
"constraints": {
"allowedValues": "[map(steps('lzSettings').esEaApi.value, (ea) => parse(concat('{\"label\":\"', ea.properties.displayName, '\",\"description\":\"', ea.id, '\",\"value\":\"', toLower(ea.id), '\"}')) )]",
"required": true
}
},
{
"name": "textBlock1",
"type": "Microsoft.Common.TextBlock",
"visible": true,
"options": {
"text": "Select target management group for each subscription you will create",
"link": {
"label": "Learn more",
"uri": "https://docs.microsoft.com/azure/cloud-adoption-framework/ready/enterprise-scale/management-group-and-subscription-organization"
}
}
},
{
"name": "esSubscription",
"type": "Microsoft.Common.EditableGrid",
"ariaLabel": "Select management group and provide subscription name",
"label": "Subscriptions",
"constraints": {
"width": "Medium",
"rows": {
"count": {
"min": 1,
"max": 10
}
},
"columns": [
{
"id": "esMgSelection",
"header": "Management group",
"width": "1fr",
"element": {
"name": "dropDown1",
"type": "Microsoft.Common.DropDown",
"placeholder": "Select Management Group",
"constraints": {
"allowedValues": "[map(steps('lzSettings').mgApi.value, (mg) => parse(concat('{\"label\":\"', mg.name, '\",\"description\":\"', mg.id, '\",\"value\":\"', toLower(mg.name), '\"}')) )]",
"required": true
}
}
},
{
"id": "esSubName",
"header": "Subscription name",
"width": "1fr",
"element": {
"type": "Microsoft.Common.TextBox",
"placeholder": "Subscription name...",
"constraints": {
"required": true,
"validations": [
{
"regex": "^[a-z0-9A-Z]{1,30}$",
"message": "Only alphanumeric characters are allowed, and the value must be 1-30 characters long."
}
]
}
}
}
]
}
}
]
}
],
"outputs": {
"subscriptions": "[steps('lzSettings').esSubscription]",
"billingScope": "[steps('lzSettings').esEa]"
}
}
}