Microsoft Azure Management Groups API

A Management Group is a customer defined scope (grouping mechanism) that provides access control (authorization), policy management and reporting. Management Groups are organized in a strictly tree-based hierarchy.

GitHub OpenAPI

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /providers/Microsoft.Management/managementGroups List my management groups · Microsoft Azure Get Providers Microsoft Management Managementgroups #
Ask an LLM
“Which Azure management groups can I see as the signed-in user?”
“Can I page through management groups with a skip token?”
Tell an agent
List all management groups I have access to.
Show the next page of management groups after {skiptoken}.
GET /providers/Microsoft.Management/managementGroups/{groupId} Get a management group's details · Microsoft Azure Get Providers Microsoft Management Managementgroups Groupid #
Ask an LLM
“What are the details and children of a specific management group?”
“Can I expand a management group to include its whole descendant hierarchy?”
Tell an agent
Get management group {groupId}.
Show management group {groupId} expanded with {expand}, recursing into descendants: {recurse}.
PUT /providers/Microsoft.Management/managementGroups/{groupId} Create or replace a management group · Microsoft Azure Put Providers Microsoft Management Managementgroups Groupid #
Ask an LLM
“How do I create a new management group in my Azure tenant?”
“What happens if I send a create request for a management group that already exists?”
Tell an agent
Create management group {groupId}.
Create or overwrite management group {groupId} using {createManagementGroupRequest}.
PATCH /providers/Microsoft.Management/managementGroups/{groupId} Update a management group · Microsoft Azure Patch Providers Microsoft Management Managementgroups Groupid #
Ask an LLM
“Can I rename or re-parent an existing management group with a patch?”
“Is there a way to change only some fields of a management group?”
Tell an agent
Patch management group {groupId} with {patchGroupRequest}.
Update the display name or parent of existing management group {groupId}.
DELETE /providers/Microsoft.Management/managementGroups/{groupId} Delete a management group · Microsoft Azure Delete Providers Microsoft Management Managementgroups Groupid #
Ask an LLM
“How do I delete a management group?”
“Why would deleting a management group fail if it still has children?”
Tell an agent destructive · confirm first
Delete management group {groupId}.
Remove the empty management group {groupId}.
PUT /providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId} Move a subscription into a management group · Microsoft Azure Put Providers Microsoft Management Managementgroups Groupid… #
Ask an LLM
“How do I put an existing subscription under a management group?”
“Can I associate a subscription with a different management group?”
Tell an agent
Associate subscription {subscriptionId} with management group {groupId}.
Move subscription {subscriptionId} under management group {groupId}.
DELETE /providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId} Remove a subscription from a management group · Microsoft Azure Delete Providers Microsoft Management Managementgroups Groupid… #
Ask an LLM
“How do I take a subscription out of a management group?”
“Can I de-associate a subscription from its management group?”
Tell an agent destructive · confirm first
Remove subscription {subscriptionId} from management group {groupId}.
De-associate subscription {subscriptionId} from group {groupId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-managementgroups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-managementgroups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2018-01-01-preview
  title: Microsoft Azure Management Groups API
  description: 'The Azure Management Groups API enables consolidation of multiple

    subscriptions/resources into an organizational hierarchy and centrally

    manage access control, policies, alerting and reporting for those resources.'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: ManagementGroups
  description: 'A Management Group is a customer defined scope (grouping mechanism) that

    provides access control (authorization), policy management and reporting.

    Management Groups are organized in a strictly tree-based hierarchy.'
paths:
  /providers/Microsoft.Management/managementGroups:
    get:
      tags:
      - ManagementGroups
      operationId: microsoftAzureManagementgroupsList
      description: List management groups for the authenticated user.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/CacheControlHeader'
      - $ref: '#/components/parameters/SkipTokenParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagementGroupListResult'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        ListManagementGroups:
          $ref: ./examples/ListManagementGroups.json
      summary: Microsoft Azure Get Providers Microsoft Management Managementgroups
  /providers/Microsoft.Management/managementGroups/{groupId}:
    get:
      tags:
      - ManagementGroups
      operationId: microsoftAzureManagementgroupsGet
      description: Get the details of the management group.
      parameters:
      - $ref: '#/components/parameters/GroupIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/ExpandParameter'
      - $ref: '#/components/parameters/RecurseParameter'
      - $ref: '#/components/parameters/FilterParameter'
      - $ref: '#/components/parameters/CacheControlHeader'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagementGroup'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        GetManagementGroup:
          $ref: ./examples/GetManagementGroup.json
        GetManagementGroupWithExpand:
          $ref: ./examples/GetManagementGroupWithExpand.json
        GetManagementGroupsWithExpandAndRecurse:
          $ref: ./examples/GetManagementGroupWithExpandAndRecurse.json
      summary: Microsoft Azure Get Providers Microsoft Management Managementgroups Groupid
    put:
      tags:
      - ManagementGroups
      operationId: microsoftAzureManagementgroupsCreateorupdate
      description: 'Create or update a management group.

        If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated.'
      parameters:
      - $ref: '#/components/parameters/GroupIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/CacheControlHeader'
      - $ref: '#/components/parameters/CreateManagementGroupRequestParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagementGroup'
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResults'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        PutManagementGroup:
          $ref: ./examples/PutManagementGroup.json
      x-ms-long-running-operation: true
      summary: Microsoft Azure Put Providers Microsoft Management Managementgroups Groupid
    patch:
      tags:
      - ManagementGroups
      operationId: microsoftAzureManagementgroupsUpdate
      description: Update a management group.
      parameters:
      - $ref: '#/components/parameters/GroupIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/CacheControlHeader'
      - $ref: '#/components/parameters/PatchGroupRequestParameter'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManagementGroup'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        PatchManagementGroup:
          $ref: ./examples/PatchManagementGroup.json
      summary: Microsoft Azure Patch Providers Microsoft Management Managementgroups Groupid
    delete:
      tags:
      - ManagementGroups
      operationId: microsoftAzureManagementgroupsDelete
      description: 'Delete management group.

        If a management group contains child resources, the request will fail.'
      parameters:
      - $ref: '#/components/parameters/GroupIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/CacheControlHeader'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OperationResults'
        '204':
          description: NoContent
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        DeleteManagementGroup:
          $ref: ./examples/DeleteManagementGroup.json
      x-ms-long-running-operation: true
      summary: Microsoft Azure Delete Providers Microsoft Management Managementgroups Groupid
  /providers/Microsoft.Management/managementGroups/{groupId}/subscriptions/{subscriptionId}:
    put:
      tags:
      - ManagementGroups
      operationId: microsoftAzureManagementgroupsubscriptionsCreate
      description: Associates existing subscription with the management group.
      parameters:
      - $ref: '#/components/parameters/GroupIdParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/CacheControlHeader'
      responses:
        '204':
          description: NoContent
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        AddSubscriptionToManagementGroup:
          $ref: ./examples/AddManagementGroupSubscription.json
      summary: Microsoft Azure Put Providers Microsoft Management Managementgroups Groupid…
    delete:
      tags:
      - ManagementGroups
      operationId: microsoftAzureManagementgroupsubscriptionsDelete
      description: De-associates subscription from the management group.
      parameters:
      - $ref: '#/components/parameters/GroupIdParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/CacheControlHeader'
      responses:
        '204':
          description: NoContent
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        DeleteSubscriptionFromManagementGroup:
          $ref: ./examples/RemoveManagementGroupSubscription.json
      summary: Microsoft Azure Delete Providers Microsoft Management Managementgroups Groupid…
components:
  schemas:
    ManagementGroupListResult:
      description: Describes the result of the request to list management groups.
      properties:
        value:
          description: The list of management groups.
          type: array
          items:
            $ref: '#/components/schemas/ManagementGroupInfo'
        nextLink:
          description: The URL to use for getting the next set of results.
          type: string
          readOnly: true
    CreateManagementGroupDetails:
      description: The details of a management group used during creation.
      type: object
      properties:
        version:
          type: number
          readOnly: true
          format: int32
          description: The version number of the object.
        updatedTime:
          type: string
          readOnly: true
          format: date-time
          description: The date and time when this object was last updated.
        updatedBy:
          type: string
          readOnly: true
          description: The identity of the principal or process that updated the object.
        parent:
          title: Parent
          $ref: '#/components/schemas/CreateParentGroupInfo'
    ParentGroupInfo:
      description: (Optional) The ID of the parent management group.
      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
        name:
          type: string
          description: The name of the parent management group
        displayName:
          type: string
          description: The friendly name of the parent management group.
    OperationResults:
      description: The results of an asynchronous operation.
      properties:
        id:
          type: string
          description: The fully qualified ID for the management group.  For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
          readOnly: true
        type:
          type: string
          description: The type of the resource.  For example, /providers/Microsoft.Management/managementGroups
          readOnly: true
        name:
          type: string
          description: The name of the management group. For example, 00000000-0000-0000-0000-000000000000
          readOnly: true
        properties:
          title: Properties
          x-ms-client-flatten: true
          type: object
          properties:
            provisioningState:
              title: Provisioning State
              $ref: '#/components/schemas/ProvisioningState'
    ManagementGroupInfo:
      description: The management group resource.
      properties:
        id:
          type: string
          description: The fully qualified ID for the management group.  For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
          readOnly: true
        type:
          type: string
          description: The type of the resource. For example, /providers/Microsoft.Management/managementGroups
          readOnly: true
        name:
          type: string
          description: The name of the management group. For example, 00000000-0000-0000-0000-000000000000
          readOnly: true
        properties:
          x-ms-client-flatten: true
          title: Properties
          $ref: '#/components/schemas/ManagementGroupInfoProperties'
    CreateManagementGroupRequest:
      description: Management group creation parameters.
      type: object
      x-ms-azure-resource: true
      properties:
        id:
          type: string
          description: The fully qualified ID for the management group.  For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
          readOnly: true
        type:
          type: string
          description: The type of the resource.  For example, /providers/Microsoft.Management/managementGroups
          readOnly: true
        name:
          type: string
          description: The name of the management group. For example, 00000000-0000-0000-0000-000000000000
        properties:
          title: Properties
          x-ms-client-flatten: true
          $ref: '#/components/schemas/CreateManagementGroupProperties'
    ManagementGroupDetails:
      description: The details of a management group.
      type: object
      properties:
        version:
          type: number
          format: int32
          description: The version number of the object.
        updatedTime:
          type: string
          format: date-time
          description: The date and time when this object was last updated.
        updatedBy:
          type: string
          description: The identity of the principal or process that updated the object.
        parent:
          title: Parent
          $ref: '#/components/schemas/ParentGroupInfo'
    ManagementGroupChildType:
      type: string
      enum:
      - /providers/Microsoft.Management/managementGroups
      - /subscriptions
      description: The type of child resource.
    CreateManagementGroupProperties:
      description: The generic properties of a management group used during creation.
      type: object
      properties:
        tenantId:
          type: string
          readOnly: true
          description: The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
        displayName:
          type:
          - string
          - 'null'
          description: The friendly name of the management group. If no value is passed then this  field will be set to the groupId.
        roles:
          description: The roles definitions associated with the management group.
          readOnly: true
          type:
          - array
          - 'null'
          items:
            type: string
        details:
          title: Details
          $ref: '#/components/schemas/CreateManagementGroupDetails'
        children:
          description: The list of children.
          readOnly: true
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/CreateManagementGroupChildInfo'
    CreateParentGroupInfo:
      description: (Optional) The ID of the parent management group used during creation.
      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
        name:
          type: string
          readOnly: true
          description: The name of the parent management group
        displayName:
          type: string
          readOnly: true
          description: The friendly name of the parent management group.
    ErrorResponse:
      description: The error object.
      properties:
        error:
          title: Error
          $ref: '#/components/schemas/ErrorDetails'
    PatchManagementGroupRequest:
      description: Management group patch parameters.
      type: object
      properties:
        displayName:
          type:
          - string
          - 'null'
          description: The friendly name of the management group.
        parentId:
          type:
          - string
          - 'null'
          description: (Optional) The fully qualified ID for the parent management group.  For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
    ManagementGroupInfoProperties:
      description: The generic properties of a management group.
      type: object
      properties:
        tenantId:
          type: string
          description: The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
        displayName:
          type: string
          description: The friendly name of the management group.
    CreateManagementGroupChildInfo:
      description: The child information of a management group used during creation.
      properties:
        type:
          title: The type of child resource.
          readOnly: true
          $ref: '#/components/schemas/ManagementGroupChildType'
          description: The fully qualified resource type which includes provider namespace (e.g. /providers/Microsoft.Management/managementGroups)
        id:
          type: string
          readOnly: true
          description: The fully qualified ID for the child resource (management group or subscription).  For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
        name:
          type: string
          readOnly: true
          description: The name of the child entity.
        displayName:
          type: string
          readOnly: true
          description: The friendly name of the child resource.
        roles:
          description: The roles definitions associated with the management group.
          readOnly: true
          type: array
          items:
            type: string
        children:
          description: The list of children.
          readOnly: true
          type: array
          items:
            $ref: '#/components/schemas/CreateManagementGroupChildInfo'
    ManagementGroupChildInfo:
      description: The child information of a management group.
      properties:
        type:
          title: The type of child resource.
          $ref: '#/components/schemas/ManagementGroupChildType'
          description: The fully qualified resource type which includes provider namespace (e.g. /providers/Microsoft.Management/managementGroups)
        id:
          type: string
          description: The fully qualified ID for the child resource (management group or subscription).  For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
        name:
          type: string
          description: The name of the child entity.
        displayName:
          type: string
          description: The friendly name of the child resource.
        roles:
          description: The roles definitions associated with the management group.
          type: array
          items:
            type: string
        children:
          description: The list of children.
          type: array
          items:
            $ref: '#/components/schemas/ManagementGroupChildInfo'
    ManagementGroup:
      description: The management group details.
      x-ms-azure-resource: true
      properties:
        id:
          type: string
          description: The fully qualified ID for the management group.  For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
          readOnly: true
        type:
          type: string
          description: The type of the resource.  For example, /providers/Microsoft.Management/managementGroups
          readOnly: true
        name:
          type: string
          description: The name of the management group. For example, 00000000-0000-0000-0000-000000000000
          readOnly: true
        properties:
          title: Properties
          x-ms-client-flatten: true
          $ref: '#/components/schemas/ManagementGroupProperties'
    ManagementGroupProperties:
      description: The generic properties of a management group.
      type: object
      properties:
        tenantId:
          type: string
          description: The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
        displayName:
          type: string
          description: The friendly name of the management group.
        roles:
          description: The role definitions associated with the management group.
          type:
          - array
          - 'null'
          items:
            type: string
        details:
          title: Details
          $ref: '#/components/schemas/ManagementGroupDetails'
        children:
          description: The list of children.
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/ManagementGroupChildInfo'
    ProvisioningState:
      title: Provisioning State
      type: string
      enum:
      - Updating
      description: The provisioning status.
    ErrorDetails:
      description: The details of the error.
      properties:
        code:
          description: One of a server-defined set of error codes.
          type: string
        message:
          description: A human-readable representation of the error.
          type: string
        details:
          description: A human-readable representation of the error's details.
          type: string
  parameters:
    CacheControlHeader:
      name: Cache-Control
      in: header
      description: Indicates that the request shouldn't utilize any caches.
      x-ms-parameter-location: method
      schema:
        type: string
        default: no-cache
    SkipTokenParameter:
      name: $skiptoken
      in: query
      required: false
      description: "Page continuation token is only used if a previous operation returned a partial result. \nIf a previous response contains a nextLink element, the value of the nextLink element will include a token parameter that specifies a starting point to use for subsequent calls.\n"
      x-ms-parameter-location: client
      schema:
        type: string
    GroupIdParameter:
      name: groupId
      in: path
      required: true
      description: Management Group ID.
      x-ms-parameter-location: method
      schema:
        type: string
    RecurseParameter:
      name: $recurse
      in: query
      required: false
      x-ms-parameter-location: method
      description: The $recurse=true query string parameter allows clients to request inclusion of entire hierarchy in the response payload. Note that  $expand=children must be passed up if $recurse is set to true.
      schema:
        type: boolean
    PatchGroupRequestParameter:
      name: patchGroupRequest
      in: body
      required: true
      description: Management group patch parameters.
      schema:
        $ref: '#/components/schemas/PatchManagementGroupRequest'
      x-ms-parameter-location: client
    FilterParameter:
      name: $filter
      in: query
      required: false
      description: A filter which allows the exclusion of subscriptions from results (i.e. '$filter=children.childType ne Subscription')
      x-ms-parameter-location: method
      schema:
        type: string
    CreateManagementGroupRequestParameter:
      name: createManagementGroupRequest
      in: body
      required: true
      description: Management group creation parameters.
      schema:
        $ref: '#/components/schemas/CreateManagementGroupRequest'
      x-ms-parameter-location: client
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      required: true
      description: Subscription ID.
      x-ms-parameter-location: method
      schema:
        type: string
    ExpandParameter:
      name: $expand
      in: query
      required: false
      x-ms-parameter-location: method
      description: The $expand=children query string parameter allows clients to request inclusion of children in the response payload.
      schema:
        type: string
        enum:
        - children
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      description: Version of the API to be used with the client request. The current version is 2018-01-01-preview.
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/managementgroups/resource-manager/Microsoft.Management/preview/2018-01-01-preview/management.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)