VirtualMachinesOperationsExtensions.ReimageAsync 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.
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.
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
Azure SDK for .NET