Search code examples
azurehttprequestazure-logic-apps

Peek lock multiple messages from service bus topic


How to read multiple messages from a service bus topic subscription under peek lock with http request not via service bus connector and using managed identity authentication?


Solution

  • Using REST API, it is not possible to get multiple messages in a single request. The REST API operation is Peek-Lock Message which only returns a single message.

    If you have to fetch multiple messages, either call this operation multiple times on a topic subscription or make use of AMQP which supports fetching multiple messages.