共用方式為


ResourceGroupResource.UpdateAsync 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 System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.ResourceGroupResource>> UpdateAsync (Azure.ResourceManager.Resources.Models.ResourceGroupPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.Resources.Models.ResourceGroupPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.ResourceGroupResource>>
override this.UpdateAsync : Azure.ResourceManager.Resources.Models.ResourceGroupPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Resources.ResourceGroupResource>>
Public Overridable Function UpdateAsync (patch As ResourceGroupPatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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