azure-cli icon indicating copy to clipboard operation
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.

Open fboylu opened this issue 5 years ago • 4 comments

az login produces the following errors on Ubuntu 18.04, which was working since yesterday. image image image

fboylu avatar Mar 10 '21 20:03 fboylu

@jiasli please help with this issue

yonzhan avatar Mar 10 '21 22:03 yonzhan

As the error indicated

image

your login is blocked by Conditional Access: Require compliant devices because Ubuntu is not a supported device.

Several solutions:

  • az login with a user account on a supported system - Windows or MacOS, and make the device complaint
  • az login --service-principal with 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~

jiasli avatar Mar 11 '21 02:03 jiasli

I am encountering this issue as well, however I am using an iPhone with the latest 14.4.1 iOS.

redhatstuart avatar Mar 12 '21 05:03 redhatstuart

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.

redhatstuart avatar Mar 12 '21 05:03 redhatstuart