Share via


CloudPool.RemoveFromPoolAsync Method (IEnumerable<String>, Nullable<ComputeNodeDeallocationOption>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

 

Removes the specified compute nodes from this pool.

Namespace:   Microsoft.Azure.Batch
Assembly:  Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)

Syntax

public Task RemoveFromPoolAsync(
    IEnumerable<string> computeNodeIds,
    Nullable<ComputeNodeDeallocationOption> deallocationOption = null,
    Nullable<TimeSpan> resizeTimeout = null,
    IEnumerable<BatchClientBehavior> additionalBehaviors = null
)
public:
Task^ RemoveFromPoolAsync(
    IEnumerable<String^>^ computeNodeIds,
    Nullable<ComputeNodeDeallocationOption> deallocationOption = null,
    Nullable<TimeSpan> resizeTimeout = null,
    IEnumerable<BatchClientBehavior^>^ additionalBehaviors = null
)
member RemoveFromPoolAsync : 
        computeNodeIds:IEnumerable<string> *
        deallocationOption:Nullable<ComputeNodeDeallocationOption> = null *
        resizeTimeout:Nullable<TimeSpan> = null *
        additionalBehaviors:IEnumerable<BatchClientBehavior> = null -> Task
Public Function RemoveFromPoolAsync (
    computeNodeIds As IEnumerable(Of String),
    deallocationOption As Nullable(Of ComputeNodeDeallocationOption),
    resizeTimeout As Nullable(Of TimeSpan),
    additionalBehaviors As IEnumerable(Of BatchClientBehavior)
) As Task

Parameters

  • resizeTimeout
    Type: System.Nullable<TimeSpan>

    Specifies the timeout for removal of compute nodes from the pool. The default value is 10 minutes. The minimum value is 5 minutes.

Return Value

Type: System.Threading.Tasks.Task

A Task that represents the asynchronous operation.

Remarks

You can only remove nodes from a pool when the AllocationState of the pool is Steady. If the pool is already resizing, an exception occurs.

When you remove nodes from a pool, the pool's AllocationState changes from Steady to Resizing.

The remove operation runs asynchronously.

See Also

RemoveFromPoolAsync Overload
CloudPool Class
Microsoft.Azure.Batch Namespace

Return to top