Management Groups - Update

Update a management group.

PATCH https://management.azure.com/providers/Microsoft.Management/managementGroups/{groupId}?api-version=2020-05-01

URI Parameters

Name In Required Type Description
groupId
path True

string

Management Group ID.

api-version
query True

string

Version of the API to be used with the client request. The current version is 2018-01-01-preview.

Request Header

Name Required Type Description
Cache-Control

string

Indicates that the request shouldn't utilize any caches.

Request Body

Name Type Description
displayName

string

The friendly name of the management group.

parentGroupId

string

(Optional) The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

Responses

Name Type Description
200 OK

ManagementGroup

OK

Other Status Codes

ErrorResponse

Error

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

PatchManagementGroup

Sample Request

PATCH https://management.azure.com/providers/Microsoft.Management/managementGroups/ChildGroup?api-version=2020-05-01


{
  "displayName": "AlternateDisplayName",
  "parentGroupId": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup"
}

Sample Response

{
  "id": "/providers/Microsoft.Management/managementGroups/ChildGroup",
  "type": "Microsoft.Management/managementGroups",
  "name": "ChildGroup",
  "properties": {
    "tenantId": "20000000-0000-0000-0000-000000000000",
    "displayName": "AlternateDisplayName",
    "details": {
      "version": 2,
      "updatedTime": "2018-01-25T02:46:59.0545645Z",
      "updatedBy": "bd490e30-04cb-433e-b8c8-6066959a8bab",
      "parent": {
        "id": "/providers/Microsoft.Management/managementGroups/AlternateRootGroup",
        "name": "AlternateRootGroup",
        "displayName": "AlternateRootGroup"
      }
    }
  }
}

Definitions

Name Description
ErrorDetails

The details of the error.

ErrorResponse

The error object.

ManagementGroup

The management group details.

ManagementGroupChildInfo

The child information of a management group.

ManagementGroupChildType

The type of child resource.

ManagementGroupDetails

The details of a management group.

ManagementGroupPathElement

A path element of a management group ancestors.

ParentGroupInfo

(Optional) The ID of the parent management group.

PatchManagementGroupRequest

Management group patch parameters.

ErrorDetails

The details of the error.

Name Type Description
code

string

One of a server-defined set of error codes.

details

string

A human-readable representation of the error's details.

message

string

A human-readable representation of the error.

ErrorResponse

The error object.

Name Type Description
error

ErrorDetails

Error
The details of the error.

ManagementGroup

The management group details.

Name Type Description
id

string

The fully qualified ID for the management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000

name

string

The name of the management group. For example, 00000000-0000-0000-0000-000000000000

properties.children

ManagementGroupChildInfo[]

The list of children.

properties.details

ManagementGroupDetails

Details
The details of a management group.

properties.displayName

string

The friendly name of the management group.

properties.tenantId

string

The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000

type

string

The type of the resource. For example, Microsoft.Management/managementGroups

ManagementGroupChildInfo

The child information of a management group.

Name Type Description
children

ManagementGroupChildInfo[]

The list of children.

displayName

string

The friendly name of the 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.

type

ManagementGroupChildType

The type of child resource.
The fully qualified resource type which includes provider namespace (e.g. Microsoft.Management/managementGroups)

ManagementGroupChildType

The type of child resource.

Name Type Description
/subscriptions

string

Microsoft.Management/managementGroups

string

ManagementGroupDetails

The details of a management group.

Name Type Description
parent

ParentGroupInfo

Parent
(Optional) The ID of the parent management group.

path

ManagementGroupPathElement[]

The path from the root to the current group.

updatedBy

string

The identity of the principal or process that updated the object.

updatedTime

string

The date and time when this object was last updated.

version

number

The version number of the object.

ManagementGroupPathElement

A path element of a management group ancestors.

Name Type Description
displayName

string

The friendly name of the group.

name

string

The name of the group.

ParentGroupInfo

(Optional) The ID of the parent management group.

Name Type Description
displayName

string

The friendly name of the parent management group.

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

PatchManagementGroupRequest

Management group patch parameters.

Name Type Description
displayName

string

The friendly name of the management group.

parentGroupId

string

(Optional) The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000