共用方式為


BillingProfile 類別

指定 Azure Spot VM 或 VMSS 的計費相關詳細資料。 API 版本下限:2019-03-01。

繼承
azure.mgmt.compute._serialization.Model
BillingProfile

建構函式

BillingProfile(*, max_price: float | None = None, **kwargs: Any)

僅限關鍵字的參數

名稱 Description
max_price

指定您願意支付 Azure Spot VM/VMSS 的最大價格。 此價格以美元為單位。 <br>``<br> 此價格將會與 VM 大小的目前 Azure Spot 價格進行比較。 此外,價格會在建立/更新 Azure Spot VM/VMSS 時進行比較,而且只有在 maxPrice 大於目前的 Azure Spot 價格時,作業才會成功。 <br>``<br> 如果目前的 Azure Spot 價格在建立 VM/VMSS 之後超過 maxPrice,則 maxPrice 也會用於收回 Azure Spot VM/VMSS。 <br>``<br> 可能的值為: <br>``<br> - 大於零的任何十進位值。 範例:0.01538 <br>``<br> -1 – 表示預設價格為隨選。 <br>``<br> 您可以將 maxPrice 設定為 -1,以指出基於價格考慮,不應收回 Azure Spot VM/VMSS。 此外,如果預設的最大值價格不是由您提供,則為 -1。 <br>:code: >><<<br> 最低 api-version:2019-03-01。

變數

名稱 Description
max_price

指定您願意支付 Azure Spot VM/VMSS 的最大價格。 此價格以美元為單位。 <br>``<br> 此價格將會與 VM 大小的目前 Azure Spot 價格進行比較。 此外,價格會在建立/更新 Azure Spot VM/VMSS 時進行比較,而且只有在 maxPrice 大於目前的 Azure Spot 價格時,作業才會成功。 <br>``<br> 如果目前的 Azure Spot 價格在建立 VM/VMSS 之後超過 maxPrice,則 maxPrice 也會用於收回 Azure Spot VM/VMSS。 <br>``<br> 可能的值為: <br>``<br> - 大於零的任何十進位值。 範例:0.01538 <br>``<br> -1 – 表示預設價格為隨選。 <br>``<br> 您可以將 maxPrice 設定為 -1,以指出基於價格考慮,不應收回 Azure Spot VM/VMSS。 此外,如果預設的最大值價格不是由您提供,則為 -1。 <br>:code: >><<<br> 最低 api-version:2019-03-01。