How to get Bearer token for Event Hub Azure

霸气de小男生 提交于 2020-01-16 11:56:07

问题


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:


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

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

Then get access token as follows

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

Hope it helps you.



来源:https://stackoverflow.com/questions/51491350/how-to-get-bearer-token-for-event-hub-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!