locked
Azure Service Bus - Peek a scheduled message RRS feed

  • Question

  • Im am using Python to develop a integration that read messages from different Azure Service Bus topics and queues. But I have an issue when scheduling messages. I am not able to peek the scheduled messages. I want to peek them, and then either complete or leave them unread, until scheduled-time. I have tried to peek on both queue and topic, and I cannot find any documentation on how to peek a scheduled message on either of them, and then to subsequently either defer or dont do anything to the messages. Anyone managed to do this? Should be a very common use-case. Not found anything on doing it by standard REST-calls either.

    Monday, March 30, 2020 6:03 AM

All replies

  • Based on the docs, peeking will return all of the messages (active, deferred & scheduled). You should be able to differentiate based on the state property. Could you confirm?

    But do note that you can't complete, defer or deadlettered the peeked messages.

    Tuesday, March 31, 2020 1:06 PM