【问题标题】:How to install Azure CLI Billing Account如何安装 Azure CLI 计费帐户
【发布时间】:2021-03-17 11:40:43
【问题描述】:

我正在尝试跑步 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 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 azure-cli


    【解决方案1】:

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

    【讨论】:

    • 解决了这个问题真是太棒了。作为其他人升级 pre V2.11.0 的参考,您可以使用 Chocolatey。 `choco upgrade azure-cli`
    猜你喜欢
    • 2020-07-07
    • 2021-05-12
    • 1970-01-01
    • 2015-10-30
    • 2020-02-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多