---
title: "Updates a resource group."
method: PATCH
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}"
tags: ["ResourceGroups"]
---

# Updates a resource group.

`PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}`

Resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource group. If a field is unspecified, the current value is retained.

## Path parameters

- `resourceGroupName` string, required
- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- ResourceGroupPatchable — Resource group information.
  - `name` string — The name of the resource group.
  - `properties` ResourceGroupProperties — The resource group properties.
    - `provisioningState` string — The provisioning state.
  - `managedBy` string — The ID of the resource that manages this resource group.
  - `tags` object — The tags attached to the resource group.

## Response `200`

OK - Returns information about the resource group.

- ResourceGroup — Resource group information.
  - `id` string — The ID of the resource group.
  - `name` string — The name of the resource group.
  - `type` string — The type of the resource group.
  - `properties` ResourceGroupProperties — The resource group properties.
    - `provisioningState` string — The provisioning state.
  - `location` string, required — The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations.
  - `managedBy` string — The ID of the resource that manages this resource group.
  - `tags` object — The tags attached to the resource group.

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.dev/azure/apis/resourcemanagementclient.md) · [All operations](https://skmtc.dev/azure/apis/resourcemanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/resourcemanagementclient/revisions/917e67faecf0/schema)
