Azure Service Bus (HTTP)

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

Prerequisites

To follow this example you will need:

  • A Bosch IoT Things service subscription
  • An Azure Service Bus instance

Create the connection

  • Click Go to Dashboard in the row of your Things instance, which will manage the connection.
  • On the Things dashboard open the tab Connections/Integrations.
  • Click Create your first connection, or Add in case you have one already.
    • Select HTTP from the categories.
    • Give the connection a name. Setting a name is required.
    • Click the Continue button.
create-http-connection

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

az-service-bus-coordinates

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.
    az-service-bus-target
  • 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 “Create a Hello World thing” and “Add the authorization subject of the connection to the policy” on the Hub-to-Things connection tutorial to authorize the connection to receive live messages.

Remember to use the authorization subject of this connection in the policy, e.g. integration:<solution-id>:az.

Corporate information Data protection notice Legal information Support Free plans