Download Azure Service Bus messages using Serverless360
Tags: azure, serverless
Published: 2021-08-03 11:17:54

---
canonical_url: https://www.serverless360.com/blog/download-messages-from-azure-service-bus
---

From our experience handling [Azure Service Bus messages] (https://www.serverless360.com/blog/deal-with-azure-service-bus-message-size), one frequent suggestion we get from the support person is to download messages from Azure Service Bus entities like Queues and Topic Subscriptions. By downloading the messages as a local copy, it becomes easy for them to debug the messages and use it at a later point in time. Basic knowledge of Azure Service Bus messaging entities is a pre-requisite for the better understanding of this feature.

## **Azure Service Bus Messages**

[Microsoft Azure Service Bus] (https://www.serverless360.com/azure-service-bus) is used for delivering information in a reliable and a much easier way. The messaging service ensures that the information is delivered even if the two parties are never both online at the same time, or if they aren’t available at the exact same time.

Messages are sent by the sender to the receiver through the Azure Service Bus. The message transferred through Azure Service Bus consists of the actual message body and the properties of that message. The message may be sent to or received from the Service Bus Queues or Topic Subscriptions.

## **Message Processing Challenges in Azure Portal solved in Serverless360**
Azure Portal does not facilitate viewing Azure Service Bus messages. But real-time business scenario would require processing these messages for various business scenarios. [Serverless360] (https://www.serverless360.com/) understands the requirement and comes up with the following message processing capabilities on [Azure Service Bus Queues and Topics] (https://www.serverless360.com/blog/azure-service-bus-queues-vs-topics)

* Send messages
* [Resubmit & Delete Messages] (https://www.serverless360.com/blog/resubmit-delete-dead-letter-messages-queues-topic-subscriptions)
* [Resubmit & Delete Dead-Letter messages] (https://www.serverless360.com/blog/resubmit-delete-messages-azure-service-bus)
* Repair and Resubmit messages

The latest addition to the above capabilities is the feature to **download messages.** This blog focuses on the message download capability.

Business scenarios require Azure Service Bus messages to be downloaded for further processing. On demand from customers for saving messages for various purposes, [Serverless360] (https://www.serverless360.com/signup) has now got the capability to download messages as single or in bulk.

The messages will be downloaded as a zip file with text files containing the JSON object of the message. Each message will be saved in a separate text file.

![] (https://www.serverless360.com/wp-content/uploads/2018/05/Download-message-1.png)

## **Downloaded Message Content**

The downloaded Message file holds the JSON content, that includes the following properties of the message:

* Message Body
* Sequence number
* Message Id
* Size
* Schedule enqueued time
* Enqueued time
* Time to live
* Content type
* System properties
* The custom properties

![] (https://www.serverless360.com/wp-content/uploads/2018/05/message-content.png)

<blockquote><em>Do you have a requirement to save your Azure Service Bus Messages? Do it with <a href="https://www.serverless360.com/" rel="noopener noreferrer" target="_blank">Serverless360</a> now!</em></blockquote>

## **File Format**
The name of the zip folder will be the name of the Queue or Topic Subscription to which the messages belong. The name of the text file will be the Message-Id of that message. The file will have all the required properties of the message along with its content, which can be utilized for further processing