Azure PowerShell登录:基于浏览器的身份验证对话框未能完成

Azure PowerShell登录:基于浏览器的身份验证对话框未能完成,azure,adal,azure-powershell,Azure,Adal,Azure Powershell,在PowerShell中运行登录AzurerAccount时出现此错误: 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 + ~~~~~~~

在PowerShell中运行登录AzurerAccount时出现此错误:

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

我看到登录窗口短暂弹出,但它立即关闭,并显示此错误消息。

原来我的代理设置阻止我连接到internet。一旦我更正了我的代理设置,我就能够按预期登录Azure。不确定“无效语法”错误是怎么回事…

结果是我的代理设置阻止我连接到internet。一旦我更正了我的代理设置,我就能够按预期登录Azure。不确定“无效语法”错误是关于什么的…

运行添加azureaccount 它将请求凭证,输入凭证。 然后运行Connect azureaccount,它将再次请求凭据,提供凭据,它将正常工作

运行add azureaccount 它将请求凭证,输入凭证。
然后运行Connect AzaAccount,它将再次请求凭据,提供凭据,它将正常工作

您能评论一下您的代理设置有什么问题吗?@BobbyA我记不清了;很可能我在工作时禁用了它,或者在家时启用了它。你能评论一下你的代理设置有什么问题吗?@BobbyA我记不清了;很可能我在工作时禁用了它,或者在家时启用了它。