how to read servicebus queue message in azure function using logic app

Manoj Singh 41 Reputation points
2022-07-11T10:33:41.053+00:00

Hi,

I'm trying to implement a Poc considering the scenario as,

Trigger LogicApp whenever message arrives in ServiceBus Queue. The message will be sent to/read by Azure Function which will be the next action within the LogicApp. After performing some business processes Azure function will return the response back to Logic App. Based on the response from Azure function, LogicApp will trigger few more functions and then they will send the response back to ServiceBus Queue.

I'm able to invoke/trigger LogicApp when a message arrives in ServiceBus queue. Since I'm newbie to Azure and LogicApp, I'm not sure how can I pass message to Azure Function to read and perform business validation within the LogicApp.

Thanks in advance!

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
662 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,399 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,337 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kamlesh Kumar 3,866 Reputation points
    2022-07-11T15:29:01.907+00:00

    Hi @Manoj Singh ,

    Welcome to Microsoft Q&A Platform. Thank you for the question.

    First you have to create the functions which can contain the business validation and then you can call the function inside your logic app with desire input parameters.

    219597-image.png

    From the function apps list, select your function app.

    219577-image.png

    Please follow the below MS doc to understand the flow step by step,

    Create and run code from workflows in Azure Logic Apps using Azure Functions

    Regards,
    Kamlesh Kumar
    BizTalk Techie

    Please don't forget to click on 205836-130616-image.png or upvote 205759-130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is How

    Want a reminder to come back and check responses? Here is how to subscribe to a Notification

    If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.