-
Notifications
You must be signed in to change notification settings - Fork 3k
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
az ad sp show seems not to be working as expected #19179
Comments
@jiasli for awareness |
Azure CLI command |
So, that is why my scripts stopped working :) Thank you for the explanation! In the meantime, I was able to have my scripts work again by updating the
So, I explicitly create the id I was using before #18312 when running the |
I don't think
With Azure CLI, the only way to update We don't recommend using |
Indeed you are right, the solution I proposed does not work. Thanks for the information @jiasli |
…eprecated and only appId should be used. Update the docs accordingly. [1]: Azure/azure-cli#19179 (comment)
When running the following command:
I will always get an error (below) if $SP_NAME is the service principal display name, and not its ID.
The $SP_NAME variable contains the exact same display name as I see in the App Registrations in Azure AD.
When deploying a service principal via script, we do not have the service principal object ID prior to running the script, only the name we want to assign to the service principal (display name). Not only this used to work a few months back, as per the documentation it should still work!
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: