IPoolManager.EvaluateAutoScaleAsync Method
Begins an asynchronous call to evaluate (test-run) an autoscale formula on the given pool. It does not change any state of the pool and it does not affect the last modified time or ETag of the pool.
Namespace: Microsoft.Azure.Batch
Assembly: Microsoft.Azure.Batch (in Microsoft.Azure.Batch.dll)
Usage
'Usage
Dim instance As IPoolManager
Dim poolName As String
Dim autoscaleFormula As String
Dim context As OperationContext
Dim additionalBehaviors As IEnumerable(Of BatchClientBehavior)
Dim returnValue As Task(Of AutoScaleEvaluation)
returnValue = instance.EvaluateAutoScaleAsync(poolName, autoscaleFormula, context, additionalBehaviors)
Syntax
'Declaration
Function EvaluateAutoScaleAsync ( _
poolName As String, _
autoscaleFormula As String, _
<OptionalAttribute> Optional context As OperationContext = Nothing, _
<OptionalAttribute> Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing _
) As Task(Of AutoScaleEvaluation)
Task<AutoScaleEvaluation> EvaluateAutoScaleAsync (
string poolName,
string autoscaleFormula,
[OptionalAttribute] OperationContext context,
[OptionalAttribute] IEnumerable<BatchClientBehavior> additionalBehaviors
)
Task<AutoScaleEvaluation^>^ EvaluateAutoScaleAsync (
String^ poolName,
String^ autoscaleFormula,
[OptionalAttribute] OperationContext^ context,
[OptionalAttribute] IEnumerable<BatchClientBehavior^>^ additionalBehaviors
)
Task<AutoScaleEvaluation> EvaluateAutoScaleAsync (
String poolName,
String autoscaleFormula,
/** @attribute OptionalAttribute() */ OperationContext context,
/** @attribute OptionalAttribute() */ IEnumerable<BatchClientBehavior> additionalBehaviors
)
function EvaluateAutoScaleAsync (
poolName : String,
autoscaleFormula : String,
context : OperationContext,
additionalBehaviors : IEnumerable<BatchClientBehavior>
) : Task<AutoScaleEvaluation>
Parameters
- poolName
The name of the pool.
- autoscaleFormula
The autoscale formula to be evaluated.
- context
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
IPoolManager Interface
IPoolManager Members
Microsoft.Azure.Batch Namespace