CapacityReservationGroupsOperationsExtensions.UpdateAsync Method

Definition

The operation to update a capacity reservation group. When updating a capacity reservation group, only tags may be modified.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup> UpdateAsync (this Microsoft.Azure.Management.Compute.ICapacityReservationGroupsOperations operations, string resourceGroupName, string capacityReservationGroupName, System.Collections.Generic.IDictionary<string,string> tags = default, System.Threading.CancellationToken cancellationToken = default);
static member UpdateAsync : Microsoft.Azure.Management.Compute.ICapacityReservationGroupsOperations * string * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup>
<Extension()>
Public Function UpdateAsync (operations As ICapacityReservationGroupsOperations, resourceGroupName As String, capacityReservationGroupName As String, Optional tags As IDictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CapacityReservationGroup)

Parameters

operations
ICapacityReservationGroupsOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the resource group.

capacityReservationGroupName
System.String

The name of the capacity reservation group.

tags
System.Collections.Generic.IDictionary<System.String,System.String>

Resource tags

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<CapacityReservationGroup>

Applies to