如何安装 Azure CLI 计费帐户

How to install Azure CLI Billing Account

我正在尝试 运行 az billing account list

然而,当我 运行 我得到:

az billing: 'account' is not in the 'az billing' command group. See 'az billing --help'. If the command is from an extension, please make sure the corresponding extension is installed. To learn more about extensions, please visit https://docs.microsoft.com/en-us/cli/azure/azure-cli-extensions-overview

我已经安装了 account 扩展,但它仍然没有用。

如果我 运行 它在云端 Shell 我得到:

Command group 'billing account' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
[]

所以我在这里得到了回复。

我找不到任何东西来安装这个扩展或预览扩展。
回购没有它 https://github.com/Azure/azure-cli
Python Repo 没有它 https://pypi.org/user/microsoft/
没有关于文档的信息 https://docs.microsoft.com/en-us/rest/api/billing/2019-10-01-preview/billingaccounts
列出扩展名不显示任何内容 https://docs.microsoft.com/en-us/cli/azure/azure-cli-extensions-overview

升级后的计费命令随 Azure CLI 2.15.0 一起提供,您与 Azure 一起使用的云 Shell 可能是旧版本,请尝试更新并查看