Introduction
Background
Setting up the Environment
Modify Visual Studio with Required Workloads
Once the workloads are modified, make sure that the extension is available in your Extensions, you can do that by going to Tools -> Extension menu.
Creating a New Stream Analytics Project
The new project will contain the below files.
- Input.json
- Output.json
- JobConfig.json
- Script.asaql
To configure your subscription, please make sure that you have added your Subscription in the Server Explorer.
The Input.json file is the replica of your Input job topology, double click on the file will give you the configuration page to configure the details.
The Output.json file is your output job topology, you can have as many outputs you need. In my case, it is just one, SQL Server Database.
You can always configure your job using the JobConfig.json file. When you configure the Job, you need to be sure about the values you are providing and what their needs are.
Data Locale is your locale input. The option Output Error Handling is for handling the situation when the events fail to be written to the output, you can select either Drop or Retry. The Late Arrival Tolerance Window is the timeframe which you can wait for the event to reach the IoT hub, the time difference is between the event timestamp and the system time.
And the Script.asaql is the file where you need to add your custom query which gets data from the input and sends it to the output.
SELECT messageId, deviceId, temperature, humidity, pressure, pointInfo, IoTHub, EventEnqueuedUtcTime, EventProcessedUtcTime, PartitionId INTO streamoutputs FROM streaminputsOnce everything is done, you are ready to submit the same to Azure. You can either create a new job or use the existing one.
When you submit, you can see that a new Stream Analytics view will get opened and the job will be starting automatically. You can always see the blobs created under your container by going to the cloud explorer.
Now, just right-click on your solution and select “Add solution to Source Control" and then push the same to your git repository. Once you have added the solution to the source control, your team members can easily update the Input and Output configuration and have a history of the same.
Conclusion
- Set up the Visual Studio for using Data Lake and Stream Analytics tool
- Use the Data Lake and Stream Analytics tool
- Configure the Input for Stream Analytics
- Configure the Stream Analytics Job
- Use the created package in another solution
Your turn. What do you think?
Thanks a lot for reading. I will come back with another post on the same topic very soon. Did I miss anything that you may think is needed? Did you find this post useful? Kindly do not forget to share your feedback with me.


Elavarasan RPosted Dec 16, 2018, 6:51 PM EST
Nice explanation.