I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer .
**Ask :**We have setup a client in our app that is pushing AVRO encoded events to Azure Eventhub. We are using Schema Registry to encode the events.
To use the events in power BI we would like to process incoming events into JSON format and save into blob storage. We are trying to use Stream Analytics job for this. However, in the Stream Analytics the input fails to fetch events and throws error 'Microsoft.Streaming.Adapters.Exceptions.EventHubAdapterException'.
I am not sure what is the issue and how to debug this. The inputs connection to Eventhub is reported as OK and it is configured as follows:
Solution: I've fgured out what the issue was. As per @phemanth answer it turned out to be authentication issue. We are using RBA and I had not added correct roles for my stream analytics job service principal in eventhub and schema registry.
If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.
If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.