azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Create an Identity Step 2 - Identity ObjectId not returning correctly

Open timothymeyers opened this issue 3 years ago • 2 comments

Step 2 under Create an Identity objectId=$(az ad sp show --id $appId --query "objectId" -o tsv) is not returning the objectId.

Upon inspection, the az ad show command is not returning the objectId in the id object.

Using az cli version 2.43.0 in Cloud Shell.

Because of this, the rest of the deployment fails to complete.


Document Details

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

timothymeyers avatar Dec 14 '22 16:12 timothymeyers

Upon further inspection, it looks like the objectId is now coming back as simply id. So, the new command should be

objectId=$(az ad sp show --id $appId --query "id" -o tsv)

I'll submit a PR to fix the page.

timothymeyers avatar Dec 14 '22 16:12 timothymeyers

@timothymeyers

Thanks for your feedback! We will investigate and update as appropriate.

@timothymeyers Thank you for your feedback and making the PR! We have assigned this issue to the author to review the PR. Thank you!

ChaitanyaNaykodi-MSFT avatar Dec 21 '22 01:12 ChaitanyaNaykodi-MSFT