Share via


Azure ServiceBus Queue–reading query results from Stream Analytics

This blog is part of IoT Series, where I am trying to build few IoT devices that push events to Azure EventHub.  From the EventHub, Azure Stream Analytics will execute my query to calculate average values for each individual device and publish these average values to Azure ServiceBus. From Azure ServiceBus, I am going to read the average values in Azure Functions Apps and save them into Azure Redis Cache. My Azure Website will poll this Redis Cache and displays the average values.

Here are list of blog posts in this series:

      1. Azure IoT
      2. Azure EventHub–sending IoT device events to EventHub
      3. Azure ServiceBus Queue–reading query results from Stream Analytics
      4. Azure Stream Analytics–reading events from EventHub, running query and saving results to ServiceBus
      5. Azure Function Apps – reading events from ServiceBus and writing to Redis Cache

In this blog, I am going to show how to configure Azure ServiceBus.

    1. Log into Azure Portal

    2. Click on + New button

    3. In the Search, type ServiceBus

    4. Click Service Bus, and click create

    5. Provide name, resource group and pricing tier as shown below
      SB_New

    6. Once the ServiceBus is deploy, navigate to this new created ServiceBus

    7. Click on the Queues, click on Add queue, provide queue name as shown below
      SB_queue_new

    8. Now get the connection string for this ServiceBus Queue

    9. Click on Share access policies, next click RootManagerSharedAccessKey and click on copy connection string as shown below
      SB_queue_connectionstrings

    10. Next we are going to create Azure Stream Analytics , please click here to continue