ComputeNodeOperationsExtensions.AddUser(IComputeNodeOperations, String, String, ComputeNodeUser, ComputeNodeAddUserOptions) Method

Definition

Adds a user account to the specified compute node.

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 = null);
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

Parameters

operations
IComputeNodeOperations

The operations group for this extension method.

poolId
System.String

The ID of the pool that contains the compute node.

nodeId
System.String

The ID of the machine on which you want to create a user account.

user
ComputeNodeUser

The user account to be created.

computeNodeAddUserOptions
ComputeNodeAddUserOptions

Additional parameters for the operation

Returns

ComputeNodeAddUserHeaders

Remarks

You can add a user account to a node only when it is in the idle or running state.

Applies to