Azure Service Bus Queue Count

假如想象 提交于 2019-12-04 03:28:19

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/18283583/azure-service-bus-queue-count

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!