Problem in send event EventHub using Tenant_id, client_id and secret_id

Marcus Pimentel 0 Reputation points
2024-04-30T10:58:13.43+00:00

Hi, a have a problem to send events using EventHubs with tenant_id, client_id and secret_id.

Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'sb://....
Error condition: amqp:unauthorized-access

Using connectionstring works normally. But I need to use it with tenant_id.

Is there any type of configuration missing from the portal?

My app using Python 3.7 , 3.8

Thank's

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
566 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. BhargavaGunnam-MSFT 27,081 Reputation points Microsoft Employee
    2024-04-30T20:33:43.9933333+00:00

    Hello Marcus Pimentel

    Welcome to the Microsoft Q&A forum.

    It seems like you're encountering an authorization issue when trying to send events to Event Hubs using tenant_id, client_id, and secret_id. This error typically indicates that the Azure Active Directory application you're using doesn't have the correct permissions to send messages to the Event Hub.

    Please make sure that the AAD application has the 'Event Hubs Data Sender' role assigned to it.

    https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#azure-event-hubs-data-sender

    This should resovle the issue. I hope this helps.

    0 comments No comments