共用方式為


az billing-benefits reservation-order-aliases

注意

此參考是 Azure CLI 計費權益 延伸模組的一部分 (2.43.0 版或更高版本)。 擴充功能會在您第一次執行 az billing-benefits reservation-order-aliases 命令時自動安裝。 深入了解擴充功能。

Azure 計費權益保留訂單別名命令。

命令

名稱 Description 類型 狀態
az billing-benefits reservation-order-aliases create

建立保留訂單別名。

擴充 GA
az billing-benefits reservation-order-aliases show

取得保留訂單別名。

擴充 GA
az billing-benefits reservation-order-aliases wait

將 CLI 置於等候狀態,直到符合條件為止。

擴充 GA

az billing-benefits reservation-order-aliases create

建立保留訂單別名。

az billing-benefits reservation-order-aliases create --order-alias-name
                                                     [--applied-scope-prop]
                                                     [--applied-scope-type {ManagementGroup, Shared, Single}]
                                                     [--billing-plan {P1M}]
                                                     [--billing-scope-id]
                                                     [--display-name]
                                                     [--instance-flexibility {Off, On}]
                                                     [--location]
                                                     [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                     [--quantity]
                                                     [--renew {0, 1, f, false, n, no, t, true, y, yes}]
                                                     [--reserved-resource-type {AVS, AppService, AzureDataExplorer, AzureFiles, BlockBlob, CosmosDb, DataFactory, Databricks, DedicatedHost, ManagedDisk, MariaDb, MySql, NetAppStorage, PostgreSql, RedHat, RedHatOsa, RedisCache, SapHana, SqlAzureHybridBenefit, SqlDataWarehouse, SqlDatabases, SqlEdge, SuseLinux, VMwareCloudSimple, VirtualMachineSoftware, VirtualMachines}]
                                                     [--review-date-time]
                                                     [--sku]
                                                     [--term {P1Y, P3Y, P5Y}]

範例

建立保留

az billing-benefits reservation-order-aliases create --order-alias-name TestRO --location westus --applied-scope-type Single --applied-scope-prop "{subscription-id:/subscriptions/30000000-aaaa-bbbb-cccc-200000000004}" --billing-plan P1M --billing-scope-id /subscriptions/30000000-aaaa-bbbb-cccc-200000000004 --display-name TestRO --quantity 1 --renew false --reserved-resource-type VirtualMachines --sku Standard_B1ls  --term P1Y --instance-flexibility On

必要參數

--order-alias-name

保留順序別名的名稱。

選擇性參數

--applied-scope-prop

套用範圍類型的特定屬性。 如果不適用,則不需要。 支援速記語法、json-file 和 yaml-file。 請嘗試 「??」 以顯示更多。

--applied-scope-type

套用範圍的類型。

接受的值: ManagementGroup, Shared, Single
--billing-plan

表示 ISO 8601 格式的計費方案。 僅適用于每月計費方案。

接受的值: P1M
--billing-scope-id

將針對購買權益收取費用的訂用帳戶。

--display-name

顯示名稱。

--instance-flexibility

開啟此選項會將保留折扣套用至相同 VM 大小群組中的其他 VM。

接受的值: Off, On
--location -l

套用保留權益的 Azure 區域。

--no-wait

請勿等候長時間執行的作業完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--quantity

在保留中購買的 SKU 總數。

--renew

將此設定為 true 會自動在到期日期時間購買新的權益。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
預設值: False
--reserved-resource-type

正在保留的資源類型。

接受的值: AVS, AppService, AzureDataExplorer, AzureFiles, BlockBlob, CosmosDb, DataFactory, Databricks, DedicatedHost, ManagedDisk, MariaDb, MySql, NetAppStorage, PostgreSql, RedHat, RedHatOsa, RedisCache, SapHana, SqlAzureHybridBenefit, SqlDataWarehouse, SqlDatabases, SqlEdge, SuseLinux, VMwareCloudSimple, VirtualMachineSoftware, VirtualMachines
--review-date-time

這是需要檢閱 Azure Hybrid Benefit 的日期時間。

--sku

要套用的 SKU 名稱。

--term

以 ISO 8601 格式表示權益字詞。

接受的值: P1Y, P3Y, P5Y
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az billing-benefits reservation-order-aliases show

取得保留訂單別名。

az billing-benefits reservation-order-aliases show --order-alias-name

範例

顯示保留訂單別名的詳細資料

az billing-benefits order-aliases show --reservation-order-alias-name TestRO

必要參數

--order-alias-name

保留順序別名的名稱。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az billing-benefits reservation-order-aliases wait

將 CLI 置於等候狀態,直到符合條件為止。

az billing-benefits reservation-order-aliases wait --order-alias-name
                                                   [--created]
                                                   [--custom]
                                                   [--deleted]
                                                   [--exists]
                                                   [--interval]
                                                   [--timeout]
                                                   [--updated]

必要參數

--order-alias-name

保留順序別名的名稱。

選擇性參數

--created

請等候在 'Succeeded' 使用 'provisioningState' 建立。

預設值: False
--custom

等到條件符合自訂 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--interval

輪詢間隔以秒為單位。

預設值: 30
--timeout

以秒為單位的等候上限。

預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

預設值: False
全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。