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

[AutoPR managementgroups] MG RP new API versions: 2020-10-01 and 2021-04-01 #2443

Closed
wants to merge 1 commit into from
Closed
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
18 changes: 18 additions & 0 deletions schemas/2019-08-01/tenantDeploymentTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,24 @@
{
"$ref": "https://schema.management.azure.com/schemas/2020-05-01/Microsoft.Management.json#/tenant_resourceDefinitions/managementGroups_subscriptions"
},
{
"$ref": "https://schema.management.azure.com/schemas/2020-10-01/Microsoft.Management.json#/tenant_resourceDefinitions/managementGroups"
},
{
"$ref": "https://schema.management.azure.com/schemas/2020-10-01/Microsoft.Management.json#/tenant_resourceDefinitions/managementGroups_settings"
},
{
"$ref": "https://schema.management.azure.com/schemas/2020-10-01/Microsoft.Management.json#/tenant_resourceDefinitions/managementGroups_subscriptions"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-04-01/Microsoft.Management.json#/tenant_resourceDefinitions/managementGroups"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-04-01/Microsoft.Management.json#/tenant_resourceDefinitions/managementGroups_settings"
},
{
"$ref": "https://schema.management.azure.com/schemas/2021-04-01/Microsoft.Management.json#/tenant_resourceDefinitions/managementGroups_subscriptions"
},
{
"$ref": "https://schema.management.azure.com/schemas/2018-02-01/Microsoft.ManagementPartner.json#/tenant_resourceDefinitions/partners"
},
Expand Down
273 changes: 273 additions & 0 deletions schemas/2020-10-01/Microsoft.Management.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
{
"id": "https://schema.management.azure.com/schemas/2020-10-01/Microsoft.Management.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.Management",
"description": "Microsoft Management Resource Types",
"resourceDefinitions": {},
"tenant_resourceDefinitions": {
"managementGroups": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-10-01"
]
},
"name": {
"type": "string",
"description": "Management Group ID."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/CreateManagementGroupProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The generic properties of a management group used during creation."
},
"resources": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/managementGroups_subscriptions_childResource"
},
{
"$ref": "#/definitions/managementGroups_settings_childResource"
}
]
}
},
"type": {
"type": "string",
"enum": [
"Microsoft.Management/managementGroups"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Management/managementGroups"
},
"managementGroups_settings": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-10-01"
]
},
"name": {
"oneOf": [
{
"type": "string",
"pattern": "^.*/default$"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/CreateOrUpdateSettingsProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of the request to create or update Management Group settings"
},
"type": {
"type": "string",
"enum": [
"Microsoft.Management/managementGroups/settings"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Management/managementGroups/settings"
},
"managementGroups_subscriptions": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-10-01"
]
},
"name": {
"type": "string",
"description": "Subscription ID."
},
"type": {
"type": "string",
"enum": [
"Microsoft.Management/managementGroups/subscriptions"
]
}
},
"required": [
"apiVersion",
"name",
"type"
],
"description": "Microsoft.Management/managementGroups/subscriptions"
}
},
"definitions": {
"CreateManagementGroupDetails": {
"type": "object",
"properties": {
"parent": {
"oneOf": [
{
"$ref": "#/definitions/CreateParentGroupInfo"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "(Optional) The ID of the parent management group used during creation."
}
},
"description": "The details of a management group used during creation."
},
"CreateManagementGroupProperties": {
"type": "object",
"properties": {
"details": {
"oneOf": [
{
"$ref": "#/definitions/CreateManagementGroupDetails"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The details of a management group used during creation."
},
"displayName": {
"type": "string",
"description": "The friendly name of the management group. If no value is passed then this field will be set to the groupId."
}
},
"description": "The generic properties of a management group used during creation."
},
"CreateOrUpdateSettingsProperties": {
"type": "object",
"properties": {
"defaultManagementGroup": {
"type": "string",
"description": "Settings that sets the default Management Group under which new subscriptions get added in this tenant. For example, /providers/Microsoft.Management/managementGroups/defaultGroup"
},
"requireAuthorizationForGroupCreation": {
"oneOf": [
{
"type": "boolean"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Indicates whether RBAC access is required upon group creation under the root Management Group. If set to true, user will require Microsoft.Management/managementGroups/write action on the root Management Group scope in order to create new Groups directly under the root. This will prevent new users from creating new Management Groups, unless they are given access."
}
},
"description": "The properties of the request to create or update Management Group settings"
},
"CreateParentGroupInfo": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000"
}
},
"description": "(Optional) The ID of the parent management group used during creation."
},
"managementGroups_settings_childResource": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-10-01"
]
},
"name": {
"type": "string",
"enum": [
"default"
]
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/CreateOrUpdateSettingsProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "The properties of the request to create or update Management Group settings"
},
"type": {
"type": "string",
"enum": [
"settings"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.Management/managementGroups/settings"
},
"managementGroups_subscriptions_childResource": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-10-01"
]
},
"name": {
"type": "string",
"description": "Subscription ID."
},
"type": {
"type": "string",
"enum": [
"subscriptions"
]
}
},
"required": [
"apiVersion",
"name",
"type"
],
"description": "Microsoft.Management/managementGroups/subscriptions"
}
}
}
Loading