VirtualMachineScaleSetVMsOperationsExtensions.BeginDeleteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
BeginDeleteAsync(IVirtualMachineScaleSetVMsOperations, String, String, String, CancellationToken) |
Deletes a virtual machine from a VM scale set. |
BeginDeleteAsync(IVirtualMachineScaleSetVMsOperations, String, String, String, Nullable<Boolean>, CancellationToken) |
Deletes a virtual machine from a VM scale set. |
BeginDeleteAsync(IVirtualMachineScaleSetVMsOperations, String, String, String, CancellationToken)
Deletes a virtual machine from a VM scale set.
public static System.Threading.Tasks.Task BeginDeleteAsync (this Microsoft.Azure.Management.Compute.IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, System.Threading.CancellationToken cancellationToken);
static member BeginDeleteAsync : Microsoft.Azure.Management.Compute.IVirtualMachineScaleSetVMsOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function BeginDeleteAsync (operations As IVirtualMachineScaleSetVMsOperations, resourceGroupName As String, vmScaleSetName As String, instanceId As String, cancellationToken As CancellationToken) As Task
Parameters
- operations
- IVirtualMachineScaleSetVMsOperations
The operations group for this extension method.
- resourceGroupName
- String
The name of the resource group.
- vmScaleSetName
- String
The name of the VM scale set.
- instanceId
- String
The instance ID of the virtual machine.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
BeginDeleteAsync(IVirtualMachineScaleSetVMsOperations, String, String, String, Nullable<Boolean>, CancellationToken)
Deletes a virtual machine from a VM scale set.
public static System.Threading.Tasks.Task BeginDeleteAsync (this Microsoft.Azure.Management.Compute.IVirtualMachineScaleSetVMsOperations operations, string resourceGroupName, string vmScaleSetName, string instanceId, bool? forceDeletion = default, System.Threading.CancellationToken cancellationToken = default);
static member BeginDeleteAsync : Microsoft.Azure.Management.Compute.IVirtualMachineScaleSetVMsOperations * string * string * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function BeginDeleteAsync (operations As IVirtualMachineScaleSetVMsOperations, resourceGroupName As String, vmScaleSetName As String, instanceId As String, Optional forceDeletion As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- operations
- IVirtualMachineScaleSetVMsOperations
The operations group for this extension method.
- resourceGroupName
- String
The name of the resource group.
- vmScaleSetName
- String
The name of the VM scale set.
- instanceId
- String
The instance ID of the virtual machine.
Optional parameter to force delete a virtual machine from a VM scale set. (Feature in Preview)
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Azure SDK for .NET