Bosch IoT Device Management

Azure Service Bus - HTTP connection

Publish live messages onto an Azure Service Bus queue.


In this example, we configure an HTTP connection that publishes live messages to Azure Service Bus.

Table of contents:

Prerequisites

To follow this example you will need:

  • A Bosch IoT Things service subscription

  • An Azure Service Bus instance

Create the connection

Starting at the Bosch IoT Suite Console, click the Connection entry in the left navigation.

In case it is not there, use the search, and click the star icon to pin it to your navigation bar.


images/confluence/download/attachments/2232975794/connections-ui.png

Please make sure, that your connections are active. This is indicated with the plug symbol: in the example below the first connection is open and will work, the second one is disabled.

images/confluence/download/thumbnails/2232975794/connection-icons.png

If one of your connections are closed, just open them.

Click Add to create a new connection.

  • Select HTTP from the categories.

  • Give the connection a name. Setting a name is required.

  • Click the Continue button.

images/confluence/download/attachments/1847337253/create-connection-http.PNG

Configure credentials

  • Scroll to the Coordinates section.

  • Choose hmac as the credential type.

  • Choose az-sasl as the algorithm.

  • Click the button Paste Azure Service Bus connection string.
    Then paste the connection string of a shared access policy of the service bus instance or of a queue.

  • Enter the hostname of your Azure Service Bus instance <service-bus-name>.servicebus.windows.net.

images/confluence/download/attachments/1847337253/az-service-bus-http-coordinates.PNG

Add a target

  • Scroll to the Targets section.

  • Click the Add target button.

  • Choose POST as the HTTP verb.

  • Enter /<queue-name>/messages as the HTTP path.

  • Add an authorization subject, e.g. integration:<solution-id>:az.

  • Check Thing live messages under Topics to publish on address.

  • Click Save new target.

    images/confluence/download/attachments/1847337253/az-service-bus-http-target.PNG
  • Click the Create button at the top right to save the connection.

The connection is ready. Any live message the connection is authorized to receive is published to Azure Service Bus in the queue configured in the target address.

Authorize the connection for messages

Follow the steps Add a policy entry for public cloud connections.

Replace xxx from that example with the authorization subject of this connection in the policy, e.g. integration:<solution-id>:az.