Skip to content

Commit f2f3ce7

Browse files
committed
Service Bus - Resource Health - lookback window
1 parent 854b628 commit f2f3ce7

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

articles/service-bus-messaging/service-bus-troubleshooting-guide.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,21 @@
22
title: Troubleshooting guide for Azure Service Bus | Microsoft Docs
33
description: Learn about troubleshooting tips and recommendations for a few issues that you see when using Azure Service Bus.
44
ms.topic: article
5-
ms.date: 05/15/2025
5+
ms.date: 07/17/2025
66
ms.custom:
77
- build-2025
88
---
99

1010
# Troubleshooting guide for Azure Service Bus
1111
This article provides troubleshooting tips and recommendations for a few issues that you see when using Azure Service Bus.
1212

13+
14+
## Resource health
15+
The unhealthy period marked on the **Resource health** page of your Service Bus namespace in the Azure portal might be longer by a few minutes than the actual period. For example, the page might indicate that the namespace is unhealthy for 5-6 minutes, while the actual unhealthy period was only 1-2 minutes.
16+
17+
This behavior is due to the alert system's evaluation mechanism, which uses a 3-minute evaluation interval combined with a 5-minute lookback window. The lookback window is used to ensure that there are no errors for atleast 5 minutes before considering the namespace healthy. In the above example, the namespace got healthy in a minute or two but the next evaluation happened was atleast 5 minutes (lookback window) after the namespace became healthy.
18+
19+
1320
## Connectivity issues
1421

1522
### Time out when connecting to service
@@ -105,7 +112,7 @@ When attempting to do a batch receive operation, that is, passing a `maxMessages
105112
The Service Bus service uses the AMQP protocol, which is stateful. Due to the nature of the protocol, if the link that connects the client and the service is detached after a message is received, but before the message is settled, the message isn't able to be settled on reconnecting the link. Links can be detached due to a short-term transient network failure, a network outage, or due to the service enforced 10-minute idle timeout. The reconnection of the link happens automatically as a part of any operation that requires the link, that is, settling or receiving messages. In this situation, you receive a `ServiceBusException` with `Reason` of `MessageLockLost` or `SessionLockLost` even if the lock expiration time isn't yet passed.
106113

107114
### How to browse scheduled or deferred messages
108-
Scheduled and deferred messages are included when peeking messages. They are identified by the [ServiceBusReceivedMessage.State](/dotnet/api/azure.messaging.servicebus.servicebusreceivedmessage.state) property. Once you have the [SequenceNumber](/dotnet/api/azure.messaging.servicebus.servicebusreceivedmessage.sequencenumber) of a deferred message, you can receive it with a lock via the [ReceiveDeferredMessagesAsync](/dotnet/api/azure.messaging.servicebus.servicebusreceiver.receivedeferredmessagesasync) method.
115+
Scheduled and deferred messages are included when peeking messages. They're identified by the [ServiceBusReceivedMessage.State](/dotnet/api/azure.messaging.servicebus.servicebusreceivedmessage.state) property. Once you have the [SequenceNumber](/dotnet/api/azure.messaging.servicebus.servicebusreceivedmessage.sequencenumber) of a deferred message, you can receive it with a lock via the [ReceiveDeferredMessagesAsync](/dotnet/api/azure.messaging.servicebus.servicebusreceiver.receivedeferredmessagesasync) method.
109116

110117
When working with topics, you can't peek scheduled messages on the subscription, as the messages remain in the topic until the scheduled enqueue time. As a workaround, you can construct a [ServiceBusReceiver][ServiceBusReceiver] passing in the topic name in order to peek such messages. No other operations with the receiver work when using a topic name.
111118

@@ -181,7 +188,7 @@ The following steps help you with troubleshooting connectivity/certificate/timeo
181188
</Detail>
182189
</Error>
183190
```
184-
- Run the following command to check if any port is blocked on the firewall. Ports used are 443 (HTTPS), 5671 and 5672 (AMQP) and 9354 (Net Messaging/SBMP). Depending on the library you use, other ports are also used. Here's the sample command that check whether the 5671 port is blocked.
191+
- Run the following command to check if any port is blocked on the firewall. Ports used are 443 (HTTPS), 5671 and 5672 (AMQP) and 9354 (Net Messaging/SBMP). Depending on the library you use, other ports are also used. Here's the sample command that checks whether the 5671 port is blocked.
185192

186193
```powershell
187194
tnc <yournamespacename>.servicebus.windows.net -port 5671

0 commit comments

Comments
 (0)