My Azure account having one subscription is added as a contributor to another Azure account. Using Login-AzureRmAccount
in PowerShell, I login to my account and Get-AzureSubscription
returns only my own subscription. On the Azure portal, I can switch between these two subscriptions and create/remove resources on the other subscription.
I have checked Select-AzureSubscription
, and it can be used in case Get-AzureSubscription
returns multiple accounts to choose among them.
I also do not have the credentials of the other account to login manually.
Is there any way to access my contributor-role subscription in PowerShell and run Azure scripts on it?