← 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
- 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.
- Check the Device info tab: whether the device is registered, compliant and managed.
- Use What If in Conditional Access with the same user, app and device platform to reproduce the decision.
- 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.