Condividi tramite


PoolOperationsExtensions.RemoveNodes Method

Definition

Removes Compute Nodes from the specified Pool.

public static Microsoft.Azure.Batch.Protocol.Models.PoolRemoveNodesHeaders RemoveNodes (this Microsoft.Azure.Batch.Protocol.IPoolOperations operations, string poolId, Microsoft.Azure.Batch.Protocol.Models.NodeRemoveParameter nodeRemoveParameter, Microsoft.Azure.Batch.Protocol.Models.PoolRemoveNodesOptions poolRemoveNodesOptions = default);
static member RemoveNodes : Microsoft.Azure.Batch.Protocol.IPoolOperations * string * Microsoft.Azure.Batch.Protocol.Models.NodeRemoveParameter * Microsoft.Azure.Batch.Protocol.Models.PoolRemoveNodesOptions -> Microsoft.Azure.Batch.Protocol.Models.PoolRemoveNodesHeaders
<Extension()>
Public Function RemoveNodes (operations As IPoolOperations, poolId As String, nodeRemoveParameter As NodeRemoveParameter, Optional poolRemoveNodesOptions As PoolRemoveNodesOptions = Nothing) As PoolRemoveNodesHeaders

Parameters

operations
IPoolOperations

The operations group for this extension method.

poolId
String

The ID of the Pool from which you want to remove Compute Nodes.

nodeRemoveParameter
NodeRemoveParameter

The parameters for the request.

poolRemoveNodesOptions
PoolRemoveNodesOptions

Additional parameters for the operation

Returns

Remarks

This operation can only run when the allocation state of the Pool is steady. When this operation runs, the allocation state changes from steady to resizing. Each request may remove up to 100 nodes.

Applies to