- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Manage Messages with Azure Service Bus and Azure Queue Storage
In this lab, you get a chance to practice deploying two Azure messaging services — Azure Service Bus and Azure Storage Queues — using the custom template feature in the Azure portal. After deploying each service, you will use the portal-resident tool to act as both the producer of messages and the consumer of messages to get a taste of how these two services work. There is no coding required, and if you are reasonably comfortable navigating the Azure portal, you should be able to complete this lab with minimal assistance.

Lab Info
Table of Contents
-
Challenge
Deploy and Work with Messages in Azure Service Bus Queue
At the beginning of this objective, you should be logged in to the Azure portal, using the credentials provided with the lab. If you have trouble logging in, see the Housekeeping video for a walkthrough.
In the portal, use the Deploy a custom template feature to create a Service Bus namespace with a queue, using a Quickstart template. When prompted to select a template, use this string to filter and pare down the list:
servicebus-create-queue
. Select the template that will create both a Service Bus namespace and a queue, with no other resources.Once the Service Bus namespace and queue are deployed, navigate to the queue, and use Service Bus Explorer to:
- Act as the message source to send 10 copies of the same message, at 5-millisecond intervals.
- Act as a message consumer to look at a few of the messages, without removing them from the queue or changing their position in the queue.
- Receive and dequeue the first two (oldest) messages in the queue.
- Confirm that there are only 8 messages remaining in the queue.
Hint: Viewing a message, without removing it from the queue, is called a peek.
-
Challenge
Deploy and Work with Messages in Azure Storage Queue
At the beginning of this objective, you should be logged in to the Azure portal, using the credentials provided with the lab. If you have trouble logging in, see the Housekeeping video for a walkthrough.
In the portal, use the Deploy a custom template feature to create an Azure Storage account using a Quickstart template. When prompted to select a template, use this string to filter and pare down the list:
Storage-account-create
. Select the template that creates a storage account, with no other resources. Note that, unlike the first objective, where the template also created a queue, this one will create only the storage account.Once the storage account is deployed, navigate to it in the portal and create a new queue on the account. Then, use Storage Browser in the portal to:
- Act as the message source to send 2 or more messages.
- Act as a message consumer to look at one of the messages, without removing it from the queue or changing its position in the queue.
- Receive and dequeue the first (oldest) message in the queue.
- Confirm that the message has been de-queued.
Hint: Viewing a message, without removing it from the queue, is called a peek. Simply select the message in the Storage browser to peek.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.