Resource Groups - Update
Updates a resource group.
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.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}?api-version=2021-04-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The name of the resource group to update. The name is case insensitive. Regex pattern: |
subscription
|
path | True |
string |
The Microsoft Azure subscription ID. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Request Body
Name | Type | Description |
---|---|---|
managedBy |
string |
The ID of the resource that manages this resource group. |
name |
string |
The name of the resource group. |
properties |
The resource group properties. |
|
tags |
object |
The tags attached to the resource group. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK - Returns information about the resource group. |
|
Other Status Codes |
Error response describing why the operation failed. |
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 |
Definitions
Name | Description |
---|---|
Cloud |
An error response for a resource management request. |
Error |
The resource management error additional info. |
Error |
Error Response |
Resource |
Resource group information. |
Resource |
Resource group information. |
Resource |
The resource group properties. |
CloudError
An error response for a resource management request.
Name | Type | Description |
---|---|---|
error |
Error Response |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorResponse
Error Response
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ResourceGroup
Resource group information.
Name | Type | Description |
---|---|---|
id |
string |
The ID of the resource group. |
location |
string |
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. |
name |
string |
The name of the resource group. |
properties |
The resource group properties. |
|
tags |
object |
The tags attached to the resource group. |
type |
string |
The type of the resource group. |
ResourceGroupPatchable
Resource group information.
Name | Type | Description |
---|---|---|
managedBy |
string |
The ID of the resource that manages this resource group. |
name |
string |
The name of the resource group. |
properties |
The resource group properties. |
|
tags |
object |
The tags attached to the resource group. |
ResourceGroupProperties
The resource group properties.
Name | Type | Description |
---|---|---|
provisioningState |
string |
The provisioning state. |