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-event-grid-prerequisites.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,18 @@ description: include file
4
4
author: spelluru
5
5
ms.service: azure-service-bus
6
6
ms.topic: include
7
-
ms.date: 12/08/2022
7
+
ms.date: 06/19/2025
8
8
ms.author: spelluru
9
9
ms.custom: "include file"
10
10
11
11
---
12
12
13
13
## Prerequisites
14
+
14
15
If you don't have an [Azure subscription](../../guides/developer/azure-developer-guide.md#understanding-accounts-subscriptions-and-billing), create a [free account](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio) before you begin.
15
16
16
17
## Create a Service Bus namespace
18
+
17
19
Follow instructions in this tutorial: [Quickstart: Use the Azure portal to create a Service Bus topic and subscriptions to the topic](../service-bus-quickstart-topics-subscriptions-portal.md) to do the following tasks:
18
20
19
21
- Create a **premium** Service Bus namespace.
@@ -22,17 +24,19 @@ Follow instructions in this tutorial: [Quickstart: Use the Azure portal to creat
22
24
- Create a subscription to the topic. You need only one subscription in this tutorial, so no need to create subscriptions S2 and S3.
23
25
24
26
## Send messages to the Service Bus topic
25
-
In this step, you use a sample application to send messages to the Service Bus topic you created in the previous step.
27
+
28
+
In this section, you use a sample application to send messages to the Service Bus topic you created in the previous section.
26
29
27
30
1. Clone the [GitHub azure-service-bus repository](https://github.com/Azure/azure-service-bus/) or download the zip file and extract files from it.
28
-
2. In Visual Studio, go to the *\samples\DotNet\Azure.Messaging.ServiceBus\ServiceBusEventGridIntegrationV2* folder, and then open the *SBEventGridIntegration.sln* file.
29
-
3. In the Solution Explorer window, expand the **MessageSender** project, and select **Program.cs**.
30
-
4. Replace `<SERVICE BUS NAMESPACE - CONNECTION STRING>` with the connection string to your Service Bus namespace and `<TOPIC NAME>` with the name of the topic.
31
+
1. In Visual Studio, go to the *\samples\DotNet\Azure.Messaging.ServiceBus\ServiceBusEventGridIntegrationV2* folder, and then open the *SBEventGridIntegration.sln* file.
32
+
1. In the **Solution Explorer** window, expand the **MessageSender** project, and select **Program.cs**.
33
+
1. Replace `<SERVICE BUS NAMESPACE - CONNECTION STRING>` with the connection string to your Service Bus namespace and `<TOPIC NAME>` with the name of the topic.
34
+
35
+
```csharp
36
+
conststringServiceBusConnectionString="<SERVICE BUS NAMESPACE - CONNECTION STRING>";
37
+
conststringTopicName="<TOPIC NAME>";
38
+
```
31
39
32
-
```csharp
33
-
conststringServiceBusConnectionString="<SERVICE BUS NAMESPACE - CONNECTION STRING>";
0 commit comments