question

RiccardoPomato-4582 avatar image
0 Votes"
RiccardoPomato-4582 asked ·

Java WebApp and Managed Identity


anybody can help me to understand if there is any way to use Managed Identity (internal a Java Web App) to connect to Event Hub using Microsoft.Azure.EventHubs (legacy) library?

The customer is not able to migrate to Azure.Messaging.EventHubs (latest) yet and he is challenging me to understand if he can still use the legacy one.

Thanks Ric

azure-event-hubs
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@riccardopomato-4582 Thanks for using Microsoft Q&A !!
I am checking internally with the products team and get back to you on the same.

0 Votes 0 ·

1 Answer

SaurabhSharma-msft avatar image
1 Vote"
SaurabhSharma-msft answered ·

@riccardopomato-4582 I have received the confirmation from products team that you can refer to this GitHub repo on using Microsoft.Azure.EventHubs library.
Also, you need to make sure to use AppServiceMSICredentials in a CustomTokenProvider as described here.
Please let me know if you have any questions.


Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.