azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az login failure

Open asranja opened this issue 6 years ago • 8 comments

Describe the bug

Command Name az login

Errors: While trying to login from the browser, I am getting the below error:

An error occurred Please close and try again in a new window. Contact helpdesk if the issue persists. Error details Activity ID: bacd293e-0bd5-40c2-a954-9f0c9a546689 Error details: MSIS7007: The requested relying party trust 'urn:federation:microsoftonline.us' is unspecified or unsupported. If a relying party trust was specified, it is possible that you do not have permission to access the trust relying party. Contact your administrator for details. Node name: 45ebeee1-1289-4014-92b3-fb2c6db6da2b Error time: Wed, 03 Jun 2020 07:16:14 GMT Cookie: enabled User agent string: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • az login with @microsoft.com account

Environment Summary

Windows-10-10.0.18362-SP0
Python 3.6.6
Installer: MSI

azure-cli 2.7.0

asranja avatar Jun 03 '20 07:06 asranja

add to S171

yonzhan avatar Jun 03 '20 07:06 yonzhan

@yonzhan @qianwens Any pointers here will be highly appreciated.

asranja avatar Jun 05 '20 03:06 asranja

This issue was planned in this Sprint. @qianwens will help you.

yonzhan avatar Jun 05 '20 06:06 yonzhan

@asranja , is this error only happen in Azure CLI? Can you login in from azure portal?

qianwens avatar Jun 18 '20 09:06 qianwens

Yes, I can login from Azure portal and Azure PowerShell.

I tried az login again and got the same error:

An error occurred Please close and try again in a new window. Contact helpdesk if the issue persists. Error details Activity ID: 3221e202-e5ca-4033-8a22-2667d7a83f72 Error details: MSIS7007: The requested relying party trust 'urn:federation:microsoftonline.us' is unspecified or unsupported. If a relying party trust was specified, it is possible that you do not have permission to access the trust relying party. Contact your administrator for details. Node name: a0d10289-f14e-424f-9cb7-6bf6e121a1df Error time: Thu, 18 Jun 2020 09:32:40 GMT Proxy server name: cy***33 Cookie: enabled User agent string: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36

asranja avatar Jun 18 '20 09:06 asranja

I am facing same problem with my @microsoft.com account. Issues happen only when doing az login, and portal login works fine.

bishal-pdMSFT avatar Jul 07 '20 13:07 bishal-pdMSFT

@asranja @bishal-pdMSFT could you please share me the --debug log to my Microsoft email address (same as my GitHub user name)?

jiasli avatar Jul 24 '20 05:07 jiasli

As this only happens for microsoft.com accounts. Please reach me internally on Microsoft Teams and we can set up a Teams meeting to troubleshoot together.

jiasli avatar Aug 14 '20 03:08 jiasli