[英]Azure Account - error when trying to login from Powershell
I'm attempting to login to my Azure account inside Powershell using Login-AzureRmAccount
and am met with this error: 我试图使用Login-AzureRmAccount
登录到Powershell中的Azure帐户,但遇到此错误:
Login-AzureRmAccount : The browser based authentication dialog failed to complete. Reason: WinInet cannot redirect. This error code might also be returned by a custom
protocol handler.
At line:1 char:1
+ Login-AzureRmAccount
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Add-AzureRmAccount], AadAuthenticationFailedException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.AddAzureRMAccountCommand
When executing Login-AzureRmAccount
a browser window opens prompting me for my email address - once entered I'm redirected to GoDaddy sign-in as this is where our Office365 infrastructure is hosted. 执行Login-AzureRmAccount
将打开一个浏览器窗口,提示我输入我的电子邮件地址-输入后,我将重定向到GoDaddy登录,因为这是我们Office365基础结构的托管地。 After entering my password here and hitting enter, I get the above error. 在此处输入密码并按Enter键后,出现上述错误。 Does this have to do with the GoDaddy redirect? 这与GoDaddy重定向有关吗?
try 尝试
Login-AzureRmAccount -AllowRedirection
I have a script for logging into Office365 powershell which has that parameter. 我有一个用于登录具有该参数的Office365 powershell的脚本。
关闭Powershell并重新启动后,我现在可以正确连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.