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

 

Gets the result of evaluating an automatic scaling formula on this pool. This is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the pool.

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

Syntax

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

Parameters

  • autoscaleFormula
    Type: System.String

    The formula to be evaluated on the pool.

Return Value

Type: System.Threading.Tasks.Task<AutoScaleEvaluation>

The result of evaluating the autoscaleFormula on this pool.

Remarks

The formula is validated and its results calculated, but is not applied to the pool. To apply the formula to the pool, use EnableAutoScaleAsync.

This method does not change any state of the pool, and does not affect the LastModified or ETag.

The evaluate operation runs asynchronously.

See Also

CloudPool Class
Microsoft.Azure.Batch Namespace

Return to top