Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Defining Azure Stream Analytics iot-hub input source through Powershell

I'm trying to write a powershell script that creates a new streamAnalytics job in my azure portal account, with input source as iot-hub and output source as blob storage account.

To do so, I'm using AzureRM command new-streamAnalyticsJob, and json files.

my problem is: I have not seen any documentation or example for json file where the inputs source is iot-hub. only event-hub.

what are the parameters I need to give in the json file? can anyone display an example for json file with input source to streamAnalytics job as Iot-hub?

like image 405
N.avraham Avatar asked Aug 28 '26 20:08

N.avraham


1 Answers

I got the answer eventually: the required field I had to add to the inputs Oliver posted earlier here is:
"endpoint":"messages/events" I added it under Datasource Properties section, and it works fine!

Thanks Oliver

like image 83
N.avraham Avatar answered Aug 30 '26 09:08

N.avraham



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!