Azure Event Hubs Documentation

Create an Event Hub

This guide will walk you through the steps to create an Event Hub within an existing Azure Event Hubs namespace. Event Hubs are the central component of Event Hubs, where data is streamed and stored.

Prerequisites

Steps to Create an Event Hub

Step 1: Navigate to your Event Hubs Namespace

Log in to the Azure portal.

In the portal's search bar, type "Event Hubs" and select "Event Hubs" from the results. Then, select the Event Hubs namespace you created earlier.

List of Event Hubs Namespaces

Step 2: Create a New Event Hub

On the overview page of your Event Hubs namespace, click the "+ Event Hub" button in the command bar.

Create Event Hub Button

Step 3: Configure Event Hub Settings

In the "Create Event Hub" blade that appears, you'll need to configure the following settings:

  • Name: Enter a unique name for your Event Hub. This name must be between 1 and 50 characters and can contain only letters, numbers, periods (.), hyphens (-), and underscores (_).
  • Partition count: Specifies the number of partitions for the Event Hub. Partitions allow for parallel processing of events. Choose a number that balances throughput and your application's needs. A common starting point is 2 to 4 partitions.
  • Message retention: Sets how long events are retained in the Event Hub. You can choose between 1 and 7 days.

For advanced settings, you can expand the "Advanced" section to configure:

  • Capture: Enable this to automatically capture data from the Event Hub to an Azure Blob Storage or Azure Data Lake Storage account. This is useful for archiving and batch processing.
Create Event Hub Form

Step 4: Review and Create

After configuring the settings, click the "Review + create" button.

The portal will validate your settings. Once validation passes, click the "Create" button to deploy your Event Hub.

Review and Create Button

Step 5: Verify Creation

Once the deployment is complete, you will see a notification. Navigate back to your Event Hubs namespace, and you should see your newly created Event Hub listed under the "Event Hubs" section.

Event Hubs List with Created Hub

Congratulations! You have successfully created an Event Hub. You can now proceed to send and receive messages using this Event Hub.