Azure的服务总线队列计数

Azure的服务总线队列计数

问题描述:

我有一个服务总线Q和来自Azure的门户,我可以或多或少地看到服务总线Q包含有多少行。我怎样才能使用他们的API管理得到这个数?我已经详细阅读该文档,但找到答案都没有成功。

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.

该QueueDescription有一个属性MessageCount: MSDN ,公告 (跳过了邮件计数详细信息)
这将允许通过.NET code

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

的管理API文档也表明了这暴露: MSDN
这将允许通过REST API访问

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

在PowerShell命令还没有公开此功能。

The PowerShell Cmdlets do not yet expose this functionality.