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.