Azure / Azure/azure-cli

az login --use-device-code fails with "Sign in to an organisation"

Open
#28,165 16 comments 1 reaction 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad Auto-Assign Azure CLI Team customer-reported question
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

Im trying to log in `az login --use-device-code` with "Sign in to an organisation" but it ends on 404 error on login page.

Repeated many times in many browsers (including incognito). Its not working from azure vm instance nor from my local pc.

![az-login-device-code+sign-in-to-an-organisation-bug-01](https://github.com/Azure/azure-cli/assets/9316280/cf95b5d8-3381-4589-a05b-1b958a891a4e)
![az-login-device-code+sign-in-to-an-organisation-bug-02](https://github.com/Azure/azure-cli/assets/9316280/e0914a38-e89f-4cda-b75d-c5654fd631ac)
![az-login-device-code+sign-in-to-an-organisation-bug-03](https://github.com/Azure/azure-cli/assets/9316280/73f48359-15e1-4831-9270-80846c0f0a38)
![az-login-device-code+sign-in-to-an-organisation-bug-04](https://github.com/Azure/azure-cli/assets/9316280/45250189-421f-45ac-941d-6193e8d25577)
![az-login-device-code+sign-in-to-an-organisation-bug-05](https://github.com/Azure/azure-cli/assets/9316280/95649357-7efa-4975-a188-d6e4e9a36ce2)
![az-login-device-code+sign-in-to-an-organisation-bug-06](https://github.com/Azure/azure-cli/assets/9316280/8db68393-c325-4ca4-8380-8a7dd191b2ac)
![az-login-device-code+sign-in-to-an-organisation-bug-07](https://github.com/Azure/azure-cli/assets/9316280/19bfdbcc-6d12-40ef-88ee-f5fdec00d2b0)

### Related command

az login --use-device-code

### Errors

404 This login.microsoftonline.com page cant be found.

### Issue script & Debug output

...

### Expected behavior

Grant access from cli.

### Environment Summary

azure-cli 2.56.0 latest
installed on azure ubuntu 22.04 vm instance deployed today

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.