Creating a Topic and Subscription in Azure Service Bus

Lab Steps

Logging in to the Microsoft Azure Portal
Creating a Namespace, Topic, and Subscription in Azure Service Bus

Ready for the real environment experience?

Time Limit40m


Azure Service Bus is a messaging service from Microsoft. Service Bus is based upon the Publish/Subscribe messaging model, which is often referred to simply as Pub/Sub. Azure Service Bus supports Queues and Topics. 

Queues are used for pushing messages to a single consumer. Topics are used to distribute messages to multiple consumers in one-to-many message publishing scenarios. The benefits of using Pub/Sub messaging include:

  • No need for expensive polling operations
  • Applications and services can be decoupled
  • Fault tolerance
  • Scalability

In this Hands-On lab, you will use the Azure Portal to create a namespace in Azure Service Bus, and you will use the Azure command-line interface to create a Topic and a Subscription to your Topic.

Learning Objectives

Upon completion of this beginner-level lab, you will be able to:

  • Use the Azure Portal to create an Azure Service Bus Namespace
  • Use the Azure command-line interface to create a Topic and Subscription
  • Examine your Namespace, Topic, and Subscription in the Azure Portal

Intended Audience

  • Candidates for the Azure Developer Associate (AZ-204) certification
  • Cloud Engineers
  • Developers


Familiarity with the following will be beneficial but is not required:

  • Azure Service Bus
  • Azure command-line interface
  • The Bash shell

The following courses can be used to fulfill the prerequisites:

Environment before
Environment after
About the Author
Learning paths2

Andrew is a Labs Developer with previous experience in the Internet Service Provider, Audio Streaming, and CryptoCurrency industries. He has also been a DevOps Engineer and enjoys working with CI/CD and Kubernetes.

He holds multiple AWS certifications including Solutions Architect Associate and Professional.