我的Azure帐户中有3个订阅,我需要更改默认订阅。当我运行命令时:
azure account list
我有这个输出:
我试图以这种方式更改默认或当前订阅,没有结果......
azure config set subscription {{MyIdSubscription}}
有任何想法吗?谢谢。
对于Azure CLI 2.0(预览版),我必须使用
az account set --subscription <name or id>
请尝试以下方法:
azure account set -s {Subscription Id}
这应该会改变订阅。
使用GUID的id(订阅ID),这将在您执行az login时列出
az login
然后执行以下命令..
az account set --subscription fffde5cb-cccc-aaaa-eee-457c3292608e