简体   繁体   English

powershell 中的 Az acr 命令不起作用

[英]Az acr commands in powershell is not working

I am not able to run '`我无法运行'`

az acr az acr

`' commands. `' 命令。 Getting below error.低于错误。 在此处输入图像描述

I tried to uninstall and re-install the Azure CLI msi.我尝试卸载并重新安装 Azure CLI msi。 But no luck.但没有运气。 Installer version: azure-cli-2.21.0.msi安装程序版本:azure-cli-2.21.0.msi

How can I get the command to run?如何让命令运行?

ps: I can see az --help and some other commands works. ps:我可以看到az --help和其他一些命令有效。

for some reason, My profile got updated and that lead to not listing of the subgroups when I did az --help .出于某种原因,我的个人资料得到了更新,导致我在执行az --help时没有列出子组。 Pointed it to latest and I could see all the sub groups including acr.将它指向latest的,我可以看到包括 acr 在内的所有子组。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM