How to get Bearer token for Event Hub Azure

2019-09-02 15:33发布

I have created an Event Hub in Microsoft Azure, I am trying to perform a GET operation to get details of my Event Hub following the docs : - https://docs.microsoft.com/en-us/rest/api/eventhub/eventhubs/get, but I need "Bearer Token" to get the result in POSTMAN, how to get the token? Detail explanation would be appreciated

1条回答
戒情不戒烟
2楼-- · 2019-09-02 16:15

Please follow the doc to create Azure Active Directory application to get the clientId,secret and tenantId.

enter image description here

Then grant permission of event hub resource to your AD app.

enter image description here

Then get access token as follows

enter image description here

Then use it to perform a GET operation to get details.

enter image description here

Hope it helps you.

查看更多
登录 后发表回答