Creating a stream analytics job

Let's see how to create a stream analytics job by following these steps:

  1. Now that the IoT hub setup is done, head back to the dashboard. From the top-left menu, click on +New, then Internet of Things and Stream Analytics job, as shown in the following screenshot:
  1. Fill in the New Stream Analytics job form, as illustrated here:
  1. Then click on the Create button. It will take a couple of minutes to create a new job. Do keep an eye on the notification section for any updates.
  2. Once the job has been created, it will appear on your dashboard. Select the job that was created and navigate to the Inputs section under JOB TOPOLOGY, as shown here:
  1. Click on +Add stream input and select IoT Hub, as shown in the previous screenshot.
  2. Give the name pi3dht11iothub to the input alias, and click on Save.
  3. Next, navigate to the Outputs section under JOB TOPOLOGY, as shown in the following screenshot:
  1. Click +Add and select Power BI, as shown in the previous screenshot. Fill in the details given in the following table:

Field

Value

Output alias

powerbi

Group workspace

My workspace (after completing the authorization step)

Dataset name

pi3dht11

Table name

dht11

  1. Click the Authorize button to authorize the IoT hub to create the table and datasets, as well as to stream data. The final form before creation should look similar to this:
  1. Click on Save. Next, click on Query under JOB TOPOLOGY and update it as depicted in the following screenshot:
  1. Now, click on the Save button. Next, head over to the Overview section, click on Start, select Now, and then click on Start:

Once the job starts successfully, you should see the Status of Running instead of Starting.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.19.211.134