---
title: "PUT /providers/Microsoft.Management/managementGroups/{groupId}"
method: PUT
path: "/providers/Microsoft.Management/managementGroups/{groupId}"
tags: ["ManagementGroups"]
---

# PUT /providers/Microsoft.Management/managementGroups/{groupId}

`PUT /providers/Microsoft.Management/managementGroups/{groupId}`

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.

## Path parameters

- `groupId` string, required

## Headers

- `Cache-Control` string

## Parameters

- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref

## Request body

- CreateManagementGroupRequest — Management group creation parameters.
  - `id` string — The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
  - `type` string — The type of the resource. For example, Microsoft.Management/managementGroups
  - `name` string — The name of the management group. For example, 00000000-0000-0000-0000-000000000000
  - `properties` CreateManagementGroupProperties — The generic properties of a management group used during creation.
    - `tenantId` string — The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000
    - `displayName` string, nullable — The friendly name of the management group. If no value is passed then this field will be set to the groupId.
    - `details` CreateManagementGroupDetails — The details of a management group used during creation.
      - `version` integer — The version number of the object.
      - `updatedTime` string, date-time — The date and time when this object was last updated.
      - `updatedBy` string — The identity of the principal or process that updated the object.
      - `parent` CreateParentGroupInfo — (Optional) The ID of the parent management group used during creation.
        - `id` string — The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
        - `name` string — The name of the parent management group
        - `displayName` string — The friendly name of the parent management group.
    - `children` CreateManagementGroupChildInfo[], nullable — The list of children.
      - `type` 'Microsoft.Management/managementGroups' | '/subscriptions' — The type of child resource.
      - `id` string — The fully qualified ID for the child resource (management group or subscription). For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
      - `name` string — The name of the child entity.
      - `displayName` string — The friendly name of the child resource.
      - `children` CreateManagementGroupChildInfo[] — The list of children.

## Response `200`

Resource 'ManagementGroup' update operation succeeded

- ManagementGroup — unresolved $ref

## Other responses

- `202` — The request has been accepted for processing, but processing has not yet completed.
- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/management-microsoft-management-managementgroups.md) · [All operations](https://skmtc.net/azure/apis/management-microsoft-management-managementgroups/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/management-microsoft-management-managementgroups/revisions/2a185afab701/schema)
