Quickstart: Create an Azure Event Hub
This guide will walk you through the process of creating an Azure Event Hub within an existing Event Hubs namespace using the Azure portal.
Prerequisites: You need an Azure subscription and an existing Event Hubs namespace. If you don't have one, follow the Quickstart: Create an Event Hubs namespace guide first.
Steps to Create an Event Hub
Sign in to the Azure portal
Open your web browser and navigate to the Azure portal. Sign in with your Azure account credentials.
Navigate to your Event Hubs namespace
In the Azure portal search bar, type "Event Hubs" and select the "Event Hubs" service from the results. On the Event Hubs page, select your existing namespace from the list.
Create a new Event Hub
On the Overview page of your Event Hubs namespace, locate and click the + Event Hub button in the toolbar.
Configure the Event Hub
In the "Create Event Hub" pane that appears on the right:
- Name: Enter a unique name for your event hub (e.g.,
myeventhub). Event hub names must be comma-separated if you are creating multiple. - Partition count: Specify the number of partitions. This determines the degree of parallelism for consumption. For testing, 2 partitions is usually sufficient. For production, consider your throughput needs.
- Message retention: Set the duration for which events are retained in the hub. The default is 1 day.
You can also configure advanced settings like capture (to archive events to Azure Blob Storage or Azure Data Lake Storage) if needed. For this quickstart, we'll keep the default capture settings.
Review and Create
Click the Review + create button at the bottom of the pane.
Deploy
On the review page, verify your settings. If everything looks correct, click the Create button. The deployment process may take a few moments.
You'll receive a notification once the deployment is complete.
Next Steps
Congratulations! You have successfully created an Azure Event Hub. You can now proceed to send and receive events to and from this hub.
- Learn how to send and receive events in our next quickstart: Send and receive events with Event Hubs.
- Explore advanced features and concepts in the Concepts section.