hands-on lab

Creating a Topic and Subscription in Azure Service Bus

Difficulty: Beginner
Duration: Up to 40 minutes
Students: 2,425
Rating: 4.6/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

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

Prerequisites

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:

Updates

March 28th, 2023 - Updated instructions to include resource group flag

August 22nd, 2022 - Updated screenshots & instructions to match UI changes

 

 

Environment before

Environment after

Covered topics

Lab steps

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