Skip to content

Commit 35235c3

Browse files
authored
Merge pull request #311778 from spelluru/freshness0212
Azure messaging - Freshness review
2 parents 0b5bf41 + d61a04b commit 35235c3

11 files changed

Lines changed: 51 additions & 47 deletions

File tree

152 KB
Loading
110 KB
Loading
142 KB
Loading
84.4 KB
Loading

articles/service-bus-messaging/includes/service-bus-create-topics-three-subscriptions-portal.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
author: spelluru
55
ms.service: azure-service-bus
66
ms.topic: include
7-
ms.date: 06/18/2025
7+
ms.date: 02/13/2026
88
ms.author: spelluru
99
ms.custom: include file
1010
---
1111

12-
## Create a topic using the Azure portal
12+
## Create a topic by using the Azure portal
1313

1414
1. On the **Service Bus Namespace** page, expand **Entities** on the navigational menu to the left, and select **Topics**.
1515
1. Select **+ Topic**.
@@ -31,8 +31,8 @@
3131
1. On the **Create subscription** page, follow these steps:
3232

3333
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.
3535

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":::
3737

3838
1. Repeat the previous step twice to create subscriptions named *S2* and *S3*.

articles/service-bus-messaging/media/service-bus-java-how-to-use-topics-subscriptions/sb-topics-01.png renamed to articles/service-bus-messaging/media/service-bus-java-how-to-use-topics-subscriptions/service-bus-topics-subscriptions.png

File renamed without changes.

articles/service-bus-messaging/service-bus-dotnet-get-started-with-queues.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
2-
title: Quickstart - Use Azure Service Bus queues from .NET app
2+
title: Azure Service Bus Queue Quickstart for .NET Apps
33
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.
45
ms.topic: quickstart
56
ms.tgt_pltfrm: dotnet
6-
ms.date: 01/16/2025
7+
ms.date: 02/12/2026
78
ms.devlang: csharp
89
ms.custom: mode-api, passwordless-dotnet, devx-track-dotnet
910
# Customer intent: I want to learn how to send messages to an Azure Service Bus queue and receive messages from it.
@@ -14,9 +15,9 @@ ms.custom: mode-api, passwordless-dotnet, devx-track-dotnet
1415
In this quickstart, you do the following steps:
1516

1617
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.
2021

2122
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).
2223

@@ -25,7 +26,7 @@ In this quickstart, you do the following steps:
2526
If you're new to the service, see [Service Bus overview](service-bus-messaging-overview.md) before you do this quickstart.
2627

2728
- **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.
2930

3031
[!INCLUDE [service-bus-create-namespace-portal](./includes/service-bus-create-namespace-portal.md)]
3132

@@ -45,11 +46,11 @@ You can authorize access to the service bus namespace using the following steps:
4546
1. Launch Visual Studio. If you see the **Get started** window, select the **Continue without code** link in the right pane.
4647
1. Select the **Sign in** button in the top right of Visual Studio.
4748

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.":::
4950

5051
1. Sign-in using the Microsoft Entra account you assigned a role to previously.
5152

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.":::
5354

5455
### [Connection String](#tab/connection-string)
5556
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
7273
1. Select **Console App** from the results list.
7374
1. Then, select **Next**.
7475

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.":::
7677
1. Enter **QueueSender** for the project name, **ServiceBusQueueQuickStart** for the solution name, and then select **Next**.
7778

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.":::
7980
1. On the **Additional information** page, select **Create** to create the solution and the project.
8081

8182
### 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
110111
111112
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.
112113
113-
114114
### [Passwordless](#tab/passwordless)
115115
116116
* 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
271271
1. Navigate to your Service Bus namespace.
272272
1. On the **Overview** page, select the queue in the bottom-middle pane.
273273
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":::
275275
276276
1. Notice the values in the **Settings** section.
277277
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":::
279279
280280
Notice the following values:
281281
- 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
303303
1. Select **Tools** > **NuGet Package Manager** > **Package Manager Console** from the menu.
304304
1. Select **QueueReceiver** for **Default project**.
305305
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.":::
307307
1. Run the following command to install the **Azure.Messaging.ServiceBus** NuGet package.
308308
309309
```powershell
@@ -324,7 +324,7 @@ In this section, you create a .NET console application that receives messages fr
324324
Install-Package Azure.Messaging.ServiceBus
325325
```
326326
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.":::
328328
329329
330330
---
@@ -681,7 +681,7 @@ In this section, you add code to retrieve messages from the queue.
681681
- The **Active** message count and **Current size** values are now **0**.
682682
- 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.
683683
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":::
685685
686686
## Additional information
687687

0 commit comments

Comments
 (0)