Share via


ComputeNodeOperationsExtensions.UpdateUser Method

Definition

Updates the password and expiration time of a user Account on the specified Compute Node.

public static Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUpdateUserHeaders UpdateUser (this Microsoft.Azure.Batch.Protocol.IComputeNodeOperations operations, string poolId, string nodeId, string userName, Microsoft.Azure.Batch.Protocol.Models.NodeUpdateUserParameter nodeUpdateUserParameter, Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUpdateUserOptions computeNodeUpdateUserOptions = default);
static member UpdateUser : Microsoft.Azure.Batch.Protocol.IComputeNodeOperations * string * string * string * Microsoft.Azure.Batch.Protocol.Models.NodeUpdateUserParameter * Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUpdateUserOptions -> Microsoft.Azure.Batch.Protocol.Models.ComputeNodeUpdateUserHeaders
<Extension()>
Public Function UpdateUser (operations As IComputeNodeOperations, poolId As String, nodeId As String, userName As String, nodeUpdateUserParameter As NodeUpdateUserParameter, Optional computeNodeUpdateUserOptions As ComputeNodeUpdateUserOptions = Nothing) As ComputeNodeUpdateUserHeaders

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 update a user Account.

userName
String

The name of the user Account to update.

nodeUpdateUserParameter
NodeUpdateUserParameter

The parameters for the request.

computeNodeUpdateUserOptions
ComputeNodeUpdateUserOptions

Additional parameters for the operation

Returns

Remarks

This operation replaces of all the updatable properties of the Account. For example, if the expiryTime element is not specified, the current value is replaced with the default value, not left unmodified. You can update a user Account on a Compute Node only when it is in the idle or running state.

Applies to