azure-cli: `az login --use-device-code` fails: AADSTS70020: The provided value for the input parameter 'device_code' is not valid. This device code has expired.
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az login
Errors:
AADSTS70020: The provided value for the input parameter 'device_code' is not valid. This device code has expired.
Trace ID: a8f3578e-d4cb-44ac-91a8-64c1322d6f00
Correlation ID: ed438693-0685-4cfe-923e-b73b5cd759e5
Timestamp: 2022-05-03 08:56:46Z
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here…
az login -t {} --use-device-code
Tried many times. Worked fine last week so I tried with 2.35.0. Same result.
Expected Behavior
Succesfull login. Or at least a device code that doesn’t expire after 1-5 seconds.
Environment Summary
Linux-5.17.5-arch1-1-x86_64-with-glibc2.35, Arch Linux
Python 3.10.4
Installer:
azure-cli 2.36.0 and 2.35.0
Additional Context
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 18 (6 by maintainers)
This issue has been mitigated by AAD service team. Please retry
az login --use-device-code
and let us know if you can get unblocked.No longer having issues! ✔️
We are working internally with ESTS team with highest priority. We will keep you updated in this GitHub issue.
This issue affected all client tools rather than Azure CLI and needs to be fixed by AAD service.
Judging from
This should be happening for westeurope. I will keep you updated as soon as there is any updates.
I saw an internal incident has already been opened for this issue. I will check with AAD team and let you know if there is any update.
Meanwhile, could you also run the command with
-i
which will show more info about the server?