im getting "unauthorized" status code 401 although i added the neccessary permissions

gumi 0 Reputation points
2025-01-09T14:16:28.9533333+00:00

im trying to send logs from my storage to an event hub by using logic app.

i added the permission "Azure Event Hubs Data Sender" to the logic app (managed identity).

im getting "unauthorized" status code 401 on the last step, which is event hub send event:

{  "status": 401,  "message": "Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'sb://XXX2XXXX.servicebus.windows.net/XXXXeh'. TrackingId:90a2a38ab3cd47f6a9db0e42f7f8d3b9_G9, SystemTracker:gateway5, Timestamp:2025-01-09T13:52:51, referenceId: 90a2a38ab3cd47f6a9db0e42f7f8d3b9_G9\r\nclientRequestId: e7cf4d34-e49c-409b-a7c7-85e600143791",  "error": {    "message": "Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'sb://XXXX2XXXXX.servicebus.windows.net/catoeh'. TrackingId:90a2a38ab3cd47f6a9db0e42f7f8d3b9_G9, SystemTracker:gateway5, Timestamp:2025-01-09T13:52:51, referenceId: 90a2a38ab3cd47f6a9db0e42f7f8d3b9_G9"  },  "source": "eventhubs-ic.azconn-ic-001.p.azurewebsites.net"}

User's imageUser's image

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,299 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
671 questions
{count} votes

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.