Create an Azure Event Hubs Namespace

An Azure Event Hubs namespace is a logical container for your Event Hubs instances. It provides a unique scope for Event Hubs, and you'll use it to group related hubs and manage access policies. This guide walks you through the process of creating a new Event Hubs namespace using the Azure portal.

Prerequisites

Before you begin, ensure you have:

Steps to Create a Namespace

1. Navigate to the Azure Portal

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

2. Create a Resource

In the Azure portal, click on the + Create a resource button located at the top-left corner.

Visual Guide

You'll see a search bar. Type Event Hubs into the search bar and press Enter. Select Event Hubs from the search results.

Azure portal search for Event Hubs

3. Configure Namespace Details

On the Event Hubs page, click Create.

You will be presented with a form to configure your new Event Hubs namespace. Fill in the following details:

Important Considerations

Namespace names must be globally unique across all Azure customers. Once created, the namespace name cannot be changed.

4. Review and Create

Once you have filled in all the required details, click on the Review + create button.

Azure will validate your configuration. After validation passes, review the settings and click Create to provision your Event Hubs namespace.

Deployment

The deployment process may take a few minutes. You can monitor the deployment progress in the Azure portal notifications.

5. Accessing Your Namespace

After the deployment is complete, you can navigate to your Event Hubs namespace by clicking Go to resource. From there, you can create Event Hubs instances within this namespace, configure access policies, and manage your Event Hubs resources.

Example using Azure CLI

You can also create an Event Hubs namespace using the Azure Command-Line Interface (CLI).

az eventhubs namespace create \ --resource-group MyResourceGroup \ --name myuniqueeventhubnamespace \ --location eastus \ --sku Standard \ --enable-auto-inflate
// Replace MyResourceGroup and myuniqueeventhubnamespace with your desired names.

For detailed information on Azure CLI commands, refer to the Azure CLI documentation.

Next Steps

Now that you have created a namespace, you can proceed to create your first Event Hub. See our guide on Creating an Event Hub.