Share via


VirtualMachinesOperationsExtensions.ReimageAsync 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.Fluent.IVirtualMachinesOperations operations, string resourceGroupName, string vmName, bool? tempDisk = default, System.Threading.CancellationToken cancellationToken = default);
static member ReimageAsync : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachinesOperations * string * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function ReimageAsync (operations As IVirtualMachinesOperations, resourceGroupName As String, vmName As String, Optional tempDisk As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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