Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Service Bus Queue Count

I have a service bus Q and from the Azure portal I can more or less see how many entries the service bus Q contains. How can I get this count using their management API? I have perused the docs but have been unsuccessful in finding an answer.

like image 487
Mike W Avatar asked Aug 16 '13 23:08

Mike W


1 Answers

The QueueDescription has a property MessageCount: MSDN, Announcement (skip down to Message Count Details) This will allow access via .NET code

The Management API Documentation also shows this exposed: MSDN This will allow access via the Rest API

The PowerShell Cmdlets do not yet expose this functionality.

like image 187
Dennis Burton Avatar answered Oct 10 '22 19:10

Dennis Burton