{
    "id": "https://schema.management.azure.com/schemas/2017-11-01-preview/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": [
                        "2017-11-01-preview"
                    ]
                },
                "displayName": {
                    "type": "string",
                    "description": "The friendly name of the management group."
                },
                "name": {
                    "type": "string",
                    "description": "Management Group ID."
                },
                "parentId": {
                    "type": "string",
                    "description": "(Optional) The fully qualified ID for the parent management group.  For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000"
                },
                "resources": {
                    "type": "array",
                    "items": {
                        "oneOf": [
                            {
                                "$ref": "#/definitions/managementGroups_subscriptions_childResource"
                            }
                        ]
                    }
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "Microsoft.Management/managementGroups"
                    ]
                }
            },
            "required": [
                "apiVersion",
                "name",
                "type"
            ],
            "description": "Microsoft.Management/managementGroups"
        },
        "managementGroups_subscriptions": {
            "type": "object",
            "properties": {
                "apiVersion": {
                    "type": "string",
                    "enum": [
                        "2017-11-01-preview"
                    ]
                },
                "name": {
                    "type": "string",
                    "description": "Subscription ID."
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "Microsoft.Management/managementGroups/subscriptions"
                    ]
                }
            },
            "required": [
                "apiVersion",
                "name",
                "type"
            ],
            "description": "Microsoft.Management/managementGroups/subscriptions"
        }
    },
    "definitions": {
        "managementGroups_subscriptions_childResource": {
            "type": "object",
            "properties": {
                "apiVersion": {
                    "type": "string",
                    "enum": [
                        "2017-11-01-preview"
                    ]
                },
                "name": {
                    "type": "string",
                    "description": "Subscription ID."
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "subscriptions"
                    ]
                }
            },
            "required": [
                "apiVersion",
                "name",
                "type"
            ],
            "description": "Microsoft.Management/managementGroups/subscriptions"
        }
    },
    "properties": {
        "tenant_resourceDefinitions.managementGroups": {
            "$ref": "#/tenant_resourceDefinitions/managementGroups"
        },
        "tenant_resourceDefinitions.managementGroups_subscriptions": {
            "$ref": "#/tenant_resourceDefinitions/managementGroups_subscriptions"
        },
        "managementGroups_subscriptions_childResource": {
            "$ref": "#/definitions/managementGroups_subscriptions_childResource"
        }
    },
    "required": [
        "tenant_resourceDefinitions.managementGroups",
        "tenant_resourceDefinitions.managementGroups_subscriptions",
        "managementGroups_subscriptions_childResource"
    ]
}