你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PoolSpecification.AutoScaleFormula 属性

定义

获取或设置池中所需计算节点数的公式。

public string AutoScaleFormula { get; set; }
member this.AutoScaleFormula : string with get, set
Public Property AutoScaleFormula As String

属性值

注解

有关如何编写自动缩放公式,请参阅 https://azure.microsoft.com/documentation/articles/batch-automatic-scaling/. 如果 AutoScaleEnabled 设置为 true,则此属性是必需的。 如果 AutoScaleEnabled 为 false,则该值必须为 null。

在创建池之前,将检查该公式的有效性。 如果公式无效,则在尝试提交 PoolSpecification时引发异常。

适用于