Create an Event Hub
This section guides you through the process of creating your first Azure Event Hub within an existing namespace. Event Hubs are the core component of Azure Event Hubs, designed to ingest massive volumes of events.
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 namespaces" from the results. Click on the namespace you created in the previous step.
Step 2: Add an Event Hub
Once you are on the overview page of your Event Hubs namespace, locate and click the + Event Hub button in the toolbar.
Step 3: Configure Your Event Hub
A blade will appear on the right side of the screen. Fill in the following details:
- Name: Enter a unique name for your event hub. This name will be part of the connection string. For example,
my-iot-data. - Partition Count: This determines the number of concurrent consumers. Choose a value appropriate for your expected throughput. You can choose between 2 and 32 for Standard tier namespaces.
- Message Retention: Specify how long events should be retained in the event hub. The default is 1 day, but you can increase it up to 7 days.
- Use Capture: If you want to automatically archive data from your event hub to Azure Blob Storage or Azure Data Lake Storage, enable this option and configure the destination and interval.
After filling in the details, click Create.
Step 4: Verify the Event Hub Creation
It may take a few moments for the event hub to be provisioned. Once created, you will see your new event hub listed under the "Event hubs" section of your namespace overview. Click on the event hub name to see its details.
Next Steps
Now that you have created an event hub, you'll want to learn how to connect to it and send/receive events. The next logical steps are: