Sdílet prostřednictvím


CapacityReservationGroupsOperationsExtensions.DeleteAsync Method

Definition

The operation to delete a capacity reservation group. This operation is allowed only if all the associated resources are disassociated from the reservation group and all capacity reservations under the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details.

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

Parameters

operations
ICapacityReservationGroupsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

capacityReservationGroupName
String

The name of the capacity reservation group.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to