Microsoft Azure Queues Microsoft Azure

What is a Queue in Microsoft Azure?

The data structure used for storing data by First in-First out rule is defined as a Queue. The data item is inserted from the back of the queue and is retrieved from front. In the similar way Azure queues are used to store the messages in a queue. The message is sent by the sender and the client receives and processes the message.

The messages can be processed and deleted by the client. The message is stored for 7 days by the Windows Azure and after 7 days gets automatically deleted, if it is not deleted by the client. There can be one sender and one client or one sender and many clients or many sender and many clients.

There are two services offered by Windows Azure for message queues - Windows Azure queue and Service Bus queue.

Decoupling the components is one of the advantages of message queue services. It runs in an asynchronous environment where messages can be sent among the different components of an application. Thus, it provides an efficient solution for managing workflows and tasks. For example, a message to complete a task is sent from the frontend of the application and is received by a backend worker, who then completes the task and deletes the message.


The messages in the Microsoft Azure queue do not have any replication. The maximum size of the message can be 40 kb and the number of replications can be processed is 20,000.

How to managing Queues using PowerShell in Microsoft Azure?

Create a Queue

Step 1 − Right-click on Windows PowerShell in the taskbar. Choose ‘Run ISE as administrator’.

Step 2 − Run the following command to access the account. Please replace the highlighted part for the account.

Step 3 − Specify the storage account in which a queue is created.

Step 4 − Create a Queue.

Create Queue

How to retrieve a Queue in Microsoft Azure?

How to delete a Queue in Microsoft Azure?

Delete Queue

How to Insert a Message into a Queue in Microsoft Azure?

Step 1 − Login to the account.

Step 2 − Specify the storage account desired to use.

Step 3 − Retrieve the queue and then insert the message.

The ‘if’ condition in the script above checks if the queue specified exists or not.

How to dequeue Next Message from Queue in Microsoft Azure?

The next message from the queue can be dequeue by the following steps:

Step 1 − First connect to the account and specify the storage account, by running the commands as shown in the above steps.

Step 2 − Retrieve the queue.

Step 3 − Dequeue the next message.

Step 4 − Delete the dequeued message.

How to Managing Queues using Azure Storage Explorer?

The queue can be managed using the Azure Storage Explorer by the following steps:

Step 1 – From the dropdown at the top right, the storage account need to be selected. The previously added accounts if any, will be displayed and if nothing is displayed then accounts will be added and provide the credentials. Once signed in, the Azure Storage Explorer is logged in.

Step 2 – By selecting ‘Queues’ from the left panel and clicking ‘New’ a new queue will be added as shown below:

Queue Storage Explorer

Step 3 – Provide the name of the queue and the queue is created in the storage account.

Step 4 − By selecting the queue in the left panel the messages can be added or deleted.

Queue Storage Explorer1

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

Microsoft Azure Topics