question

YennamShowryPremsagar-9843 avatar image
0 Votes"
YennamShowryPremsagar-9843 asked MayankBargali-MSFT edited

Route Service Bus queue messages to Event Hub using Logic App

Hi Team,

Could someone suggest , how to route Service Bus Queue messages to Event Hub using Logic App.

azure-event-hubsazure-service-bus
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
2 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT edited

Hi @YennamShowryPremsagar-9843

The first step would be adding service bus trigger to your logic app so whenever there are messages sent to the service bus your logic app is triggered. You can either use "When a message is received in a queue (auto-complete)" or "When a message is received in a queue (peek-look)" according to your requirement. You need to configure the connection string and other parameters as mentioned in the service bus trigger document.

Once you have configured the service bus trigger then you need to use Send Events action to send the event to event hub. In the Content of send event you need to use the dynamic content response of the service bus trigger as below

31078-image.png


Logic App Designer:

31028-image.png


The above is for reference and you need to change it as per your requirement and I hope the above helps. Feel free to get back to me if you have any queries or concerns.

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


image.png (37.9 KiB)
image.png (29.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.