Azure / Azure/azure-cli

inconsistent information with 'az login --serviceprincipal'

Open
#25,065 1 comment 0 reactions 1 assignee Claimed by @jiasli View on GitHub
Account 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

cx report the issue about can't get details of the owner of app registration through service principal identity.
but can get the details thru user's identity:

command:
`az ad app owner list --id "`

on Portal:
![image](https://user-images.githubusercontent.com/102293058/210999990-79a601a7-99da-4019-8b63-1dc8d6be39b4.png)

on cloud shell logged in as the global admin:
![image](https://user-images.githubusercontent.com/102293058/211000301-6fb047e9-f933-4716-8f30-17d3c2027dfc.png)

on PS logged in with
`az login --serviceprincipal`
permission: admin consent with
![image](https://user-images.githubusercontent.com/102293058/211000420-2f9cdf2e-ca1a-4f5e-bf2f-f5af38f6953a.png)

and proceed the command:
![image](https://user-images.githubusercontent.com/102293058/211000630-bacb867d-ca60-4566-a3f1-ae7e3750531a.png)

the value return null for displayname, preferredLanguage, UPN

### Resource Provider

microsoft.directory/applications

### Description of Feature or Work Requested

the information should also be provided with serviceprincipal identity

### Minimum API Version Required

2.43.0

### Swagger PR link / SDK link

N/A

### Request Example

_No response_

### Target Date

N/A

### Additional context

_No response_

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.