共用方式為


az billing-benefits savings-plan

注意

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

Azure 計費權益可節省方案命令。

命令

名稱 Description 類型 狀態
az billing-benefits savings-plan list

列出節省計畫。

擴充 GA

az billing-benefits savings-plan list

列出節省計畫。

az billing-benefits savings-plan list [--filter]
                                      [--orderby]
                                      [--selected-state]
                                      [--skiptoken]
                                      [--take]

範例

列出篩選和 orderby 的儲存計畫專案

az billing-benefits savings-plan list --filter "properties/userFriendlyAppliedScopeType eq 'Shared'" --orderby "properties/displayName asc"

列出節省方案專案

az billing-benefits savings-plan list

選擇性參數

--filter

可用來依保留屬性進行篩選。 篩選支援 'eq'、'or' 和 'and'。 它目前不支援 'ne'、'gt'、'le'、'ge'或 'not'。 保留屬性包括 sku/name、properties/{appliedScopeType、archived、displayName、displayProvisioningState、effectiveDateTime、expiryDate、provisioningState、quantity、renew、reservedResourceType、term、userFriendlyAppliedScopeType、userFriendlyRenewState}。

--orderby

可用來依保留屬性排序次序。

--selected-state

選取的布建狀態。

--skiptoken

傳回結果之前,要略過清單的節省計畫數目。

--take

要傳回的節省計畫數目。

全域參數
--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 來取得完整偵錯記錄。