【问题标题】:Az acr commands in powershell is not workingPowershell 中的 Az acr 命令不起作用
【发布时间】:2021-03-30 13:43:58
【问题描述】:

我无法运行'`

az acr

`' 命令。 低于错误。

我尝试卸载并重新安装 Azure CLI msi。但没有运气。 安装程序版本:azure-cli-2.21.0.msi

如何让命令运行?

ps:我可以看到az --help 和其他一些命令有效。

【问题讨论】:

标签: azure powershell command-line-interface


【解决方案1】:

由于某种原因,我的个人资料已更新,导致我在az --help 时未列出子组。将其指向latest,我可以看到包括 acr 在内的所有子组。

az cloud list-profiles --show-all
az cloud set --name AzureCloud --profile  latest

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多