你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az billing-benefits savings-plan

注意

此参考是 Azure CLI(版本 2.43.0 或更高版本)的计费权益扩展的一部分。 该扩展将在首次运行 az billing-benefits savings-plan 命令时自动安装。 详细了解扩展。

Azure 计费权益节省计划命令。

命令

名称 说明 类型 状态
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

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。