Az login fails from my device

Ali Kanso 25 Reputation points Microsoft Employee
2025-12-23T17:32:40.3866667+00:00

Az login --use-device:

You don't have access to this

Your sign-in was successful but does not meet the criteria to access this resource. For example, you might be signing in from a browser, app, location, or an authentication flow that is restricted by your admin.

Error Code: 53003

Request Id: fd92fbef-63d3-4e3b-a6ac-5282321b1e01

Correlation Id: 065e0126-<removed PII>

Timestamp: 2025-12-23T17:24:29.805Z

App name: Microsoft Azure CLI

App id: 04b07795-8ddb-461a-bbee-02f9e1bf7b46

IP address: 131.<removed PII>

Device identifier: 7076662d-<removed PII>

Device platform: Windows 10

Device state: Compliant

Microsoft Security | Microsoft Entra | Microsoft Entra ID

Answer accepted by question author
Rukmini 43,995 Reputation points Microsoft External Staff Moderator
2025-12-23T18:09:39.8833333+00:00

Hello Ali Kanso, As discussed offline, please check with the Admin as this error usually occurs if the Admin has created conditional access.

If the resolution was helpful, kindly take a moment to accept the answer and upvote it 👍 it as a token of appreciation.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Andreas Baumgarten 133.1K Reputation points MVP Volunteer Moderator
    2025-12-23T17:41:39.85+00:00

    Hi @Ali Kanso ,

    for me it looks like a conditional access rule prevents your login.

    Using conditional access it's possible to define the apps that are allowed to login, for instance allow login via browser but deny logon using AZ Cli.

    You should verify the existing conditional access rule or get in contact with an admin to do so.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.