azure - 如何安装 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
解决方案
升级后的计费命令随 Azure CLI 2.15.0 提供,您与 Azure 一起使用的 Cloud Shell 可能是旧版本,请尝试更新并查看
推荐阅读
- node.js - vm runInNewContext 在使用模块 _compile 时不执行代码
- java - CompletableFuture.runAsync(task) 和 Platform.runLater(()->new Thread(task).start()) 是否具有相同的行为?
- swiftui - 如何根据日期显示不同的视图
- c++ - break 语句没有退出循环
- scala - 在启动主逻辑之前处理 Actor 需求
- mqtt - Mosquitto bridge CPU消耗随时间增加
- asp.net - Asp.Net:在 Application_End 上发送 SignalR 消息
- ios - 无法传输工件 com.mobidevelop.robovm
- swift - 分隔线出现早于单元格标题并且图像超出 UIImageView
- node.js - message.reply 中的 Discord.js 用户输入