Create an Azure Event Hub

This tutorial demonstrates how to create an Azure Event Hub using the Azure portal.

Prerequisites

Before you begin, you need an Azure subscription. If you don't have one, create a free account before you start.

Steps to Create an Event Hub

1

Sign in to the Azure portal

Open your web browser and navigate to the Azure portal. Log in with your Azure account credentials.

2

Create an Event Hubs namespace

An Event Hubs namespace is a logical container for Event Hubs. To create one:

  1. In the Azure portal, select Create a resource.
  2. Search for "Event Hubs" and select Event Hubs from the results.
  3. Click Create.
  4. On the Create namespace page, provide the following information:
    • Subscription: Choose your Azure subscription.
    • Resource group: Select an existing resource group or create a new one.
    • Namespace name: Enter a globally unique name for your namespace.
    • Location: Choose the Azure region where you want to deploy the namespace.
    • Pricing tier: Select a pricing tier (e.g., Standard).
  5. Click Review + create, and then click Create.

It may take a few minutes for the namespace to be provisioned.

3

Create an Event Hub within the namespace

Once the namespace is deployed:

  1. Navigate to your newly created Event Hubs namespace in the Azure portal.
  2. In the left-hand menu, under Entities, select Event Hubs.
  3. Click the + Event Hub button.
  4. Enter a name for your event hub (e.g., my-event-hub).
  5. You can configure settings like Partition count and Message retention. For this tutorial, the defaults are usually fine.
  6. Click Create.

Your event hub is now created and ready to receive events.

Tip: You can configure access policies (Shared Access Signatures - SAS) for your event hub to control read and write permissions for applications. You can find these settings under Shared access policies in the left-hand menu of your event hub or namespace.

Next Steps

Now that you have created an event hub, you can start sending and receiving events. Explore the following resources:

Continue to Sending and Receiving Events