Freigeben über


ComputeNodeOperationsExtensions.AddUser Methode

Definition

Fügt dem angegebenen Computeknoten ein Benutzerkonto hinzu.

public static Microsoft.Azure.Batch.Protocol.Models.ComputeNodeAddUserHeaders AddUser (this Microsoft.Azure.Batch.Protocol.IComputeNodeOperations operations, string poolId, string nodeId, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUser user, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeAddUserOptions computeNodeAddUserOptions = default);
static member AddUser : Microsoft.Azure.Batch.Protocol.IComputeNodeOperations * string * string * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUser * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeAddUserOptions -> Microsoft.Azure.Batch.Protocol.Models.ComputeNodeAddUserHeaders
<Extension()>
Public Function AddUser (operations As IComputeNodeOperations, poolId As String, nodeId As String, user As ComputeNodeUser, Optional computeNodeAddUserOptions As ComputeNodeAddUserOptions = Nothing) As ComputeNodeAddUserHeaders

Parameter

operations
IComputeNodeOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

poolId
String

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

nodeId
String

Die ID des Computers, auf dem Sie ein Benutzerkonto erstellen möchten.

user
ComputeNodeUser

Das zu erstellende Benutzerkonto.

computeNodeAddUserOptions
ComputeNodeAddUserOptions

Zusätzliche Parameter für den Vorgang

Gibt zurück

Hinweise

Sie können einem Computeknoten nur dann ein Benutzerkonto hinzufügen, wenn er sich im Leerlauf- oder Ausführungszustand befindet.

Gilt für: