microsoft / azure-api-management-monetization

MIT License
54 stars 30 forks source link

Stripe Demo Setup - az ad sp show doesn't show object id #51

Closed karlrissland closed 8 months ago

karlrissland commented 1 year ago

In strip-deploy.md, after creating a service principle, you are instructed to use the ```az ad sp show --id "" to get the object id. I was unable to find an object id in the response, went to the portal instead.

MikeEvansLarah commented 8 months ago

This seems to be due to a change in the underlying az ad sp show command.

The object ID can instead be obtained using:

az ad sp show --id <application-id> --query '{displayName: displayName, applicationId: appId, objectId: id}'