Connecting to Azure not working

In PowerShell ISE I try to connect to my Azure environment with the command Connect-AzAccount -Tenant d7xxxx3-xxxx-4c45-8eb5-57fdfaxxxxce -Subscription MSDN-platforms.

I tried it with the subsription name with and without quotes.

I log on in a window that opened but than it says that I don’t have access with that account.

The provided account e.hxxxxs@12xxx.nl does not have access to subscription name “MSDN-platforms”. Please try logging in with different credentials or a different subscription name.

Strange, cause I am Account Admin in this subscription and I’m already using it for years now. I can create servers, databases etc. But it’s been a while since I tried to connect with PS.

When I use (Get-AzContext).Subscription.Name than it says “Azure Pass - Sponsorship”. But that trial have long since ended. I cannot access it in my Azure Portal.

Can it have anything to do with MFA? And how can I logon with my account with PowerShell to Azure?

What role(s) is the account assigned when you look on the Access control (IAM) blade in the subscription?

Eeeerrr… None. But I changed it and it works. Thanks for your help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.