az billing-benefits
Note
此参考是 Azure CLI(版本 2.43.0 或更高版本) 的计费权益 扩展的一部分。 该扩展将在首次运行 az billing-benefits 命令时自动安装。 了解更多关于扩展的信息。
Azure 计费权益命令。
命令
az billing-benefits validate-purchase
验证节省计划购买。
az billing-benefits validate-purchase [--benefits]
示例
验证节省计划购买
az billing-benefits validate-purchase --benefits "[{applied-scope-type:Shared,billing-plan:P1M,billing-scope-id:50000000-aaaa-bbbb-cccc-200000000012,display-name:name1,sku:Compute_Savings_Plan,term:P1Y,commitment:{amount:10.0,currency-code:USD,grain:Hourly}}]"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| Parameter group: | Body Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |