Reputation: 3
I am trying to get list of subscriptions for a user. In order to execute "Get-AzureRMSubscription" we need to login first. But my intention is to get the list of subscriptions the user is associated to.
Upvotes: 0
Views: 3835
Reputation: 3421
You need first to login, only then can you run Get-AzureRmSubscription
Login-AzureRmAccount
Get-AzureRmSubscription
this will give you a list of all subscriptions that the user you logged in as, can access.
Upvotes: 4