Error while configuring Service bus connection in service bus queue trigger in Stateful Logic App

Azure-search 201 Reputation points
2023-10-05T14:04:58.75+00:00

Hi,

I am using a "When a message is received in a queue (auto-complete)" service bus trigger in my stateful logic app, I created a service bus connection using managed identity, but when i am trying to select the queue from the dropdown I can see the below error:

User's image

I even adding the queue name using custom value, but I'm getting the below error under Trigger history:

User's image

Any kind of help is appreciated. Thanks!

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
635 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,203 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 27,911 Reputation points
    2023-10-24T12:28:10.6733333+00:00

    @Azure-search Thanks for your patience. I am able to fetch the queue name successfully could you please confirm if you have followed the below steps.

    1. Enable the managed identity for the logic app.
    2. Assign a role to the managed identity
    • Go to the Azure portal and navigate to your Service Bus namespace.
    • Select "Access control (IAM)" from the left-hand menu.
    • Click "Add" to add a new role assignment.
    • Select the role you want to assign to the managed identity, such as "Azure Service Bus Data Owner".
    • Under "Assign access to", select "Managed identity" and then select the managed identity that you want to assign the role to.
    • Click "Save" to save the role assignment.
    1. create connection as shown below
      User's image
    2. once after creating a connection you will be able to see the queue name as shown belowUser's image

    Reference: https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-servicebus?tabs=consumption

    https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-diagnosing-failures?tabs=consumption

    The error "unresolvablehostname" typically indicates a problem with DNS resolution. could you please confirm if your servicebus is in VNet? If yes check the DNS configuration of your virtual network. Make sure that the DNS server is configured correctly and that it can resolve the hostname of the Service Bus.

    Check the firewall rules of your virtual network. Make sure that the firewall rules allow traffic to and from the Service Bus queue.

    If you still observe the errors, I suggest you open a support ticket to our Azure Support team. They will help you in configuring and they have best tools and resources to investigate the backend logs and find the cause. Do you have a support plan for this subscription? If not, I can have a one-time free support ticket created to have this specific issue investigated. I will share the details in a separate message after you confirm.

    I hope this helps and let me know if any questions.

    0 comments No comments

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.