Azure PowerShell Login: browser based authentication dialog failed to complete

12,275

It turned out my proxy settings were preventing me from connecting to the internet. Once I corrected my proxy settings I was able to log into Azure as expected. Not sure what the "invalid syntax" error is all about...

Share:
12,275

Related videos on Youtube

BenV
Author by

BenV

.NET Developer

Updated on June 04, 2022

Comments

  • BenV
    BenV almost 2 years

    I'm getting this error when running Login-AzureRmAccount in PowerShell:

    Login-AzureRmAccount : The browser based authentication dialog failed to complete. Reason: The request could not be 
    processed by the server due to invalid syntax.
    At line:1 char:1
    + Login-AzureRmAccount
    + ~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Add-AzureRmAccount], AadAuthenticationFailedException
        + FullyQualifiedErrorId : Microsoft.Azure.Common.Authentication.AadAuthenticationFailedException,Microsoft.Azure.Comm 
       ands.Profile.AddAzureRMAccountCommand
    

    I see the login window pop up briefly, but it closes immediately and this error message displays.

  • BobbyA
    BobbyA almost 7 years
    Can you comment on what was wrong with your proxy settings?
  • BenV
    BenV almost 7 years
    @BobbyA I can't remember for sure; most likely I had it disabled when I was at work or enabled when I was at home.