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
+16-16Lines changed: 16 additions & 16 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: Quickstart - Use Azure Service Bus queues from .NET app
2
+
title: Azure Service Bus Queue Quickstart for .NET Apps
3
3
description: This quickstart shows you how to send messages to and receive messages from Azure Service Bus queues 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 queue so that I can implement message-based communication in my application.
1. Create a Service Bus namespace, using the Azure portal.
17
-
2. Create a Service Bus queue, using the Azure portal.
18
-
3. Write a .NET console application to send a set of messages to the queue.
19
-
4. Write a .NET console application to receive those messages from the queue.
18
+
1. Create a Service Bus queue, using the Azure portal.
19
+
1. Write a .NET console application to send a set of messages to the queue.
20
+
1. Write a .NET console application to receive those messages from the queue.
20
21
21
22
This quickstart provides step-by-step instructions to implement a simple scenario of sending a batch of messages to a Service Bus queue and then receiving them. For an overview of the .NET client library, see [Azure Service Bus client library for .NET](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/README.md). For more samples, see [Service Bus .NET samples on GitHub](https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/servicebus/Azure.Messaging.ServiceBus/samples).
22
23
@@ -25,7 +26,7 @@ In this quickstart, you do the following steps:
25
26
If you're new to the service, see [Service Bus overview](service-bus-messaging-overview.md) before you do this quickstart.
26
27
27
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).
28
-
-**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.
@@ -45,11 +46,11 @@ You can authorize access to the service bus namespace using the following steps:
45
46
1. Launch Visual Studio. If you see the **Get started** window, select the **Continue without code** link in the right pane.
46
47
1. Select the **Sign in** button in the top right of Visual Studio.
47
48
48
-
:::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.":::
49
+
:::image type="content" source="./media/service-bus-dotnet-get-started-with-queues/azure-sign-button-visual-studio.png" alt-text="Screenshot of the Sign in button in Visual Studio.":::
49
50
50
51
1. Sign-in using the Microsoft Entra account you assigned a role to previously.
51
52
52
-
:::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.":::
53
+
:::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.":::
53
54
54
55
### [Connection String](#tab/connection-string)
55
56
Launch Visual Studio. If you see the **Get started** window, select the **Continue without code** link in the right pane.
@@ -72,10 +73,10 @@ This section shows you how to create a .NET console application to send messages
72
73
1. Select **Console App** from the results list.
73
74
1. Then, select **Next**.
74
75
75
-
:::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":::
76
+
:::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.":::
76
77
1. Enter **QueueSender** for the project name, **ServiceBusQueueQuickStart** for the solution name, and then select **Next**.
77
78
78
-
:::image type="content" source="./media/service-bus-dotnet-get-started-with-queues/project-solution-names.png" alt-text="Image showing the solution and project names in the Configure your new project dialog box":::
79
+
:::image type="content" source="./media/service-bus-dotnet-get-started-with-queues/project-solution-names.png" alt-text="Screenshot of the solution and project names in the Configure your new project dialog box.":::
79
80
1. On the **Additional information** page, select **Create** to create the solution and the project.
80
81
81
82
### Add the NuGet packages to the project
@@ -110,7 +111,6 @@ This section shows you how to create a .NET console application to send messages
110
111
111
112
1. Replace the contents of `Program.cs` with the following code. The important steps are outlined in the following section, with additional information in the code comments.
112
113
113
-
114
114
### [Passwordless](#tab/passwordless)
115
115
116
116
* Creates a [ServiceBusClient](/dotnet/api/azure.messaging.servicebus.servicebusclient) object using the `DefaultAzureCredential` object. `DefaultAzureCredential` automatically discovers and uses the credentials of your Visual Studio sign-in to authenticate to Azure Service Bus.
@@ -271,11 +271,11 @@ This section shows you how to create a .NET console application to send messages
271
271
1. Navigate to your Service Bus namespace.
272
272
1. On the **Overview** page, select the queue in the bottom-middle pane.
273
273
274
-
:::image type="content" source="./media/service-bus-dotnet-get-started-with-queues/select-queue.png" alt-text="Image showing the Service Bus Namespace page in the Azure portal with the queue selected." lightbox="./media/service-bus-dotnet-get-started-with-queues/select-queue.png":::
274
+
:::image type="content" source="./media/service-bus-dotnet-get-started-with-queues/select-queue.png" alt-text="Screenshot of the Service Bus Namespace page in the Azure portal with the queue selected." lightbox="./media/service-bus-dotnet-get-started-with-queues/select-queue.png":::
275
275
276
276
1. Notice the values in the **Settings** section.
277
277
278
-
:::image type="content" source="./media/service-bus-dotnet-get-started-with-queues/sent-messages-essentials.png" alt-text="Image showing the number of messages received and the size of the queue." lightbox="./media/service-bus-dotnet-get-started-with-queues/sent-messages-essentials.png":::
278
+
:::image type="content" source="./media/service-bus-dotnet-get-started-with-queues/sent-messages-essentials.png" alt-text="Screenshot of the number of messages received and the size of the queue." lightbox="./media/service-bus-dotnet-get-started-with-queues/sent-messages-essentials.png":::
279
279
280
280
Notice the following values:
281
281
- The **Active** message count value for the queue is now **3**. Each time you run this sender app without retrieving the messages, this value increases by 3.
@@ -303,7 +303,7 @@ In this section, you create a .NET console application that receives messages fr
303
303
1. Select **Tools** > **NuGet Package Manager** > **Package Manager Console** from the menu.
304
304
1. Select **QueueReceiver** for **Default project**.
305
305
306
-
:::image type="content" source="media/service-bus-dotnet-get-started-with-queues/package-manager-console.png" alt-text="Screenshot showing QueueReceiver project selected in the Package Manager Console.":::
306
+
:::image type="content" source="media/service-bus-dotnet-get-started-with-queues/package-manager-console.png" alt-text="Screenshot of QueueReceiver project selected in the Package Manager Console.":::
307
307
1. Run the following command to install the **Azure.Messaging.ServiceBus** NuGet package.
308
308
309
309
```powershell
@@ -324,7 +324,7 @@ In this section, you create a .NET console application that receives messages fr
324
324
Install-Package Azure.Messaging.ServiceBus
325
325
```
326
326
327
-
:::image type="content" source="media/service-bus-dotnet-get-started-with-queues/package-manager-console.png" alt-text="Screenshot showing QueueReceiver project selected in the Package Manager Console.":::
327
+
:::image type="content" source="media/service-bus-dotnet-get-started-with-queues/package-manager-console.png" alt-text="Screenshot of QueueReceiver project selected in the Package Manager Console.":::
328
328
329
329
330
330
---
@@ -681,7 +681,7 @@ In this section, you add code to retrieve messages from the queue.
681
681
- The **Active** message count and **Current size** values are now **0**.
682
682
- In the **Messages** chart in the bottom **Metrics** section, you can see that there are three incoming messages and three outgoing messages for the queue.
683
683
684
-
:::image type="content" source="./media/service-bus-dotnet-get-started-with-queues/queue-messages-size-final.png" alt-text="Screenshot showing active messages and size after receive." lightbox="./media/service-bus-dotnet-get-started-with-queues/queue-messages-size-final.png":::
684
+
:::image type="content" source="./media/service-bus-dotnet-get-started-with-queues/queue-messages-size-final.png" alt-text="Screenshot of active messages and size after receive." lightbox="./media/service-bus-dotnet-get-started-with-queues/queue-messages-size-final.png":::
0 commit comments