Create an Event Hub with a Consumer Group
A 3-step recipe with Azure Event Hubs. We can help you get access.
Recipe · 3 steps
Create an Event Hub with a Consumer Group
with Azure Event Hubs
Create an event hub and a consumer group, then verify the group exists.
- Create the event hub as a nested resource within the namespace using the requested partition count.
- Create the consumer group on the new event hub, attaching the supplied user metadata.
- List the consumer groups on the event hub to confirm the newly created group is registered.
What you'll need to have ready
- subscriptionId: Azure subscription identifier that scopes the resource.
- resourceGroupName: Name of the resource group that contains the namespace.
- namespaceName: The existing Event Hubs namespace name.
- eventHubName: The event hub name to create.
- consumerGroupName: The consumer group name to create on the event hub.
- partitionCount: Number of partitions for the event hub (1-32).
- userMetadata: Optional user-defined metadata stored on the consumer group.
- apiVersion: Client API version for the management plane.
For your developer
Arazzo workflow microsoft-azure-event-hubs:create-event-hub-with-consumer-group, 3 operations: EventHubs_CreateOrUpdate → ConsumerGroups_CreateOrUpdate → ConsumerGroups_ListByEventHub. Specs on APIs.io.