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

Definition

Allows you to re-image all the disks ( including data disks ) in the a virtual machine scale set instance. This operation is only supported for managed disks.

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