CapacityReservationsOperationsExtensions.BeginCreateOrUpdateAsync(ICapacityReservationsOperations, String, String, String, CapacityReservation, CancellationToken) Method

Definition

The operation to create or update a capacity reservation. Please note some properties can be set only during capacity reservation creation. Please refer to https://aka.ms/CapacityReservation for more details.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CapacityReservation> BeginCreateOrUpdateAsync (this Microsoft.Azure.Management.Compute.ICapacityReservationsOperations operations, string resourceGroupName, string capacityReservationGroupName, string capacityReservationName, Microsoft.Azure.Management.Compute.Models.CapacityReservation parameters, System.Threading.CancellationToken cancellationToken = default);
static member BeginCreateOrUpdateAsync : Microsoft.Azure.Management.Compute.ICapacityReservationsOperations * string * string * string * Microsoft.Azure.Management.Compute.Models.CapacityReservation * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.CapacityReservation>
<Extension()>
Public Function BeginCreateOrUpdateAsync (operations As ICapacityReservationsOperations, resourceGroupName As String, capacityReservationGroupName As String, capacityReservationName As String, parameters As CapacityReservation, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CapacityReservation)

Parameters

operations
ICapacityReservationsOperations

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.

capacityReservationName
System.String

The name of the capacity reservation.

parameters
CapacityReservation

Parameters supplied to the Create capacity reservation.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<CapacityReservation>

Applies to