VirtualMachineScaleSetVMsOperationsExtensions.DeleteAsync(IVirtualMachineScaleSetVMsOperations, String, String, String, CancellationToken) Method

Definition

Deletes a virtual machine from a VM scale set.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.OperationStatusResponse> DeleteAsync (this Microsoft.Azure.Management.Compute.IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, System.Threading.CancellationToken cancellationToken = null);
static member DeleteAsync : Microsoft.Azure.Management.Compute.IVirtualMachineScaleSetVMsOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.OperationStatusResponse>

Parameters

operations
IVirtualMachineScaleSetVMsOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the resource group.

vmScaleSetName
System.String

The name of the VM scale set.

instanceId
System.String

The instance ID of the virtual machine.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<Microsoft.Azure.Management.Compute.Models.OperationStatusResponse>

Applies to