Skip to content

"az ad signed-in-user show" crashes for SP authentication #10439

Description

az feedback auto-generates most of the information requested below, as of CLI version 2.0.72

Describe the bug
A clear and concise description of what the bug is.

az ad signed-in-user show crashes if signed in using Service Principal

az ad signed-in-user show --query objectId --output tsv
Resource not found for the segment 'me'.      

To Reproduce

Steps to reproduce the behavior.

az login --service-principal -u ${AZURE_CLIENT_ID} -p ${AZURE_CLIENT_SECRET} --tenant ${AZURE_TENANT_ID} && az account set -s ${AZURE_SUBSCRIPTION_ID}
az ad signed-in-user show 

Expected behavior
A clear and concise description of what you expected to happen.

Command behaves same way for SP and User signed in

Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)

MSI

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions