Create an Event Hub in Azure

This tutorial will guide you through the process of creating an Azure Event Hub using the Azure portal. Event Hubs are a highly scalable data streaming platform and event ingestion service.

Azure Event Hubs Creation Illustration

Prerequisites

Steps to Create an Event Hub

Note: After creating the Event Hub, you will need to configure access policies or connection strings to send and receive messages. This is covered in the next tutorial.

Next Steps


# Example of creating an Event Hubs Namespace and Event Hub using Azure CLI

echo "Creating a resource group..."
az group create --name "myResourceGroup" --location "West US"

echo "Creating an Event Hubs namespace..."
az eventhubs namespace create \
    --resource-group "myResourceGroup" \
    --name "my-unique-eventhub-namespace" \
    --location "West US" \
    --sku "Standard" "1000RU"

echo "Creating an Event Hub within the namespace..."
az eventhubs eventhub create \
    --resource-group "myResourceGroup" \
    --namespace-name "my-unique-eventhub-namespace" \
    --name "myeventhub" \
    --partition-count 2 \
    --message-retention-in-days 7