共用方式為


VirtualMachineScaleSetsOperationsExtensions.BeginReimageAsync Method

Definition

Reimages (upgrade the operating system) one or more virtual machines in a VM scale set 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.

public static System.Threading.Tasks.Task BeginReimageAsync (this Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineScaleSetsOperations operations, string resourceGroupName, string vmScaleSetName, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetReimageParameters vmScaleSetReimageInput = default, System.Threading.CancellationToken cancellationToken = default);
static member BeginReimageAsync : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineScaleSetsOperations * string * string * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineScaleSetReimageParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function BeginReimageAsync (operations As IVirtualMachineScaleSetsOperations, resourceGroupName As String, vmScaleSetName As String, Optional vmScaleSetReimageInput As VirtualMachineScaleSetReimageParameters = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
IVirtualMachineScaleSetsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

vmScaleSetName
String

The name of the VM scale set.

vmScaleSetReimageInput
VirtualMachineScaleSetReimageParameters

Parameters for Reimaging VM ScaleSet.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to