Quickstart: Create an Azure Event Hub

This quickstart guide will walk you through the steps to create an Azure Event Hub using the Azure portal. Event Hubs is a highly scalable data streaming platform and event ingestion service that can capture millions of events per second.

Prerequisites

Steps to Create an Event Hub

1. Create an Event Hubs Namespace

An Event Hubs Namespace is a logical container that holds your Event Hubs. You need a Namespace before you can create an Event Hub.

  1. Go to the Azure portal.
  2. In the search bar at the top, type "Event Hubs" and select "Event Hubs" from the results.
  3. On the Event Hubs page, select + Create.
  4. In the Basics tab:
    • Subscription: Select your Azure subscription.
    • Resource group: Select an existing resource group or click Create new to create a new one.
    • Namespace name: Enter a globally unique name for your Event Hubs namespace.
    • Location: Select the Azure region where you want to deploy the namespace.
    • Pricing tier: Select the desired pricing tier. For this quickstart, the Standard tier is recommended.
  5. Click Review + create, then Create. Deployment may take a few minutes.

2. Create an Event Hub within the Namespace

Once the Event Hubs namespace is created and deployed, you can create an Event Hub within it.

  1. Navigate to your newly created Event Hubs namespace in the Azure portal.
  2. In the left-hand menu, under Entities, click Event Hubs.
  3. Click + Event Hub at the top of the list.
  4. In the Create Event Hub panel:
    • Name: Enter a name for your Event Hub (e.g., my-event-hub).
    • Partition count: Leave this as the default or set it to a desired number.
    • Message retention: Set the retention period for messages.
  5. Click Create.

Success! You have now successfully created an Event Hub within your Azure Event Hubs Namespace. You can now configure applications to send and receive events from this hub.

Next Steps

After creating your Event Hub, consider exploring the following:

Send and Receive Events