Ive been doing a lot of work with Azure Service Bus Event Hubs recently and I wanted to be able to send messages from BizTalk Server to an Event Hub. This turned out to be quite easy to do and there are a few simple steps to do this.
- Use the WCF Web HTTP adapter
- Configure the adapter to use the https address for your event hub to send messages
- Use the Event Hub Signature Generator tool to create a token for calling Event Hub
- Use the messages tab of the adapter to set outgoing HTTP headers and set the authorization header to use your token
In the video below I demonstrate a simple scenario of sending JSON from the file system to an event hub. In the real world your likely to use a custom pipeline to convert your BizTalk message to JSON on the way out.