What it means
'Your device is required to be managed to access this resource.' A Conditional Access device requirement (compliant or hybrid joined) wasn't met, often from Azure CLI, PowerShell, or other tools on an unmanaged machine. Not listed in Microsoft's main error reference, but common in practice.
Common causes
- A Conditional Access policy requires a compliant or Microsoft Entra hybrid joined device, and this sign-in does not meet that requirement.
- The sign-in is coming from Azure CLI, PowerShell, or another tool on an unmanaged or personal machine.
- Device code flow is being used. That flow cannot pass device-state controls, so a policy that requires a managed device will block it.
Quick checks
- Open Entra admin center → Entra ID → Monitoring & health → Sign-in logs, find the failed event, and copy the Correlation ID, date, and time.
- Read the Failure reason and Additional Details on that event. Additional Details often includes the next step.
- Check the Conditional Access tab to see which policies applied or blocked the sign-in, and the Authentication Details tab for the methods that ran and their results.
How to fix it
If you are the user
- Sign in from a work-managed device, or enroll this device in Intune if that is allowed, then retry.
- For command-line tools, sign in with a browser or broker flow on the managed device rather than device code flow.
If you are an admin
- This code is not listed in Microsoft's main AADSTS reference, but the message "Your device is required to be managed to access this resource" is the usual user-facing text. Treat it as a Conditional Access device requirement that was not met.
- Open Entra admin center → Entra ID → Monitoring & health → Sign-in logs and check the Conditional Access tab for the policy and grant control (compliant or hybrid joined).
- Have the user sign in from a managed device, or use a service principal or managed identity for automation instead of an interactive user sign-in on an unmanaged machine.
- Related codes in the official reference are AADSTS53000 (device not compliant) and AADSTS53001 (device not hybrid joined).
When to escalate
Escalate if managed-device sign-in still fails after enrollment, or if automation has no managed-identity or service-principal alternative. Include the client app (CLI, PowerShell, or browser), device state, policy name, and Correlation ID.
Official references
- Microsoft's AADSTS error code reference (530003 itself is not listed there) (opens in a new tab)
- Official error lookup (search for 530003) (opens in a new tab)
- Troubleshooting sign-in problems with Conditional Access (opens in a new tab)