Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Service Principal Credential Reset does not appear in Azure Portal App Registration GUI #23566

Closed
arindam0310018 opened this issue Aug 17, 2022 · 7 comments
Assignees
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team common issue customer-reported Issues that are reported by GitHub users external to the Azure organization. Graph az ad question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@arindam0310018
Copy link

[Enter feedback here]


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Graph az ad labels Aug 17, 2022
@ghost ghost assigned jiasli Aug 17, 2022
@ghost ghost added this to the Backlog milestone Aug 17, 2022
@arindam0310018
Copy link
Author

Hello Team, I am Resetting Service Principal Using az cli and az devops.
The Reset works with the reference command - "az ad sp credential reset".

The new Secret gets stored in KV, however, when I browse to Azure Portal --> App Registration --> Required App Registration --> Certificates and Secrets, I cannot see the New Secret Generated. There is no new entry found.

All details can be found in my blog - https://dev.to/arindam0310018/reset-service-principal-secret-and-store-in-key-vault-using-az-devops-2h8o

Please let me know if this is bug or if my understanding is in correct.

Thank you

Arindam Mitra

@arindam0310018 arindam0310018 changed the title Ser Service Principal Credential Reset does not appear in Azure Portal App Registration GUI Aug 17, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Aug 17, 2022

@jiasli for awareness

@yonzhan yonzhan added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Aug 17, 2022
@arindam0310018
Copy link
Author

Hello Team,
Is there any update? Can you please let me know when time permits.

Many Thanks
Regards, Arindam Mitra

@jiasli
Copy link
Member

jiasli commented Aug 22, 2022

The behavior of az ad sp credential was changed during Microsoft Graph migration to align with its underlying Microsoft Graph API and address #11458. This was documented at https://learn.microsoft.com/en-us/cli/azure/microsoft-graph-migration#az-ad-sp-credential

Azure Portal can only show app's credential, not service principal's. Use az ad app credential list to get the same behavior as Azure Portal.

We don't want to describe the behavior of Azure Portal since Azure Portal are subject to change, making Azure CLI's documents hard to maintain. Once Azure Portal changes its behavior, Azure CLI's document will be outdated.

Previous discussions:

@madforchili
Copy link

Hi @jiasli from #23374 "Fix is to change from az ad sp credential reset to az ad app credential reset"

can this apply to the AKS as well? this AKS MS doc https://learn.microsoft.com/en-us/azure/aks/update-credentials specifically saying use az ad sp credential reset
"SP_SECRET=$(az ad sp credential reset --id "$SP_ID" --query password -o tsv)"

Can you update this doc as well if we can use az ad app credential reset

@jiasli
Copy link
Member

jiasli commented Jan 19, 2023

@madforchili, that depends on the business logic of AKS. +@FumingZhang to help take a look.

@FumingZhang
Copy link
Member

Hey @madforchili, @jiasli, basically, the app credential reset command also applies to the AKS cluster.

This is actually related to the relationship between the app and the sp itself. For a single tenant app, the two reset commands are almost equivalent, while for a multi tenant app, the sp credential reset only takes effect for the corresponding tenant, while the app credential reset will take effect for all tenants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team common issue customer-reported Issues that are reported by GitHub users external to the Azure organization. Graph az ad question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

5 participants