VirtualMachinesOperationsExtensions.ReimageAsync(IVirtualMachinesOperations, String, String, Nullable<Boolean>, CancellationToken) Method

Definition

Reimages the virtual machine which has an ephemeral OS disk back to its initial state.

public static System.Threading.Tasks.Task ReimageAsync (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string resourceGroupName, string vmName, Nullable<bool> tempDisk = null, System.Threading.CancellationToken cancellationToken = null);
static member ReimageAsync : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

operations
IVirtualMachinesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

vmName
String

The name of the virtual machine.

tempDisk
Nullable<Boolean>

Specifies whether to reimage temp disk. Default value: false. Note: This temp disk reimage parameter is only supported for VM/VMSS with Ephemeral OS disk.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to