Azure / Azure/azure-cli

Cannot regenerate tenant token/ auth at all

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

Description

### Describe the bug

az login consistently fails and will not regenerate auth token

### Related command

az login

az login --tenant [tenantid]

### Errors

Failed to auth

Authentication failed against tenant [redacted] The refresh token has expired due to inactivity. 

AADSTS5000224: We are sorry, this resource is not available. If you are seeing this message by mistake, please contact Microsoft support

### Issue script & Debug output

az login

### Expected behavior

It should log me in

### Environment Summary

azure-cli 2.63.0

core 2.63.0
telemetry 1.1.0

Dependencies:
msal 1.30.0
azure-mgmt-resource 23.1.1

Python location '/usr/local/Cellar/azure-cli/2.63.0/libexec/bin/python'
Extensions directory '/Users/cfossaceca/.azure/cliextensions'

Python (Darwin) 3.11.9 (main, Apr 2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

### Additional context

`when you reach out i will provide more info`

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.