@Anonymous 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.