“To sign into this application the account must be added to the domain.com directory”

前端 未结 3 1244
感动是毒
感动是毒 2020-12-20 19:08

I\'m trying to login to our Azure account from Powershell. I installed the proper module but am unable to get passed the following error:

PS C:> Add-A

相关标签:
3条回答
  • 2020-12-20 19:49

    Try using the cmdlet "add-azureaccount" without any parameters, you will get a simple login screen popup where you can enter your azure credentials.

    0 讨论(0)
  • 2020-12-20 19:53

    Login at https://manage.windowsazure.com/ and select Subscriptions > Manage subscriptions\directory. Each subscription is associated with a particular Azure Active Directory. Select Active Directory from the list of services on the left menu. Open up directory you are interested in. The list of users will say if it is sourced from a Microsoft account or Windows Azure Active Directory. You can only automate signing in to a Azure AD account.

    You can create an account by selecting add user and New user in your organization.

    I wish I could sign in from the command line without a UI prompt using my Microsoft account. I'm not sure why it is setup this way. But yes, you must currently use a domain account to sign in automatically.

    0 讨论(0)
  • 2020-12-20 20:06

    WORKAROUND:

    Use the certificate method instead. Works instantly without a hitch.

    0 讨论(0)
提交回复
热议问题