首页 > 解决方案 > 如何安装 Azure CLI 计费帐户

问题描述

我正在尝试运行 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扩展,但它仍然没有工作。

如果我在 Cloud 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 回购没有它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

标签: azureazure-cli

解决方案


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


推荐阅读