Trying to create an event hub but the Azure Storage Container I chose to use brings up an error message

Troy London 5 Reputation points
2023-03-27T23:05:18.42+00:00

I'm trying to create an event hub that captures data from a Azure storage account but I've encountered the following error:

SubCode=40000. Error returned from 'BlobContainer' when making a test call. Error: The account being accessed does not have sufficient permissions to execute this operation. TrackingId:fb521c27-6d35-4688-a39d-99f4556276cc_G7S3, SystemTracker:avddeltaalerts.servicebus.windows.net:avdeventhub, Timestamp:2023-03-27T21:13:28

What access does this account need? I've tried to look up the error message but so far haven't come across anything which could help.

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
719 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Bhargava-MSFT 31,261 Reputation points Microsoft Employee Moderator
    2023-03-28T19:52:16.8533333+00:00

    Hello Troy London,

    Welcome to the MS Q&A platform.

    Per the error message, the account being accessed does not have sufficient permissions to execute the operation. To resolve this issue, you will need to grant the necessary permissions to the storage account.

    To grant the necessary permissions, you can follow the steps below

    • In the Azure portal, go into your storage account to grant your event hub access
    • Select Access control (IAM) in the left pane, and then select Role assignments
    • You'll see a list of who has access to the storage account. Now you want to add a role assignment to the event hub that needs access to the storage account
    • Select Add > Add role assignment to open the Add role assignment page
    • Assign the Storage Blob Data Contributor role to the Event Hub After granting the necessary permissions, you can capture data from the Azure storage account.

    If you are using a Gen1 account, here is a document explaining how to assign permissions to event hubs.

    I hope this helps. Please let me know if you have any further questions.

    1 person found this answer helpful.

  2. Silvia Wibowo 6,041 Reputation points Microsoft Employee Volunteer Moderator
    2023-03-28T19:33:43.8166667+00:00

    Hi @Troy London , are you enabling Event Hub Capture to put streaming event into Azure Data Lake Storage Gen 1?

    You could try assigning permission to Event Hubs.


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.