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

az billing account

此命令组处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

Billing account.

命令

名称 说明 类型 Status
az billing account invoice-section

管理帐户发票科目。

Core Preview
az billing account invoice-section list

列出用户有权访问的所有发票科目。

Core Preview
az billing account invoice-section show

按 ID 获取 InvoiceSection。

Core Preview
az billing account list

列出用户有权访问的计费帐户。

Core Preview
az billing account list-invoice-section

列出用户有权为其创建 Azure 订阅的发票科目。 该操作仅支持协议类型为Microsoft客户协议的计费帐户。

Core Preview
az billing account reservation

管理帐户预留。

Core Preview
az billing account reservation list

通过预配状态列出计费帐户的预留和预留组的汇总计数。

Core Preview
az billing account show

按其 ID 获取计费帐户。

Core Preview
az billing account transaction

管理计费帐户事务。

Core Preview
az billing account transaction list

按给定开始日期和结束日期的计费帐户名称列出计费和未计费的事务。 交易包括购买、退款和 Azure 使用费。 未计费的交易在待定发票 ID 下列出,不包括税款。 生成发票后,会向金额添加税款。

Core Preview
az billing account update

更新计费帐户的属性。 目前,可以更新 displayName 和地址。 该操作仅支持协议类型为Microsoft客户协议的计费帐户。

Core Preview
az billing account wait

将 CLI 置于等待状态,直到满足计费帐户的条件。

Core Preview

az billing account list

预览

命令组“计费帐户”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

列出用户有权访问的计费帐户。

az billing account list [--expand]

示例

列出计费帐户

az billing account list

列出具有所需扩展参数的计费帐户

az billing account list --expand "soldTo,billingProfiles,billingProfiles/invoiceSections"

列出具有所需扩展参数的计费帐户

az billing account list --expand "enrollmentDetails,departments,enrollmentAccounts"

可选参数

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

--expand

可用于扩展 soldTo、发票科目和计费配置文件。

全局参数
--debug

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

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

显示此帮助消息并退出。

--only-show-errors

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

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

Output format.

属性
默认值: 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

az billing account list-invoice-section

预览

命令组“计费帐户”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

列出用户有权为其创建 Azure 订阅的发票科目。 该操作仅支持协议类型为Microsoft客户协议的计费帐户。

az billing account list-invoice-section --billing-account-name
                                        [--max-items]
                                        [--next-token]

必需参数

--billing-account-name

唯一标识计费帐户的 ID。

可选参数

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

--max-items

命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token 参数中提供令牌值。

属性
Parameter group: Pagination Arguments
--next-token

用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。

属性
Parameter group: Pagination Arguments
全局参数
--debug

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

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

显示此帮助消息并退出。

--only-show-errors

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

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

Output format.

属性
默认值: 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

az billing account show

预览

命令组“计费帐户”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

按其 ID 获取计费帐户。

az billing account show --name
                        [--expand]

示例

显示具有扩展属性的计费帐户

az billing account show --expand "soldTo,billingProfiles,billingProfiles/invoiceSections" --name "{billingAccountName}"

显示具有默认属性的计费帐户

az billing account show --name "{billingAccountName}"

必需参数

--name -n

唯一标识计费帐户的 ID。

可选参数

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

--expand

可用于扩展 soldTo、发票科目和计费配置文件。

全局参数
--debug

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

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

显示此帮助消息并退出。

--only-show-errors

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

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

Output format.

属性
默认值: 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

az billing account update

预览

命令组“计费帐户”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

更新计费帐户的属性。 目前,可以更新 displayName 和地址。 该操作仅支持协议类型为Microsoft客户协议的计费帐户。

az billing account update --name
                          [--billing-profiles-value]
                          [--departments]
                          [--display-name]
                          [--enrollment-accounts]
                          [--no-wait]
                          [--sold-to]

示例

更新计费帐户

az billing account update --name "{billingAccountName}" --display-name "Test Account" --sold-to address-line1="Test Address 1" city="Redmond" company-name="Contoso" country="US" first-name="Test" last-name="User" postal-code="12345" region="WA"

必需参数

--name -n

唯一标识计费帐户的 ID。

可选参数

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

--billing-profiles-value

与计费帐户关联的计费配置文件。 预期值:json-string/@json-file。

--departments

与注册关联的部门。 预期值:json-string/@json-file。

--display-name

计费帐户名称。

--enrollment-accounts

与注册关联的帐户。 预期值:json-string/@json-file。

--no-wait

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

属性
默认值: False
--sold-to

负责计费帐户的个人或组织的地址。

用法:--sold-to first-name=XX last-name=XX company-name=XX address-line1=XX address-line2=XX address-line3=XX city=XX region=XX region=XX country=XX postal-code=XX email=XX phone-number=XX。

全局参数
--debug

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

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

显示此帮助消息并退出。

--only-show-errors

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

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

Output format.

属性
默认值: 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

az billing account wait

预览

命令组“计费帐户”处于预览状态,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus

将 CLI 置于等待状态,直到满足计费帐户的条件。

az billing account wait --name
                        [--created]
                        [--custom]
                        [--deleted]
                        [--exists]
                        [--expand]
                        [--interval]
                        [--timeout]
                        [--updated]

示例

暂停执行下一行 CLI 脚本,直到计费帐户成功更新。

az billing account wait --name "{billingAccountName}" --updated

必需参数

--name -n

唯一标识计费帐户的 ID。

可选参数

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

--created

等待在“Succeeded”中使用“provisioningState”创建。

属性
Parameter group: Wait Condition Arguments
默认值: False
--custom

等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

属性
Parameter group: Wait Condition Arguments
--deleted

等到删除为止。

属性
Parameter group: Wait Condition Arguments
默认值: False
--exists

等待资源存在。

属性
Parameter group: Wait Condition Arguments
默认值: False
--expand

可用于扩展 soldTo、发票科目和计费配置文件。

--interval

轮询间隔(以秒为单位)。

属性
Parameter group: Wait Condition Arguments
默认值: 30
--timeout

最大等待(以秒为单位)。

属性
Parameter group: Wait Condition Arguments
默认值: 3600
--updated

等到 provisioningState 更新为“Succeeded”。

属性
Parameter group: Wait Condition Arguments
默认值: False
全局参数
--debug

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

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

显示此帮助消息并退出。

--only-show-errors

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

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

Output format.

属性
默认值: 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