I have a servicebus queue that contains messages with different session ids. Is there a way to get the message count for a specific session id?
Asked
Active
Viewed 358 times
3
-
Any solution? is it even possible? – Aryan Firouzian Jul 26 '19 at 10:40
-
@AryanFirouzian No real solution at this moment. Aa a workaround all the messages from the session are retrieved and counted to get the total number. – xerves Aug 05 '19 at 11:14
-
Did you get the solution for this? I'm searching for a solution to the same problem, thanks – Juan May 06 '20 at 17:43
-
1@Juan No solution at the moment, still using the workaround. – xerves May 08 '20 at 12:50
1 Answers
0
You can retrieve the count of messages held in queues and subscriptions by using Azure Resource Manager and the Service Bus NamespaceManager APIs in the .NET Framework SDK as described here. You can also refer the suggestions provided by the community members here. See if this helps you.

YASWANTH-MSFT
- 34
- 2
-
2I believe this is the message count for the entire queue not for a specific session. – xerves Jan 17 '19 at 11:01