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

az costmanagement

Note

此参考是 Azure CLI(版本 2.55.0 或更高版本) 的成本管理 扩展的一部分。 该扩展将在首次运行 az costmanagement 命令时自动安装。 了解更多关于扩展的信息。

Costmanagement.

命令

名称 说明 类型 Status
az costmanagement export

Costmanagement 导出。

Extension GA
az costmanagement export create

用于创建导出的作。

Extension GA
az costmanagement export delete

用于删除导出的作。

Extension GA
az costmanagement export list

列出给定范围内所有导出的作。

Extension GA
az costmanagement export show

通过导出名称获取定义的范围的导出的执行历史记录的操作。

Extension GA
az costmanagement export update

用于更新导出的作。

Extension GA
az costmanagement show-operation-result

获取指定作的结果。 此 operationId 的链接作为初始请求的响应标头提供。

Extension GA

az costmanagement show-operation-result

获取指定作的结果。 此 operationId 的链接作为初始请求的响应标头提供。

az costmanagement show-operation-result --operation-id
                                        --scope
                                        [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]

必需参数

--operation-id

目标作 ID。

--scope

订阅、资源组、计费帐户或其他计费范围的 ARM 资源 ID。 有关详细信息,请参阅 https://aka.ms/costmgmt/scopes

可选参数

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--no-wait

不等待长时间运行的操作完成。

属性
接受的值: 0, 1, f, false, n, no, t, true, y, yes
全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

属性
默认值: False
--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

属性
默认值: False
--output -o

输出格式。

属性
默认值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

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

--verbose

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

属性
默认值: False