公告
财富商城
积分规则
提问
发文
2019-04-28 01:58发布
欢心
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.
Login-AzureRmAccount
Get-AzureSubscription
Find the below screenshot
Well, you need to use Get-AzureRmSubscription (RM), since you are using the cmdlet for ASM mode, not ARM.
Get-AzureRmSubscription
There are 2 deployment modes in Azure, ASM (old) and ARM (new one).
Expanding on the other answers.
In Azure there is two deployment models. Azure Service Management (ASM) and Azure Resource Manager (ARM).
To interact with anything in ASM, you utilise the Azure Module, For Example:
Add-AzureAccount Logs into ASM
Add-AzureAccount
Select-AzureSubscription Selects the Subscription you allocate to work within
Select-AzureSubscription
Get-AzureSubscriptions Shows you all subscriptions
Get-AzureSubscriptions
To interact with anything in ARM, you utilise the AzureRM Modules, For Example:
Add-AzureRmAccount Logs into ARM
Add-AzureRmAccount
Select-AzureRmSubscription Selects the ARM Subscription you allocate to work within
Select-AzureRmSubscription
Login-AzureRmAccount Logs into ARM Also
ARM PowerShell Overview
ASM PowerShell Overview
最多设置5个标签!
Well, you need to use
Get-AzureRmSubscription
(RM), since you are using the cmdlet for ASM mode, not ARM.There are 2 deployment modes in Azure, ASM (old) and ARM (new one).
Expanding on the other answers.
In Azure there is two deployment models. Azure Service Management (ASM) and Azure Resource Manager (ARM).
To interact with anything in ASM, you utilise the Azure Module, For Example:
Add-AzureAccount
Logs into ASMSelect-AzureSubscription
Selects the Subscription you allocate to work withinGet-AzureSubscriptions
Shows you all subscriptionsTo interact with anything in ARM, you utilise the AzureRM Modules, For Example:
Add-AzureRmAccount
Logs into ARMSelect-AzureRmSubscription
Selects the ARM Subscription you allocate to work withinLogin-AzureRmAccount
Logs into ARM AlsoARM PowerShell Overview
ASM PowerShell Overview