Quickstart: Create an event hub using Azure portal
Azure Event Hubs is a Big Data streaming platform and event ingestion service, capable of receiving and processing millions of events per second. Event Hubs can process and store events, data, or telemetry produced by distributed software and devices. Data sent to an event hub can be transformed and stored using any real-time analytics provider or batching/storage adapters. For detailed overview of Event Hubs, see Event Hubs overview and Event Hubs features.
In this quickstart, you create an event hub using the Azure portal.
To complete this quickstart, make sure that you have:
- Azure subscription. If you don't have one, create a free account before you begin.
- Visual Studio 2019) or later.
- .NET Standard SDK, version 2.0 or later.
Create a resource group
A resource group is a logical collection of Azure resources. All resources are deployed and managed in a resource group. To create a resource group:
Sign in to the Azure portal.
In the left navigation, click Resource groups. Then click Add.
For Subscription, select the name of the Azure subscription in which you want to create the resource group.
Type a unique name for the resource group. The system immediately checks to see if the name is available in the currently selected Azure subscription.
Select a region for the resource group.
Select Review + Create.
On the Review + Create page, select Create.
Create an Event Hubs namespace
An Event Hubs namespace provides a unique scoping container, referenced by its fully qualified domain name, in which you create one or more event hubs. To create a namespace in your resource group using the portal, do the following actions:
In the Azure portal, and click Create a resource at the top left of the screen.
Select All services in the left menu, and select star (
*) next to Event Hubs in the Analytics category. Confirm that Event Hubs is added to FAVORITES in the left navigational menu.
Select Event Hubs under FAVORITES in the left navigational menu, and select Add on the toolbar.
On the Create namespace page, take the following steps:
Enter a name for the namespace. The system immediately checks to see if the name is available.
Choose the pricing tier (Basic or Standard).
Notice that Enable Kafka option is automatically enabled. Azure Event Hubs provides you with a Kafka endpoint. This endpoint enables your Event Hubs namespace to natively understand Apache Kafka message protocol and APIs. With this capability, you can communicate with your event hubs as you would with Kafka topics without changing your protocol clients or running your own clusters. Event Hubs supports Apache Kafka versions 1.0 and later.
Select the subscription in which you want to create the namespace.
Select an existing resource group or create a new resource group.
Select a location for the namespace.
Select Create. You may have to wait a few minutes for the system to fully provision the resources.
Refresh the Event Hubs page to see the event hub namespace. You can check the status of the event hub creation in the alerts.
Select the namespace. You see the home page for your Event Hubs namespace in the portal.
Create an event hub
To create an event hub within the namespace, do the following actions:
On the Event Hubs Namespace page, select Event Hubs in the left menu.
At the top of the window, click + Event Hub.
Type a name for your event hub, then click Create.
You can check the status of the event hub creation in alerts. After the event hub is created, you see it in the list of event hubs as shown in the following image:
Congratulations! You have used the portal to create an Event Hubs namespace, and an event hub within that namespace.
In this article, you created a resource group, an Event Hubs namespace, and an event hub. For step-by-step instructions to send events to (or) receive events from an event hub, see the Send and receive events tutorials: