CapacityReservationGroupsOperationsExtensions.CreateOrUpdateAsync Method

Definition

The operation to create or update a capacity reservation group. When updating a capacity reservation group, only tags may be modified. Please refer to https://aka.ms/CapacityReservation for more details.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup> CreateOrUpdateAsync (this Microsoft.Azure.Management.Compute.ICapacityReservationGroupsOperations operations, string resourceGroupName, string capacityReservationGroupName, Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Compute.ICapacityReservationGroupsOperations * string * string * Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CapacityReservationGroup>
<Extension()>
Public Function CreateOrUpdateAsync (operations As ICapacityReservationGroupsOperations, resourceGroupName As String, capacityReservationGroupName As String, parameters As CapacityReservationGroup, 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.

parameters
CapacityReservationGroup

Parameters supplied to the Create capacity reservation Group.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<CapacityReservationGroup>

Applies to