共用方式為


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。