Megosztás a következőn keresztül:


ResourceGroupResource.Update(ResourceGroupPatch, CancellationToken) Method

Definition

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.

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}
  • Operation Id: ResourceGroups_Update
  • Default Api Version: 2022-09-01
  • Resource: ResourceGroupResource
public virtual Azure.Response<Azure.ResourceManager.Resources.ResourceGroupResource> Update (Azure.ResourceManager.Resources.Models.ResourceGroupPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member Update : Azure.ResourceManager.Resources.Models.ResourceGroupPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.ResourceGroupResource>
override this.Update : Azure.ResourceManager.Resources.Models.ResourceGroupPatch * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.ResourceGroupResource>
Public Overridable Function Update (patch As ResourceGroupPatch, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ResourceGroupResource)

Parameters

patch
ResourceGroupPatch

Parameters supplied to update a resource group.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

patch is null.

Applies to