Skip to content

Commit 8309f4d

Browse files
committed
Azure messaging - Freshness review
1 parent 17febb9 commit 8309f4d

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

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

Lines changed: 15 additions & 15 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

@@ -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
157 KB
Loading

0 commit comments

Comments
 (0)