You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/includes/service-bus-create-topics-three-subscriptions-portal.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,12 @@
4
4
author: spelluru
5
5
ms.service: azure-service-bus
6
6
ms.topic: include
7
-
ms.date: 06/18/2025
7
+
ms.date: 02/13/2026
8
8
ms.author: spelluru
9
9
ms.custom: include file
10
10
---
11
11
12
-
## Create a topic using the Azure portal
12
+
## Create a topic by using the Azure portal
13
13
14
14
1. On the **Service Bus Namespace** page, expand **Entities** on the navigational menu to the left, and select **Topics**.
15
15
1. Select **+ Topic**.
@@ -31,8 +31,8 @@
31
31
1. On the **Create subscription** page, follow these steps:
32
32
33
33
1. Enter *S1* as the name of the subscription.
34
-
1.Then, select**Create** to create the subscription.
34
+
1.Select**Create** to create the subscription.
35
35
36
-
:::image type="content" source="./media/service-bus-create-topics-subscriptions-portal/create-subscription-page.png" alt-text="Screenshot of the Create subscription page.":::
36
+
:::image type="content" source="./media/service-bus-create-topics-subscriptions-portal/create-subscription-page.png" alt-text="Screenshot of the Create subscription page." lightbox="./media/service-bus-create-topics-subscriptions-portal/create-subscription-page.png":::
37
37
38
38
1. Repeat the previous step twice to create subscriptions named *S2* and *S3*.
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/service-bus-dotnet-get-started-with-queues.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ In this quickstart, you do the following steps:
26
26
If you're new to the service, see [Service Bus overview](service-bus-messaging-overview.md) before you do this quickstart.
27
27
28
28
-**Azure subscription**. To use Azure services, including Azure Service Bus, you need a subscription. If you don't have an existing Azure account, you can sign up for a [free trial](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn).
29
-
-**Visual Studio 2022**. The sample application makes use of new features that were introduced in C# 10. You can still use the Service Bus client library with previous C# language versions, but the syntax might vary. To use the latest syntax, we recommend that you install .NET 6.0, or higher and set the language version to `latest`. If you're using Visual Studio, versions before Visual Studio 2022 aren't compatible with the tools needed to build C# 10 projects.
29
+
-**Visual Studio 2022** or later. The sample application makes use of new features that were introduced in C# 10. You can still use the Service Bus client library with previous C# language versions, but the syntax might vary. To use the latest syntax, we recommend that you install .NET 6.0, or higher and set the language version to `latest`. If you're using Visual Studio, versions before Visual Studio 2022 aren't compatible with the tools needed to build C# 10 projects.
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/service-bus-dotnet-how-to-use-topics-subscriptions.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
---
2
-
title: Get started with Azure Service Bus topics (.NET)
3
-
description: This tutorial shows you how to send messages to Azure Service Bus topics and receive messages from topics' subscriptions using the .NET programming language.
2
+
title: Azure Service Bus Topics Quickstart With .NET
3
+
description: This tutorial shows you how to send messages to Azure Service Bus topics and receive messages from topics subscriptions using the .NET programming language.
4
+
#customer intent: As a .NET developer, I want to learn how to send messages to an Azure Service Bus topic so that I can implement messaging in my application.
# Customer intent: I want to learn how to send messages to an Azure Service Bus topic and receive messages from a subscription to the topic.
@@ -16,10 +17,10 @@ This quickstart shows how to send messages to a Service Bus topic and receive me
16
17
In this quickstart, you do the following steps:
17
18
18
19
1. Create a Service Bus namespace, using the Azure portal.
19
-
2. Create a Service Bus topic, using the Azure portal.
20
-
3. Create a Service Bus subscription to that topic, using the Azure portal.
21
-
4. Write a .NET console application to send a set of messages to the topic.
22
-
5. Write a .NET console application to receive those messages from the subscription.
20
+
1. Create a Service Bus topic, using the Azure portal.
21
+
1. Create a Service Bus subscription to that topic, using the Azure portal.
22
+
1. Write a .NET console application to send a set of messages to the topic.
23
+
1. Write a .NET console application to receive those messages from the subscription.
23
24
24
25
> [!NOTE]
25
26
> This quickstart provides step-by-step instructions to implement a simple scenario of sending a batch of messages to a Service Bus topic and receiving those messages from a subscription of the topic. For more samples on other and advanced scenarios, see [Service Bus .NET samples on GitHub](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples).
@@ -30,7 +31,7 @@ In this quickstart, you do the following steps:
30
31
If you're new to the service, see [Service Bus overview](service-bus-messaging-overview.md) before you do this quickstart.
31
32
32
33
-**Azure subscription**. To use Azure services, including Azure Service Bus, you need a subscription. If you don't have an existing Azure account, you can sign up for a [free trial](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn).
33
-
-**Visual Studio 2022**. The sample application makes use of new features that were introduced in C# 10. You can still use the Service Bus client library with previous C# language versions, but the syntax might vary. To use the latest syntax, we recommend that you install .NET 6.0, or higher and set the language version to `latest`. If you're using Visual Studio, versions before Visual Studio 2022 aren't compatible with the tools needed to build C# 10 projects.
34
+
-**Visual Studio 2022** or later. The sample application makes use of new features that were introduced in C# 10. You can still use the Service Bus client library with previous C# language versions, but the syntax might vary. To use the latest syntax, we recommend that you install .NET 6.0, or higher and set the language version to `latest`. If you're using Visual Studio, versions before Visual Studio 2022 aren't compatible with the tools needed to build C# 10 projects.
@@ -47,11 +48,11 @@ You can authorize access to the service bus namespace using the following steps:
47
48
1. Launch Visual Studio. If you see the **Get started** window, select the **Continue without code** link in the right pane.
48
49
1. Select the **Sign in** button in the top right of Visual Studio.
49
50
50
-
:::image type="content" source="./media/service-bus-dotnet-get-started-with-queues/azure-sign-button-visual-studio.png" alt-text="Screenshot showing a button to sign in to Azure using Visual Studio.":::
51
+
:::image type="content" source="./media/service-bus-dotnet-get-started-with-queues/azure-sign-button-visual-studio.png" alt-text="Screenshot of the button to sign in to Azure using Visual Studio.":::
51
52
52
53
1. Sign-in using the Microsoft Entra account you assigned a role to previously.
53
54
54
-
:::image type="content" source="..//storage/blobs/media/storage-quickstart-blobs-dotnet/sign-in-visual-studio-account-small.png" alt-text="Screenshot showing the account selection.":::
55
+
:::image type="content" source="..//storage/blobs/media/storage-quickstart-blobs-dotnet/sign-in-visual-studio-account-small.png" alt-text="Screenshot of the account selection dialog.":::
55
56
56
57
### [Connection String](#tab/connection-string)
57
58
Launch Visual Studio. If you see the **Get started** window, select the **Continue without code** link in the right pane.
@@ -74,7 +75,7 @@ This section shows you how to create a .NET console application to send messages
74
75
1. Select **Console App** from the results list.
75
76
1. Then, select **Next**.
76
77
77
-
:::image type="content" source="./media/service-bus-dotnet-get-started-with-queues/new-send-project.png" alt-text="Image showing the Create a new project dialog box with C# and Console selected":::
78
+
:::image type="content" source="./media/service-bus-dotnet-get-started-with-queues/new-send-project.png" alt-text="Screenshot of the Create a new project dialog box with C# and Console selected.":::
78
79
1. Enter **TopicSender** for the project name, **ServiceBusTopicQuickStart** for the solution name, and then select **Next**.
79
80
1. On the **Additional information** page, select **Create** to create the solution and the project.
80
81
@@ -252,15 +253,16 @@ This section shows you how to create a .NET console application to send messages
252
253
1. Navigate to your Service Bus namespace.
253
254
1. On the **Overview** page, in the bottom-middle pane, switch to the **Topics** tab, and select the Service Bus topic. In the following example, it's `mytopic`.
:::image type="content" source="./media/service-bus-dotnet-how-to-use-topics-subscriptions/select-topic.png" alt-text="Screenshot of selecting a topic.":::
256
257
1. On the **Service Bus Topic** page, In the **Messages** chart in the bottom **Metrics** section, you can see that there are three incoming messages for the topic. If you don't see the value, wait for a few minutes, and refresh the page to see the updated chart.
257
258
258
-
:::image type="content" source="./media/service-bus-dotnet-how-to-use-topics-subscriptions/sent-messages-essentials.png" alt-text="Messages sent to the topic" lightbox="./media/service-bus-dotnet-how-to-use-topics-subscriptions/sent-messages-essentials.png":::
259
-
4. Select the subscription in the bottom pane. In the following example, it's **S1**. On the **Service Bus Subscription** page, you see the **Active message count** as **3**. The subscription has received the three messages that you sent to the topic, but no receiver has picked them yet.
259
+
:::image type="content" source="./media/service-bus-dotnet-how-to-use-topics-subscriptions/sent-messages-essentials.png" alt-text="Screenshot of messages sent to the topic." lightbox="./media/service-bus-dotnet-how-to-use-topics-subscriptions/sent-messages-essentials.png":::
260
+
1. Select the subscription in the bottom pane. In the following example, it's **S1**. On the **Service Bus Subscription** page, you see the **Active message count** as **3**. The subscription has received the three messages that you sent to the topic, but no receiver has picked them yet.
260
261
261
-
:::image type="content" source="./media/service-bus-dotnet-how-to-use-topics-subscriptions/subscription-page.png" alt-text="Messages received at the subscription" lightbox="./media/service-bus-dotnet-how-to-use-topics-subscriptions/subscription-page.png":::
262
+
:::image type="content" source="./media/service-bus-dotnet-how-to-use-topics-subscriptions/subscription-page.png" alt-text="Screenshot of messages received at the subscription." lightbox="./media/service-bus-dotnet-how-to-use-topics-subscriptions/subscription-page.png":::
262
263
263
264
## Receive messages from a subscription
265
+
264
266
In this section, you create a .NET console application that receives messages from the subscription to the Service Bus topic.
265
267
266
268
> [!NOTE]
@@ -654,13 +656,11 @@ In this section, you add code to retrieve messages from the subscription.
654
656
1. Check the portal again.
655
657
- On the **Service Bus Topic** page, in the **Messages** chart, you see three incoming messages and three outgoing messages. If you don't see these numbers, wait for a few minutes, and refresh the page to see the updated chart.
656
658
657
-
:::image type="content" source="./media/service-bus-dotnet-how-to-use-topics-subscriptions/messages-size-final.png" alt-text="Messages sent and received" lightbox="./media/service-bus-dotnet-how-to-use-topics-subscriptions/messages-size-final.png":::
659
+
:::image type="content" source="./media/service-bus-dotnet-how-to-use-topics-subscriptions/messages-size-final.png" alt-text="Screenshot of messages sent and received." lightbox="./media/service-bus-dotnet-how-to-use-topics-subscriptions/messages-size-final.png":::
658
660
- On the **Service Bus Subscription** page, you see the **Active message count** as zero. It's because a receiver has received messages from this subscription and completed the messages.
659
661
660
-
:::image type="content" source="./media/service-bus-dotnet-how-to-use-topics-subscriptions/subscription-page-final.png" alt-text="Active message count at the subscription at the end" lightbox="./media/service-bus-dotnet-how-to-use-topics-subscriptions/subscription-page-final.png":::
662
+
:::image type="content" source="./media/service-bus-dotnet-how-to-use-topics-subscriptions/subscription-page-final.png" alt-text="Screenshot of the active message count at the subscription at the end." lightbox="./media/service-bus-dotnet-how-to-use-topics-subscriptions/subscription-page-final.png":::
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/service-bus-quickstart-topics-subscriptions-portal.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,29 @@
1
1
---
2
-
title: Use the Azure portal to create Service Bus topics and subscriptions
3
-
description: 'Quickstart: In this quickstart, you learn how to create a Service Bus topic and subscriptions to that topic by using the Azure portal.'
2
+
title: Create Service Bus Topics and Subscriptions in Azure
3
+
description: "Quickstart: In this quickstart, you learn how to create a Service Bus topic and subscriptions to that topic by using the Azure portal."
4
4
author: spelluru
5
5
ms.author: spelluru
6
-
ms.date: 12/11/2024
6
+
ms.date: 02/13/2026
7
7
ms.topic: quickstart
8
8
ms.custom: mode-ui
9
9
#Customer intent: In a retail scenario, how do I update inventory assortment and send a set of messages from the back office to the stores?
10
10
---
11
11
12
12
# Use the Azure portal to create a Service Bus topic and subscriptions to the topic
13
+
13
14
In this quickstart, you use the Azure portal to create a Service Bus topic and then create subscriptions to that topic.
14
15
15
16
## What are Service Bus topics and subscriptions?
16
-
Service Bus topics and subscriptions support a *publish/subscribe* messaging communication model. When you use topics and subscriptions, components of a distributed application don't communicate directly with each other; instead they exchange messages via a topic, which acts as an intermediary.
17
17
18
-
:::image type="content" source="./media/service-bus-java-how-to-use-topics-subscriptions/sb-topics-01.png" alt-text="Image showing how topics and subscriptions work.":::
18
+
Service Bus topics and subscriptions support a *publish/subscribe* communication model. With this pattern, components of a distributed application don't communicate directly with each other. Instead, they exchange messages through a topic, which acts as an intermediary.
19
+
20
+
:::image type="content" source="./media/service-bus-java-how-to-use-topics-subscriptions/service-bus-topics-subscriptions.png" alt-text="Diagram that shows how topics and subscriptions work." lightbox="./media/service-bus-java-how-to-use-topics-subscriptions/service-bus-topics-subscriptions.png":::
21
+
22
+
Service Bus queues deliver each message to a single consumer. In contrast, topics and subscriptions provide one-to-many communication using a publish/subscribe pattern. You can register multiple subscriptions to a single topic. When a message is sent to the topic, each subscription receives its own copy to process independently.
19
23
20
-
In contrast with Service Bus queues, in which each message is processed by a single consumer, topics and subscriptions provide a one-to-many form of communication, using a publish/subscribe pattern. It's possible to register multiple subscriptions to a topic. When a message is sent to a topic, it's then made available to each subscription to handle/process independently. A subscription to a topic resembles a virtual queue that receives copies of the messages that were sent to the topic. You can optionally register filter rules for a topic on subscriptions, which allows you to filter or restrict which messages to a topic are received by which topic subscriptions.
24
+
A subscription works like a virtual queue that receives copies of messages sent to the topic. You can also define filter rules on a subscription to control which messages it receives.
21
25
22
-
Service Bus topics and subscriptions enable you to scale to process a large number of messages across a large number of users and applications.
26
+
Service Bus topics and subscriptions enable you to scale to process a large number of messages across many users and applications.
0 commit comments