Share via


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

 

Enables automatic scaling on this pool.

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

Syntax

public Task EnableAutoScaleAsync(
    string autoscaleFormula,
    IEnumerable<BatchClientBehavior> additionalBehaviors = null
)
public:
Task^ EnableAutoScaleAsync(
    String^ autoscaleFormula,
    IEnumerable<BatchClientBehavior^>^ additionalBehaviors = null
)
member EnableAutoScaleAsync : 
        autoscaleFormula:string *
        additionalBehaviors:IEnumerable<BatchClientBehavior> = null -> Task
Public Function EnableAutoScaleAsync (
    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

CloudPool Class
Microsoft.Azure.Batch Namespace

Return to top