Output from azd version
Run azd version and copy and paste the output here:
azd version 1.17.2 (commit c241503424c35882c04d9a909ff9bb1469cd68c8)
Describe the bug
Description of issue you're seeing...
Account name not included in JSON response when running azd auth login --check-status -o json
To Reproduce
Steps to reproduce the behavior...
Without JSON output
$ azd auth login --check-status
Logged in to Azure as <username>@<domain>.com
Without json output
$ azd auth login --check-status -o json
{
"status": "success",
"expiresOn": "2025-06-25T19:52:18Z"
}
Expected behavior
When --check-status is used without json output, the command shows the account the user is logged in to. However, when using -o json, the json output does not contain the account information. The json output is expected to contain the account details.