"To enter this application, the account must be added to the domain.com directory"

I am trying to log into our Powershell Azure account. I installed the appropriate module but could not get the following error:

PS C:> Add-AzureAccount -Credential $ cred Add-AzureAccount

AADSTS50034: To enter this application, you must add an account to the domain.com directory. Trace ID: ef487122-88d6-4e36-8421-4434806041d2 Correlation ID: a1ea0ee1-b278-4241-bc48-e213ecd47b27 Timestamp: 2014-11-04 09: 46: 02Z: Remote server returned error: (400) Bad Request line. At: 1 char: 1 + Add-AzureAccount -Credential $ cred + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo: CloseError: (:) [Add-AzureAccount], AadAuthenticationFailedException + FullyQualifiedErrorId: Microsoft.WindowsAzure.Commands.Profile.AddAzureAccount

I am new to Azure, so I don’t know where and where this "domain.com" directory is located. I also could not find anything even remotely connected to the network.

+5
source share
3 answers

Temporary solution:

Use the certificate method instead. It works instantly without a hitch.

+2
source

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

enter image description here

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

enter image description here

I would like to enter the command line without prompting the user interface using a Microsoft account . I am not sure why it is configured this way. But yes, you should currently use a domain account for automatic registration.

+4
source

Try using the add-azureaccount cmdlet without any parameters, you will get a simple login window in which you can enter your azure credentials.

+3
source

Source: https://habr.com/ru/post/1206154/


All Articles