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

Definition

Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and releases the compute resources it uses. You are not billed for the compute resources of this virtual machine once it is deallocated.

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

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.Fluent.Models.OperationStatusResponseInner>

Applies to