PoolOperationsExtensions.EvaluateAutoScale Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the result of evaluating an automatic scaling formula on the Pool.
public static Microsoft.Azure.Batch.Protocol.Models.AutoScaleRun EvaluateAutoScale (this Microsoft.Azure.Batch.Protocol.IPoolOperations operations, string poolId, string autoScaleFormula, Microsoft.Azure.Batch.Protocol.Models.PoolEvaluateAutoScaleOptions poolEvaluateAutoScaleOptions = default);
static member EvaluateAutoScale : Microsoft.Azure.Batch.Protocol.IPoolOperations * string * string * Microsoft.Azure.Batch.Protocol.Models.PoolEvaluateAutoScaleOptions -> Microsoft.Azure.Batch.Protocol.Models.AutoScaleRun
<Extension()>
Public Function EvaluateAutoScale (operations As IPoolOperations, poolId As String, autoScaleFormula As String, Optional poolEvaluateAutoScaleOptions As PoolEvaluateAutoScaleOptions = Nothing) As AutoScaleRun
Parameters
- operations
- IPoolOperations
The operations group for this extension method.
- poolId
- String
The ID of the Pool on which to evaluate the automatic scaling formula.
- autoScaleFormula
- String
The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure Batch Pool (https://azure.microsoft.com/documentation/articles/batch-automatic-scaling).
- poolEvaluateAutoScaleOptions
- PoolEvaluateAutoScaleOptions
Additional parameters for the operation
Returns
Remarks
This API is primarily for validating an autoscale formula, as it simply returns the result without applying the formula to the Pool. The Pool must have auto scaling enabled in order to evaluate a formula.
Applies to
Azure SDK for .NET