Azure Cli如何更改订阅默认值 [英] Azure Cli how to change subscription default
本文介绍了Azure Cli如何更改订阅默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的Azure帐户中有3个订阅,我需要更改默认订阅.当我运行命令时:
I have 3 subscription in my Azure Account, I need to change the default subscription. When i Run the command:
azure account list
我有这个输出:
我试图以这种方式更改默认或当前订阅,但没有结果...
I have tried to change the default or current subscription on this way, with no results...
azure config set subscription {{MyIdSubscription}}
有什么想法吗?谢谢.
推荐答案
对于Azure CLI 2.0(预览版),我不得不使用
For Azure CLI 2.0 (preview) I had to use
az account set --subscription <name or id>
这篇关于Azure Cli如何更改订阅默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文