Share via


PoolOperations.ReimageAsync Methode

Definition

Installiert das Betriebssystem auf dem angegebenen Computeknoten neu.

public System.Threading.Tasks.Task ReimageAsync (string poolId, string computeNodeId, Microsoft.Azure.Batch.Common.ComputeNodeReimageOption? reimageOption = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
member this.ReimageAsync : string * string * Nullable<Microsoft.Azure.Batch.Common.ComputeNodeReimageOption> * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ReimageAsync (poolId As String, computeNodeId As String, Optional reimageOption As Nullable(Of ComputeNodeReimageOption) = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameter

poolId
String

Die ID des Pools, der den Computeknoten enthält.

computeNodeId
String

Die ID des Computeknotens, der neu erstellt werden soll.

reimageOption
Nullable<ComputeNodeReimageOption>

Gibt an, wann der Knoten neu erstellt werden soll und was mit derzeit ausgeführten Aufgaben zu tun ist. Der Standardwert ist Requeue.

additionalBehaviors
IEnumerable<BatchClientBehavior>

Eine Auflistung von BatchClientBehavior Instanzen, die auf die Batch-Dienstanforderung nach CustomBehaviorsangewendet werden.

cancellationToken
CancellationToken

A CancellationToken zum Steuern der Lebensdauer des asynchronen Vorgangs.

Gibt zurück

Ein Task-Element, das den asynchronen Vorgang darstellt.

Hinweise

Sie können einen Computeknoten nur dann umbilden, wenn er sich im Idle Zustand oder befindet Running .

Der Umimagevorgang wird asynchron ausgeführt.

Gilt für: