Create an Event Hub
This guide will walk you through the process of creating an Azure Event Hub using the Azure Portal.
Prerequisites
- An Azure account with an active subscription. If you don't have one, you can create a free account.
- An Azure Event Hubs namespace. If you don't have one, you'll need to create it first. You can find instructions here.
Steps to Create an Event Hub
Step 1: Navigate to your Event Hubs Namespace
Sign in to the Azure Portal. In the search bar at the top, type "Event Hubs" and select "Event Hubs" from the results. Then, select the Event Hubs namespace where you want to create the new event hub.
Step 2: Access the Event Hubs Section
On the left-hand menu of your Event Hubs namespace page, under the "Settings" section, click on "Event Hubs".
Step 3: Create a New Event Hub
In the "Event Hubs" list, click the + Event Hub button at the top of the list.
This will open the "Create Event Hub" blade.
Step 4: Configure Event Hub Settings
Fill in the following details:
- Name: Enter a unique name for your event hub. Event hub names are case-insensitive and must contain only letters, numbers, periods, hyphens, and underscores.
- Partition count: This setting determines the number of partitions for your event hub. Partitions are ordered, immutable sequences of events. For most use cases, a value between 2 and 32 is sufficient. You can increase this later if needed.
- Message retention: This specifies how long events are stored in the event hub. The default is 1 day, but you can configure it up to 7 days.
Important: The partition count and message retention settings cannot be changed after the event hub is created. Plan accordingly!
Step 5: Create the Event Hub
Once you have configured the settings, click the Create button at the bottom of the blade.
Step 6: Verification
It may take a moment for the event hub to be created. Once it's ready, you will see your new event hub listed in the "Event Hubs" section of your namespace.
Next Steps