Skip to content

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

@iqoOopi

Description

@iqoOopi

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
"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": {}
}

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamGraph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az adact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions