0

1) I open Azure portal with my user account john.smith@mycompany.com at subs id "111111111111111111111111111". I can successfully create new resource as I'm contributor.

2) I run Az command to create resource and connect with following.

Connect-AzAccount -Subscription "111111111111111111111111111"

ERROR:

Connect-AzAccount : The provided account john.smith@mycompany.com does not have access to 
subscription ID "111111111111111111111111111". Please try logging in with different 
credentials or a different subscription ID.

What could be wrong?

Kenny_I
  • 2,001
  • 5
  • 40
  • 94

1 Answers1

0

Try the following link it might help you if you haven't figured it out already

Connect-AzAccount - how to avoid azure device authentification?