6

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.

MikeWo
  • 10,887
  • 1
  • 38
  • 44
Mike W
  • 559
  • 8
  • 20
  • See also http://stackoverflow.com/questions/16254951/determining-how-many-messages-are-on-the-azure-service-bus-queue – SteveC Aug 03 '15 at 16:40

1 Answers1

7

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.

Dennis Burton
  • 3,282
  • 3
  • 23
  • 30