Share via


PoolOperations.EnableAutoScaleAsync Method (String, String, IEnumerable<BatchClientBehavior>)

 

Enables automatic scaling on the specified pool.

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

Syntax

public Task EnableAutoScaleAsync(
    string poolId,
    string autoscaleFormula,
    IEnumerable<BatchClientBehavior> additionalBehaviors = null
)
public:
Task^ EnableAutoScaleAsync(
    String^ poolId,
    String^ autoscaleFormula,
    IEnumerable<BatchClientBehavior^>^ additionalBehaviors = null
)
member EnableAutoScaleAsync : 
        poolId:string *
        autoscaleFormula:string *
        additionalBehaviors:IEnumerable<BatchClientBehavior> = null -> Task
Public Function EnableAutoScaleAsync (
    poolId As String,
    autoscaleFormula As String,
    additionalBehaviors As IEnumerable(Of BatchClientBehavior)
) As Task

Parameters

  • autoscaleFormula
    Type: System.String

    The formula for the desired number of compute nodes in the pool.

Return Value

Type: System.Threading.Tasks.Task

A Task that represents the asynchronous operation.

Remarks

The formula is checked for validity before it is applied to the pool. If the formula is not valid, an exception occurs.

You cannot enable automatic scaling on a pool if a resize operation is in progress on the pool.

The enable autoscale operation runs asynchronously.

See Also

PoolOperations Class
Microsoft.Azure.Batch Namespace

Return to top