[Potential broken changes] az ad sp show --id XXXX --query objectId returns back nothing but --query id works.
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Related command**
az ad sp show
**Describe the bug**
az ad sp show --id XXXX --query objectId returns back nothing but --query id works.

"id" is not even a valid property for SP if you just run az ad sp show --id XXXX, actually return back "id" does not make sense as you are query by id (--id). and these ids have different value, one is objectId, another is principleId
**To Reproduce**
run above command
**Expected behavior**
--query objectId should return back the objectId while query id should return back nothing.
**Environment summary**
{
"azure-cli": "2.44.1",
"azure-cli-core": "2.44.1",
"azure-cli-telemetry": "1.0.8",
"extensions": {}
}
Contributor guide
Assessment
This issue has not been assessed yet.