SOLVED

Send Data From IoT Central to Event Hub

New Contributor

Hi everyone,

 

I am currently trying to export data from my IoT Central (where i have configured some active devices) to my event hub, but the problem that I am having is that nothing actually happens, no data are sent to the event hub.

 

I have run 2 tests:

- using a console app and the same connection string (with the send permission on) used in the IoT central data export, I sent to the event hub some json files and they were correctly processed by the hub

 

-using the process data feature present in event hub I queried the iot central and I successfully retrieved the data i was looking for

 

So if I got it right the problem is that the IoT central is not streaming data but is available only to be read.

 

Do you have any suggestions to solve this?

 

Thanks in advance

2 Replies
best response confirmed by OlivierBloch (Microsoft)
Solution

@GaetanoPrudente I have tested export to EventHub that described in documentation and it works. Can you explain step by step where see nothing?

I have tested it and it works. I added Export Destination in my IoT Central app and put there SAS Key for Event Hub Namespace (Manage, Send, Listen).

teterukd_1-1622618347920.png

 

  In destination I added Event Hub Name.

teterukd_2-1622618434026.png

 

 

teterukd_0-1622618213626.png

As result I started to see data inside my Event Hub immediately as messages arrives every minute.

teterukd_3-1622618520434.pngteterukd_4-1622618654287.png

 

 

Hi @teterukd, thanks for your response, somehow it started working after a little while, so i guess it solved itself.