Azure服务总线获取所有队列消息

时间:2016-12-07 10:29:10

标签: azure azureservicebus

我正在使用azure服务总线队列。但我无法从队列中获取所有消息使用"获取所有队列消息(peek Lock):Microsoft内置api。

有没有办法获取所有队列消息?

  

{       " $ connections":{           "价值":{               " servicebus_1":{                   " connectionId":" /subscriptions/c776fec3-6aec-4722-b099-b054c267b240/resourceGroups/Plugin-Resource/providers/Microsoft.Web/connections/servicebus-3",                   " connectionName":" servicebus-3",                   " id":" -b054c267b240 / providers / Microsoft.Web / locations / northcentralus / managedApis / servicebus"               }           }       },       "定义":{           " $ schema":" https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",           "行动":{               " Get_messages_from_a_queue_(peek-lock)":{                   "输入":{                       "主持人":{                           " api":{                               " runtimeUrl":" https://logic-apis-northcentralus.azure-apim.net/apim/servicebus"                           },                           "连接":{                               "名称":" @parameters(' $ connections')[' servicebus_1'] [' connectionId']"                           }                       },                       "方法":"得到",                       "路径":" / @ {encodeURIComponent(' email-listener')} / messages / batch / peek",                       "查询":{                           " maxMessageCount":20,                           " queueType":" Main"                       }                   },                   " runAfter":{},                   "输入":" ApiConnection"               }           },           " contentVersion":" 1.0.0.0",           "输出":{},           "参数":{               " $ connections":{                   " defaultValue":{},                   "输入":"对象"               }           },           "触发":{               "复发":{                   "复发":{                       "频率":" Day",                       "间隔":3                   },                   "输入":"重复"               }           }       }   }

谢谢

1 个答案:

答案 0 :(得分:0)

默认情况下,托管API会返回20条消息。 enter image description here

如果队列中有超过20条消息,则需要手动增加最大消息数。

enter image description here