Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
---
title: Azure Event Hubs troubleshooting guide
description: Troubleshoot Azure Event Hubs issues by symptom. Find guidance for connectivity, consumer groups, authentication, checkpoints, Kafka clients, and exceptions.
ms.topic: troubleshooting-general
ms.date: 11/12/2026
ai-usage: ai-assisted
#customer intent: As a developer or IT administrator, I want to find troubleshooting guidance for my Event Hubs symptoms so that I can resolve issues with my applications and resources.
---
# Troubleshoot issues in Azure Event Hubs
Use this article to troubleshoot Azure Event Hubs issues by symptom. It covers connectivity and consumer group behavior, and links to specialized troubleshooting articles for other categories.
## Find guidance for your symptoms
| Category | Symptom | Troubleshooting guidance |
| --- | --- | --- |
| Connectivity | The client never connects to the event hub. | [Permanent connectivity issues](#troubleshoot-permanent-connectivity-issues) |
| Connectivity | Connections fail intermittently, disconnect, or experience temporary throttling. | [Transient connectivity problems](#troubleshoot-transient-connectivity-problems) |
| Consumer groups | Clients receive events after consumer group deletion or use a never-created group name. | [Receiving events after consumer group deletion](#receiving-events-after-consumer-group-deletion) |
| Authentication and authorization | Credentials or permissions prevent access. | [Authentication and authorization issues](troubleshoot-authentication-authorization.md) |
| Checkpointing | The event processor reports checkpoint store or partition ownership errors. | [Checkpoint store issues](troubleshoot-checkpoint-store-issues.md) |
| Apache Kafka | Kafka clients report connection, configuration, or protocol errors. | [Kafka troubleshooting guide](apache-kafka-troubleshooting-guide.md) |
| Client exceptions | A .NET client reports an Event Hubs exception. | [EventHubsException](exceptions-dotnet.md) and [.NET messaging exceptions](event-hubs-messaging-exceptions.md) |
| Resource management | An Azure Resource Manager operation fails. | [Resource Manager exceptions](resource-manager-exceptions.md) |
## Connectivity checks at a glance
For **permanent issues**, check these settings and other options mentioned in the [Troubleshoot permanent connectivity issues](#troubleshoot-permanent-connectivity-issues) section:
- Connection string
- Your organization's firewall settings
- IP firewall settings
- Network security settings (service endpoints, private endpoints, and more)
For **transient issues**, try the following options that can help with troubleshooting the issues. For more information, see [Troubleshoot transient connectivity problems](#troubleshoot-transient-connectivity-problems).
- Upgrade to latest version of the SDK
- Run commands to check dropped packets
- Obtain network traces.
## Troubleshoot permanent connectivity issues
If the application can't connect to the event hub at all, follow the steps in this section to troubleshoot the issue.
### Check if there's a service outage
Check for the Azure Event Hubs service outage on the [Azure service status site](https://azure.microsoft.com/status/).
### Verify the connection string
Verify that the connection string you're using is correct. See [Get connection string](event-hubs-get-connection-string.md) to get the connection string by using the Azure portal, CLI, or PowerShell.
For Kafka clients, verify that `producer.config` or `consumer.config` files are configured properly. For more information, see [Send and receive messages with Kafka in Event Hubs](event-hubs-quickstart-kafka-enabled-event-hubs.md#send-and-receive-messages-with-kafka-in-event-hubs).
[!INCLUDE [event-hubs-connectivity](./includes/event-hubs-connectivity.md)]
### Verify that Event Hubs service tag is allowed in your network security groups
If your application runs inside a subnet and there's an associated network security group, confirm whether the internet outbound traffic is allowed or Event Hubs service tag (`EventHub`) is allowed. See [Virtual network service tags](../virtual-network/service-tags-overview.md) and search for `EventHub`.
### Check if the application needs to be running in a specific subnet of a virtual network
Confirm that your application runs in a virtual network subnet that has access to the namespace. If it doesn't, run the application in the subnet that has access to the namespace or add the IP address of the machine on which application is running to the [IP firewall](event-hubs-ip-filtering.md).
When you create a virtual network service endpoint for an event hub namespace, the namespace accepts traffic only from the subnet that's bound to the service endpoint. There's an exception to this behavior. You can add specific IP addresses in the IP firewall to enable access to the event hub's public endpoint. For more information, see [Network service endpoints](event-hubs-service-endpoints.md).
### Check the IP firewall settings for your namespace
Check that the public IP address of the machine on which the application is running isn't blocked by the IP firewall.
By default, Event Hubs namespaces are accessible from internet as long as the request comes with valid authentication and authorization. With IP firewall, you can restrict it further to only a set of IPv4 or IPv6 addresses or address ranges in [CIDR (Classless Inter-Domain Routing)](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notation.
The IP firewall rules are applied at the Event Hubs namespace level. Therefore, the rules apply to all connections from clients using any supported protocol. Any connection attempt from an IP address that doesn't match an allowed IP rule on the Event Hubs namespace is rejected as unauthorized. The response doesn't mention the IP rule. IP filter rules are applied in order, and the first rule that matches the IP address determines the accept or reject action.
For more information, see [Configure IP firewall rules for an Azure Event Hubs namespace](event-hubs-ip-filtering.md). To check whether you have IP filtering, virtual network, or certificate chain issues, see [Troubleshoot network-related problems](#troubleshoot-network-related-problems).
### Check if the namespace can be accessed using only a private endpoint
If the Event Hubs namespace is configured to be accessible only via private endpoint, confirm that the client application is accessing the namespace over the private endpoint.
[Azure Private Link service](../private-link/private-link-overview.md) enables you to access Azure Event Hubs over a **private endpoint** in your virtual network. A private endpoint is a network interface that connects you privately and securely to a service powered by Azure Private Link. The private endpoint uses a private IP address from your virtual network, effectively bringing the service into your virtual network. All traffic to the service can be routed through the private endpoint, so no gateways, NAT devices, ExpressRoute or VPN connections, or public IP addresses are needed. Traffic between your virtual network and the service traverses over the Microsoft backbone network, eliminating exposure from the public Internet. You can connect to an instance of an Azure resource, giving you the highest level of granularity in access control.
For more information, see [Configure private endpoints](private-link-service.md). See the **Validate that the private endpoint connection works** section to confirm that a private endpoint is used.
### Troubleshoot network-related problems
To troubleshoot network-related problems with Event Hubs, follow these steps:
Browse to or use [wget](https://www.gnu.org/software/wget/) to access `https://<yournamespacename>.servicebus.windows.net/`. This step helps you check whether you have IP filtering, virtual network, or certificate chain problems (most common when using Java SDK).
An example of **successful message**:
```xml
<feed xmlns="http://www.w3.org/2005/Atom"><title type="text">Publicly Listed Services</title><subtitle type="text">This is the list of publicly-listed services currently available.</subtitle><id>uuid:27fcd1e2-3a99-44b1-8f1e-3e92b52f0171;id=30</id><updated>2019-12-27T13:11:47Z</updated><generator>Service Bus 1.1</generator></feed>
```
An example of **failure error message**:
```json
<Error>
<Code>400</Code>
<Detail>
Bad Request. To know more visit https://aka.ms/sbResourceMgrExceptions. . TrackingId:b786d4d1-cbaf-47a8-a3d1-be689cda2a98_G22, SystemTracker:NoSystemTracker, Timestamp:2019-12-27T13:12:40
</Detail>
</Error>
```
## Troubleshoot transient connectivity problems
If you're experiencing intermittent connectivity problems, go through the following sections for troubleshooting tips.
### Use the latest version of the client SDK
Later versions of the SDK might fix some transient connectivity problems. Make sure you're using the latest version of client SDKs in your applications. SDKs are continuously improved with new or updated features and bug fixes, so always test with the latest package. Check the release notes for fixed problems and added or updated features.
For information about client SDKs, see the [Azure Event Hubs - Client SDKs](sdks.md) article.
### Run the command to check dropped packets
When there are intermittent connectivity problems, run the following command to check if there are any dropped packets. This command tries to establish 25 different TCP connections every 1 second with the service. Then, you can check how many of them succeeded or failed and also see TCP connection latency. You can download the `psping` tool from [here](/sysinternals/downloads/psping).
```shell
.\psping.exe -n 25 -i 1 -q <yournamespacename>.servicebus.windows.net:5671 -nobanner
```
You can use equivalent commands if you're using other tools such as `tnc`, `ping`, and so on.
Obtain a network trace if the previous steps don't help and analyze it using tools such as [Wireshark](https://www.wireshark.org/). Contact [Microsoft Support](https://support.microsoft.com/) if needed.
### Service upgrades and restarts
Transient connectivity problems can happen because of backend service upgrades and restarts. When these problems happen, you might see the following symptoms:
- Incoming messages or requests drop.
- The log file shows error messages.
- The applications disconnect from the service for a few seconds.
- Requests are momentarily throttled.
If your application code uses the SDK, it already has an active retry policy. The application reconnects without significant impact to the application or workflow. By catching these transient errors, backing off, and then retrying the call, you make sure your code can handle these transient problems.
## Receiving events after consumer group deletion
An Azure Event Hubs client can continue to receive events after you delete its consumer group. A new client can also receive events by using a consumer group name that you never created. This section explains how virtual consumer groups affect these scenarios and how to distinguish resource existence from the ability to receive events. For background, see [Consumer groups](event-hubs-features.md#consumer-groups).
### Why this behavior occurs
Event Hubs uses virtual consumer groups as an internal implementation detail to support other features. They aren't a standalone customer-facing feature and aren't intended for customers to adopt or manage directly.
With virtual consumer groups enabled, an authorized AMQP receiver can use a consumer group name without a corresponding persisted consumer group resource in Azure Resource Manager. This behavior can also affect standalone Event Hubs applications.
Deleting the persisted resource and receiving events are separate operations:
- **Management plane:** Azure Resource Manager creates, lists, and deletes persisted consumer group resources. A successful deletion followed by a resource lookup returning HTTP `404` confirms that the persisted resource is absent.
- **Data plane:** An authorized receiver can use a virtual consumer group even when the persisted resource is absent. Successful reception doesn't prove that a corresponding Azure Resource Manager resource exists.
Before this change, applications might have relied on a missing consumer group causing a resource-not-found error when a receiver connected. Where virtual consumer groups are enabled, don't rely on that error to validate resource existence.
> [!IMPORTANT]
> Deleting a consumer group isn't a reliable way to stop consumption. Virtual consumer groups don't grant receive permissions; clients still require valid authorization to receive events. Evaluate access through the client's credentials and applicable permissions, separately from whether the persisted consumer group exists.
### Recognize the symptoms
You might observe one or more of these symptoms:
- Consumer group deletion succeeds, and a subsequent management-plane lookup returns `404`, but a receiver using the deleted name receives events.
- A newly created receiver using the deleted name receives events.
- A receiver using a never-created consumer group name connects without a resource-not-found error. A receive operation might return an empty batch if no events are available at the requested position.
- An application health check that previously failed after consumer group deletion continues to report a healthy connection.
These symptoms don't, by themselves, mean that the deletion failed or that the client SDK is defective. This section describes AMQP receiver behavior; it doesn't introduce a change to Kafka consumer group behavior.
### Verify resource existence separately from connectivity
1. Confirm the subscription, namespace, event hub, and consumer group name that your application uses.
1. Check the persisted resource through the Azure portal, an Event Hubs management SDK, or the [Consumer Groups - Get REST API](/rest/api/eventhub/consumer-groups/get). Verify that the lookup targets the same resource that you deleted.
1. Record the management response separately from the receiver's connection and receive results. An authorization or network error during the lookup doesn't mean that the resource is absent.
1. When investigating continued reception, distinguish events already buffered by the application from events received from the service after deletion. Use existing logs where possible; don't delete another production consumer group or restart production consumers solely to reproduce the behavior.
A successful receive and an absent management resource can both be valid results. Check each independently rather than treating one as proof of the other.
### Update applications and health checks
If your application requires a persisted consumer group, explicitly validate that resource through the management plane. Handle a missing resource as an application configuration issue, even if a receiver can connect. The identity performing the management check needs the appropriate management-plane read permission; receive permission alone doesn't establish that access.
Keep these checks separate:
| Check | What it establishes |
| --- | --- |
| Management-plane resource lookup | Whether the persisted consumer group exists. |
| Receiver connection and receive operation | Whether the client can connect and receive at the requested position. An empty batch alone doesn't indicate a missing consumer group. |
| Application processing health | Whether your application is processing events as intended. |
Update tests that expect a missing consumer group to cause a data-plane resource-not-found error. Continue to test authentication and authorization failures independently.
### Stop consumption or restrict access
To stop an application from consuming events, stop or disable its consumers through the application's normal operational controls.
If you need to restrict access, review the identity or shared access signature (SAS) credentials used by the application and the permissions that grant receive access. Consider inherited permissions and other applications that share those credentials before making changes. Follow the guidance for [Microsoft Entra ID authorization](authorize-access-azure-active-directory.md) or [SAS authorization](authorize-access-shared-access-signature.md), as applicable.
Don't assume that an access change immediately stops every existing connection. Verify the outcome by using receiver and application telemetry, and account for events already buffered by the application.
### Collect information for support
If the behavior doesn't match this guidance, collect the following information for your support request:
- Namespace, event hub, consumer group name, and Azure region.
- Protocol, SDK name and version, and authentication method. Don't include access tokens, SAS keys, connection strings, or event payloads.
- UTC timestamps, management operation results, error messages, and correlation or tracking IDs.
- Whether the observation involves an existing receiver, a newly started receiver, or both.
- The difference between expected and observed behavior.
If reception appears to continue after the client no longer has the required authorization, investigate that separately. Don't treat it as expected solely because virtual consumer groups are enabled.
## Next steps
See the following articles:
* [Troubleshoot authentication and authorization issues](troubleshoot-authentication-authorization.md)