Messaging & Integration

Event Hubs

Microsoft.EventHub

Resource types
14 of 14 supported
Data plane
6 types emulated
API versions
9 newest 2026-01-01
Ships as
Plugin 2026.11
Plan
Standard and above

Data as of 2026-11-20

Resource types

The Resource Types supported by Locally for the Microsoft.EventHub plugin are shown below. You can click into a type to see more information.

Note: This is generated from the latest version of the plugin (2026.11) as of 2026-11-20, and may differ in older versions. We aim to keep this information accurate and up to date; if you find something we're missing, then please let us know.

API versions

The latest API version that Locally supports for Microsoft.EventHub is 2026-01-01. All 9 versions it supports are listed below.

Stable3

2026-01-01 2024-01-01 2021-11-01

Preview6

2026-07-01-preview 2025-05-01-preview 2024-05-01-preview 2023-01-01-preview 2022-10-01-preview 2022-01-01-preview

Features

  • Publishing over AMQP and HTTPS, single events or batches.
  • Partitions, chosen by partition ID, partition key or round-robin.
  • Consumer groups, each reading at its own pace.
  • Start positions: earliest, latest, sequence number, offset and enqueued time.
  • Owner levels, so the EventProcessorClient can share partitions between instances.
  • Retention
  • Log compaction
  • Schema Registry
  • Capture to Blob Storage or Data Lake Storage Gen2, as Avro files that raise Microsoft.EventHub.CaptureFileCreated, written with the account key or the namespace's managed identity.
  • Microsoft Entra authentication, with the Azure Event Hubs Data Sender and Azure Event Hubs Data Receiver roles.
  • Shared access policies
  • Event Grid subscriptions can deliver to an Event Hub.
  • IoT Hub's built-in endpoint is an Event Hub, so device telemetry can be read with the same SDKs.
  • Chaos Engineering can throttle, fail or slow down requests over HTTPS and AMQP, cut connections or steal links that are already open, delay, repeat or reorder deliveries, or simulate an outage. Team

Limitations

Event Hubs

  • A hub's status is read when a link is opened at this time, so a link that's already open doesn't see a later change.
  • A partition key always lands on the same partition, but not necessarily the same one it would in Azure at this time.
  • Idempotent publishing isn't supported at this time, so a retried send isn't deduplicated.
  • There's no size limit on retention at this time, and an expired event can still be read for up to 30 seconds.

Namespaces

  • There's no Kafka endpoint at this time.

Schema Groups

  • A schema can be registered under any group name at this time, whether or not the schema group exists.
  • Schemas aren't validated against their format at this time.
  • The Schema Registry can't list a schema's versions or fetch one by name and version at this time.

Examples

Runnable examples from the examples library.

Streaming telemetry from App Service through Event Hubs Deploy a producer and a consumer to App Service with Terraform that stream device readings through a partitioned Event Hub, with the consumer keeping its checkpoints in Blob Storage so it picks up where it left off after a restart. app-serviceazurerm-providercontainer-registryevent-hubshashicorp-terraformopentofustorage Deploy an Event Hub to Locally using an ARM Template Provisions an Event Hubs Namespace, an Event Hub and a Consumer Group, into a Resource Group of your choosing. arm-template Deploy an Event Hubs Namespace to Locally using an ARM Template Provisions an Event Hubs Namespace (Standard SKU), into a Resource Group of your choosing. arm-template Deploy an Event Hub to Locally using a Bicep Template Provisions an Event Hubs Namespace, an Event Hub and a Consumer Group, into a Resource Group of your choosing. bicep Deploy an Event Hubs Namespace to Locally using a Bicep Template Provisions an Event Hubs Namespace (Standard SKU), into a Resource Group of your choosing. bicep Deploy an Event Hub to Locally using Terraform and the Azure/azapi provider Provisions a Resource Group containing an Event Hubs Namespace, an Event Hub and a Consumer Group. azapi-providerhashicorp-terraform Deploy an Event Hubs Namespace to Locally using Terraform and the Azure/azapi provider Provisions a Resource Group containing an Event Hubs Namespace (Standard SKU). azapi-providerhashicorp-terraform Deploy an Event Hub to Locally using Terraform and the hashicorp/azurerm provider Provisions a Resource Group containing an Event Hubs Namespace, an Event Hub and a Consumer Group. azurerm-providerhashicorp-terraform Deploy an Event Hubs Namespace to Locally using Terraform and the hashicorp/azurerm provider Provisions a Resource Group containing an Event Hubs Namespace (Standard SKU). azurerm-providerhashicorp-terraform Deploy an Event Hub to Locally using OpenTofu and the Azure/azapi provider Provisions a Resource Group containing an Event Hubs Namespace, an Event Hub and a Consumer Group. azapi-provideropentofu Deploy an Event Hubs Namespace to Locally using OpenTofu and the Azure/azapi provider Provisions a Resource Group containing an Event Hubs Namespace (Standard SKU). azapi-provideropentofu Deploy an Event Hub to Locally using OpenTofu and the opentofu/azurerm provider Provisions a Resource Group containing an Event Hubs Namespace, an Event Hub and a Consumer Group. azurerm-provideropentofu Deploy an Event Hubs Namespace to Locally using OpenTofu and the opentofu/azurerm provider Provisions a Resource Group containing an Event Hubs Namespace (Standard SKU). azurerm-provideropentofu

Documentation

A local cloud for you and your AI agents.

Your Azure infrastructure, running on your machine. Deploy in seconds, break things freely, and ship to Azure when you're ready.