azure-cli
azure-cli copied to clipboard
az login fails from Linux: Your sign-in was successful but your admin requires the device requesting access to be managed by Microsoft to access this resource.
az login produces the following errors on Ubuntu 18.04, which was working since yesterday.

@jiasli please help with this issue
As the error indicated

your login is blocked by Conditional Access: Require compliant devices because Ubuntu is not a supported device.
Several solutions:
az loginwith a user account on a supported system - Windows or MacOS, and make the device complaintaz login --service-principalwith a Service Principal which doesn't have compliance check (https://github.com/Azure/azure-cli/issues/16401#issuecomment-752837821)- [Microsoft Internel] Join "Active Linux Users" group at https://myaccess.microsoft.com/ (original Teams post)
- ~Contact your tenant admin (MSFT IT if it is Microsoft tenant) to turn off Conditional Access: Require compliant devices for your account and Azure CLI~
I am encountering this issue as well, however I am using an iPhone with the latest 14.4.1 iOS.
I also get the message:
Sorry, but we’re having trouble signing you in.
AADSTS900561: The endpoint only accepts POST requests. Received a GET request.