in.sane.prasain
in.sane.prasain

Reputation: 3

Powershell script to get list of subscriptions for provided user name

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

Answers (1)

kim
kim

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

Related Questions