Hi All,
This post is going to be short and simple, I would like to explain how to connect a standard logic app workflow to send a message to Azure service bus, I am using Managed Connectors for this not the “In App” versions. I am also using Managed Identity as the authentication mechanism, you will need to make sure the you assign the MID to the logic app and that it has the correct permissions for Service Bus.
The Process
The end result will be a simple logic app workflow that looks like this.
The “Send message” Action has the following parameters configured.
The “Connection” settings look like this.
now I would like to point out that where is says “Namespace Endpoint” you maybe inclined to copy the service bus endpoint as shown on the service bus properties page. which would look something like this:
https://svb-kdh-dts-dev-uks-1.servicebus.windows.net:443/
you can copy and paste this from the properties screen that shows your service bus endpoint, but you will need to update the URI to become:
sb://svb-kdh-dts-dev-uks-1.servicebus.windows.net
if not you will get the following error when running the workflow:
1 2 3 4 5 6 7 8 |
{ "status": 400, "message": "The provided Uri scheme 'https' is invalid; expected 'sb'.\r\nclientRequestId: a8dce8e3-7699-4665-8a80-32c470919d58", "error": { "message": "The provided Uri scheme 'https' is invalid; expected 'sb'." }, "source": "servicebus-uks.azconn-uks-002.p.azurewebsites.net" } |
Finished
Once you have configured your workflow you are then able to send a message to the service bus.