Azure / Azure/azure-cli

Change Azure CLI device login link to more reliable, faster URL

Open
#26,468 4 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad Auto-Assign Azure CLI Team customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**

```
az login
```

**Describe the bug**

The `az login` command is unbearably slow and oftentimes fails, due to the device login link provided by Microsoft.

The recommended link should be changed from `https://microsoft.com/devicelogin` to `https://login.microsoftonline.com/common/oauth2/deviceauth`

![image](https://github.com/Azure/azure-cli/assets/466713/8db22b33-1c95-4ef7-8466-b6dc3cf8ff11)

![image](https://github.com/Azure/azure-cli/assets/466713/fa4dbff8-acf7-4c47-89f4-9196f1c1c585)

**To Reproduce**

```
az login
```

Follow the device login link.

**Expected behavior**

Device login link should be:

1. Reliable
2. Fast

**Environment summary**

Any browser (Firefox, Chrome, or even PowerShell)

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.