你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PoolOperations.DeleteComputeNodeUser Method

Definition

Deletes the specified user account from the specified compute node.

public void DeleteComputeNodeUser(string poolId, string computeNodeId, string userName, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default);
member this.DeleteComputeNodeUser : string * string * string * seq<Microsoft.Azure.Batch.BatchClientBehavior> -> unit
Public Sub DeleteComputeNodeUser (poolId As String, computeNodeId As String, userName As String, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing)

Parameters

poolId
String

The id of the pool that contains the compute node.

computeNodeId
String

The id of the compute node from which you want to delete the user account.

userName
String

The name of the user account to be deleted.

additionalBehaviors
IEnumerable<BatchClientBehavior>

A collection of BatchClientBehavior instances that are applied to the Batch service request after the CustomBehaviors.

Remarks

You can delete a user account from a compute node only when it is in the Idle or Running state.

This is a blocking operation. For a non-blocking equivalent, see DeleteComputeNodeUserAsync(String, String, String, IEnumerable<BatchClientBehavior>, CancellationToken).

Applies to