Login-AzureRmAccount返回订阅,但Get-AzureSubscription返回空 [英] Login-AzureRmAccount return subscription but Get-AzureSubscription return empty
本文介绍了Login-AzureRmAccount返回订阅,但Get-AzureSubscription返回空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我能够使用Login-AzureRmAccount
成功登录.另外,我还可以在Login-AzureRmAccount的返回值中看到我的订阅.但是登录后,如果我键入Get-AzureSubscription
,它将返回空.
I am able to login successfully with the Login-AzureRmAccount
. Also I am able to see my subscription in the return value of Login-AzureRmAccount. But after login, if I type Get-AzureSubscription
it return empty.
找到以下屏幕截图
推荐答案
好,您需要使用Get-AzureRmSubscription
(RM),因为您将cmdlet用于ASM模式,而不是ARM.
Well, you need to use Get-AzureRmSubscription
(RM), since you are using the cmdlet for ASM mode, not ARM.
Azure中有2种部署模式,ASM(旧)和ARM(新模式).
There are 2 deployment modes in Azure, ASM (old) and ARM (new one).
这篇关于Login-AzureRmAccount返回订阅,但Get-AzureSubscription返回空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文