azureblog.co.uk
← cd ~/errors
// entra id sign-in error · conditional access and devices

AADSTS50097

DeviceAuthenticationRequired

What it means

Device authentication is required.

How to fix it

Check the device's registration state (dsregcmd /status on Windows) and its Primary Refresh Token.

How to investigate

  1. Open the failed sign-in in the Entra admin center and select the Conditional Access tab. It lists every policy that applied and which one failed.
  2. Check the Device info tab: whether the device is registered, compliant and managed.
  3. Use What If in Conditional Access with the same user, app and device platform to reproduce the decision.
  4. Search the sign-in logs for the request ID or correlation ID from the troubleshooting details on the error page.

Tools that help

Error names and meanings follow Microsoft's error code reference. The fixes are this site's guidance.