共用方式為


VirtualMachinesOperationsExtensions.Reimage Method

Definition

Overloads

Reimage(IVirtualMachinesOperations, String, String, VirtualMachineReimageParameters)

Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.

Reimage(IVirtualMachinesOperations, String, String, Nullable<Boolean>)

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

Reimage(IVirtualMachinesOperations, String, String, VirtualMachineReimageParameters)

Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.

public static void Reimage (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string resourceGroupName, string vmName, Microsoft.Azure.Management.Compute.Models.VirtualMachineReimageParameters parameters = default);
static member Reimage : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineReimageParameters -> unit
<Extension()>
Public Sub Reimage (operations As IVirtualMachinesOperations, resourceGroupName As String, vmName As String, Optional parameters As VirtualMachineReimageParameters = Nothing)

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.

parameters
VirtualMachineReimageParameters

Parameters supplied to the Reimage Virtual Machine operation.

Applies to

Reimage(IVirtualMachinesOperations, String, String, Nullable<Boolean>)

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

public static void Reimage (this Microsoft.Azure.Management.Compute.IVirtualMachinesOperations operations, string resourceGroupName, string vmName, bool? tempDisk);
static member Reimage : Microsoft.Azure.Management.Compute.IVirtualMachinesOperations * string * string * Nullable<bool> -> unit
<Extension()>
Public Sub Reimage (operations As IVirtualMachinesOperations, resourceGroupName As String, vmName As String, tempDisk As Nullable(Of Boolean))

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.

Applies to