共用方式為


BillingProfile interface

指定 Azure Spot VM 或 VMSS 的計費相關詳細數據。

API 版本下限:2019-03-01。

屬性

maxPrice

指定您願意為 Azure Spot VM/VMSS 付費的最高價格。 這個價格以美元為單位。

此價格會與 VM 大小的目前 Azure Spot 價格進行比較。 此外,價格會在建立/更新 Azure Spot VM/VMSS 時進行比較,只有在 maxPrice 大於目前的 Azure Spot 價格時,作業才會成功。

如果目前的 Azure Spot 價格超出建立 VM/VMSS 之後的 maxPrice,maxPrice 也會用於收回 Azure Spot VM/VMSS。

可能的值為:

- 任何大於零的十進位值。 範例:0.01538

-1 – 表示預設價格 up-to 隨選。

您可以將 maxPrice 設定為 -1,表示基於價格原因,不應收回 Azure Spot VM/VMSS。 此外,如果未提供默認價格上限,則會 -1。

API 版本下限:2019-03-01。

屬性詳細資料

maxPrice

指定您願意為 Azure Spot VM/VMSS 付費的最高價格。 這個價格以美元為單位。

此價格會與 VM 大小的目前 Azure Spot 價格進行比較。 此外,價格會在建立/更新 Azure Spot VM/VMSS 時進行比較,只有在 maxPrice 大於目前的 Azure Spot 價格時,作業才會成功。

如果目前的 Azure Spot 價格超出建立 VM/VMSS 之後的 maxPrice,maxPrice 也會用於收回 Azure Spot VM/VMSS。

可能的值為:

- 任何大於零的十進位值。 範例:0.01538

-1 – 表示預設價格 up-to 隨選。

您可以將 maxPrice 設定為 -1,表示基於價格原因,不應收回 Azure Spot VM/VMSS。 此外,如果未提供默認價格上限,則會 -1。

API 版本下限:2019-03-01。

maxPrice?: number

屬性值

number