Azure / Azure/azure-cli

[Potential broken changes] az ad sp show --id XXXX --query objectId returns back nothing but --query id works.

Open
#25,259 1 comment 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-identity-squad Auto-Assign Azure CLI Team customer-reported feature-request Graph
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.
![image](https://user-images.githubusercontent.com/46897552/215221248-0f466a99-bfa1-4e69-99d1-53c7a99d686f.png)
"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

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.