ComputeNodeOperationsExtensions.AddUser Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 = 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
Parameters
- operations
- IComputeNodeOperations
The operations group for this extension method.
- poolId
- String
The ID of the Pool that contains the Compute Node.
- nodeId
- 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
Remarks
You can add a user Account to a Compute Node only when it is in the idle or running state.
Applies to
Azure SDK for .NET