Richard Lab
Richard Lab

Reputation: 11

Azure EventHub : Unable to sample from an Event Hub

I'm unable to sample from a Streaming of an Event Hub entry: The test query is :

SELECT
    *
INTO
    [OutputAlias]
FROM
    [gatewaytosqldatabase]

returns :

"An error occurred while reading the sample entry. Check that the input source is configured correctly and that the data is in the correct format."
in French :
 Une erreur s'est produite lors de la lecture de l'exemple d'entrée. Vérifiez que la source d'entrée est configurée correctement et que les données sont dans un format correct.

enter image description here

I'm able to receive datas from a coded python program. I've coded an EventHubConsumerClient with the help of the azure.eventhub.extensions package and all is fine, I can see my events sended to a specific consumer_group...

What is going on with the this tool ? Looks like it reacts strangely.

Has anybody experience that before? How does the Query explorer of StreamAnalytics work for Event hub testing? Which consumer_group does it take? How to debug this message?

Thanks for any feedback on this. Richard

Upvotes: 0

Views: 376

Answers (1)

Richard Lab
Richard Lab

Reputation: 11

Solved by adding the correct Key of SharedAccessPolicy. Thanks to you Florien for helps me to solve by using the ASA extension in VSCode.

Upvotes: 1

Related Questions