Create an Identity Step 2 - Identity ObjectId not returning correctly
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.
- ID: 95812617-2cee-fb2c-2c6d-573f222033be
- Version Independent ID: bf51864f-646f-2fda-7842-b1f3cf2f9ce2
- Content: Creating an ingress controller with a new Application Gateway
- Content Source: articles/application-gateway/ingress-controller-install-new.md
- Service: application-gateway
- GitHub Login: @greg-lindsay
- Microsoft Alias: greglin
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
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!