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

BillingProfile.MaxPrice 属性

定义

获取或设置指定愿意为 Azure 现成 VM/VMSS 支付的最高价格。 此价格以美元为单位。 <br><br>此价格将与 VM 大小的当前 Azure 现成价格进行比较。 此外,在创建/更新 Azure 现成 VM/VMSS 时会比较价格,仅当 maxPrice 大于当前 Azure 现成价格时,操作才会成功。 <br><br>如果创建 VM/VMSS 后当前 Azure 现成价格超出 maxPrice,maxPrice 还将用于逐出 Azure 现成 VM/VMSS。 <br><br>可能的值为: <br><br> - 任何大于零的十进制值。 示例:0.01538 <br><br> -1 – 指示默认价格是按需的。 <br><br>可以将 maxPrice 设置为 -1,以指示不应出于价格原因逐出 Azure 现成 VM/VMSS。 此外,如果未提供,则默认最大价格为 -1。 <br><br>最低 API 版本:2019-03-01。

[Newtonsoft.Json.JsonProperty(PropertyName="maxPrice")]
public double? MaxPrice { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="maxPrice")>]
member this.MaxPrice : Nullable<double> with get, set
Public Property MaxPrice As Nullable(Of Double)

属性值

属性
Newtonsoft.Json.JsonPropertyAttribute

适用于