Getting Started with Azure Event Hubs: Create a Namespace

This guide will walk you through the essential steps to create an Azure Event Hubs namespace, the fundamental building block for sending and receiving events.

What is an Event Hubs Namespace?

An Azure Event Hubs namespace provides a unique scoping container or Uniform Resource Identifier (URI) for your Event Hubs access. You create a namespace to organize your Event Hubs logic, and your producers and consumers interact with this namespace.

Prerequisites

Steps to Create an Event Hubs Namespace

  1. Sign in to the Azure Portal

    Navigate to the Azure portal and sign in with your Azure account credentials.

  2. Create a Resource

    In the Azure portal, search for Event Hubs in the top search bar and select it from the services list. Then, click Create.

  3. Configure Basic Settings

    On the Create Namespace page, you'll need to fill in the following details:

    • Subscription: Select your Azure subscription.
    • Resource group: Choose an existing resource group or create a new one. Resource groups are logical containers for your Azure resources.
    • Namespace name: Enter a globally unique name for your Event Hubs namespace. The name must be between 1 and 50 characters and can contain only letters, numbers, and hyphens.
    • Location: Select the Azure region where you want to deploy your namespace. Choose a region that is geographically close to your applications or users for reduced latency.
    • Pricing tier: Select a pricing tier. For getting started, the Basic tier is usually sufficient. For higher throughput and advanced features, consider Standard or Premium.
  4. Review and Create

    After configuring the basic settings, click on the Review + create button. Azure will validate your settings. If everything is correct, click Create to deploy your Event Hubs namespace.

  5. Deployment Progress

    The deployment process may take a few minutes. You can monitor the progress in the Azure portal notifications or by navigating to the resource group you selected.

  6. Access Your Namespace

    Once the deployment is complete, you can navigate to your Event Hubs namespace resource. Here you will find options to create Event Hubs within the namespace, manage access policies, and generate connection strings.

Important: Your Event Hubs namespace name must be globally unique across Azure. If the name you choose is already taken, you'll need to select another one.

Next Steps

Now that you have successfully created an Event Hubs namespace, you can proceed to:

Go to Azure Event Hubs