Logic app to eventhub connection failing

Vikas Tiwari 771 Reputation points
2022-09-16T21:47:04.607+00:00

Hi,

I have logic app flow which sends data to event hub, I am using RBAC to connect from logic apps to hub and gave data sender role to send to event hub.
In my logic app using managed identity auth type but when I put eventhub namespace connection string, its giving following error

Could not retrieve values. Error code: 'BadRequest', Message: 'The provided event hubs namespace endpoint 'Endpoint=sb://eh-************' is not valid.
Please provide a valid namespace endpoint.

I copied endpoint directly from portal so its valid endpoint. Any idea what I missing here?

Thanks

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,219 questions
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,536 Reputation points
    2022-09-20T11:17:40.533+00:00

    @Vikas Tiwari Thanks for reaching out. As you have mentioned that you are using the managed identity and have assigned the data sender role. Please confirm if you mean
    Azure Event Hubs Data Sender permission to your managed identity (user assigned or system assigned)? It looks like either the namespace endpoint was not defined correctly while configuring the connector. Please confirm if you have used the namespace endpoint as sb://{yournamespace}.servicebus.windows.net/ in the configuration as below.

    242993-image.png

    If you have used the namespace endpoint correctly then please validate whether you have assigned the Azure Event Hubs Data Sender permission to the right resource (logic app) or object ID.
    I was able to reproduce the issue if I assigned the wrong namespace endpoint or the format is incorrect. In case if the permission is not assigned to my logic app then I do see the same behavior as you have mentioned.

    In case if you still facing the issue then please let me know so I can connect offline to assist you further.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.