Skip to content

Commit 260a375

Browse files
Freshness pass, in progress.
1 parent 5b9e4f7 commit 260a375

File tree

2 files changed

+30
-29
lines changed

2 files changed

+30
-29
lines changed

articles/service-bus-messaging/includes/service-bus-event-grid-prerequisites.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: include file
44
author: spelluru
55
ms.service: azure-service-bus
66
ms.topic: include
7-
ms.date: 12/08/2022
7+
ms.date: 06/17/2025
88
ms.author: spelluru
99
ms.custom: "include file"
1010

@@ -25,11 +25,11 @@ Follow instructions in this tutorial: [Quickstart: Use the Azure portal to creat
2525

2626
## Send messages to the Service Bus topic
2727

28-
In this step, you use a sample application to send messages to the Service Bus topic you created in the previous step.
28+
In this section, you use a sample application to send messages to the Service Bus topic you created in the previous section.
2929

3030
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.
3131
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**.
32+
1. In the **Solution Explorer** window, expand the **MessageSender** project, and select **Program.cs**.
3333
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.
3434

3535
```csharp

articles/service-bus-messaging/service-bus-to-event-grid-integration-example.md

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
---
2-
title: Handle Service Bus events via Event Grid using Azure Logic Apps
3-
description: This article provides steps for handling Service Bus events via Event Grid using Azure Logic Apps.
2+
title: Handle Service Bus Events Using Event Grid Using Azure Logic Apps
3+
description: This article provides steps for handling Service Bus events by using Event Grid using Azure Logic Apps.
44
author: spelluru
55
ms.topic: tutorial
6-
ms.date: 10/10/2023
6+
ms.date: 06/17/2025
77
ms.author: spelluru
8+
#customer intent: As a developer, I want to learn how to respond to Azure Service Bus events that are received over Azure Event Grid to support my Azure Logic Apps.
89
---
910

10-
# Tutorial: Respond to Azure Service Bus events received via Azure Event Grid by using Azure Logic Apps
11+
# Tutorial: Respond to Azure Service Bus events received using Azure Event Grid by using Azure Logic Apps
1112

12-
In this tutorial, you learn how to respond to Azure Service Bus events that are received via Azure Event Grid by using Azure Logic Apps.
13+
In this tutorial, you learn how to respond to Azure Service Bus events that are received using Azure Event Grid by using Azure Logic Apps.
1314

1415
[!INCLUDE [service-bus-event-grid-prerequisites](./includes/service-bus-event-grid-prerequisites.md)]
1516

1617
## Receive messages by using Logic Apps
1718

18-
In this step, you create an Azure logic app that receives Service Bus events via Azure Event Grid.
19+
In this section, create an Azure logic app that receives Service Bus events by using Azure Event Grid.
1920

2021
1. Select **+ Create a resource**, select **Integration**, and then select **Logic App**.
2122

@@ -24,7 +25,7 @@ In this step, you create an Azure logic app that receives Service Bus events via
2425
1. On the **Create Logic App** page, follow these steps:
2526

2627
1. Select your Azure **subscription**.
27-
1. Select **Use existing** for the **Resource group**, and select the resource group that you used for other resources (like Azure function, Service Bus namespace) that you created earlier.
28+
1. Select **Use existing** for the **Resource group**. Select the resource group that you used for other resources, like the Service Bus namespace, that you created earlier.
2829
1. Enter a **name** for the logic app.
2930
1. Select the **Region** for the logic app.
3031
1. For **Plan type**, select **Consumption**.
@@ -37,7 +38,7 @@ In this step, you create an Azure logic app that receives Service Bus events via
3738
1. On the **Deployment complete** page, select **Go to resource** to navigate to the **Logic app** page.
3839
1. On the **Logic Apps Designer** page, select **Blank Logic App** under **Templates**.
3940

40-
### Add a step receive messages from Service Bus via Event Grid
41+
### Add a step receive messages from Service Bus using Event Grid
4142

4243
1. On the **Logic app** page, select **Logic app designer** on the left menu.
4344
1. In the right pane, under **Templates**, select **Blank Logic App**.
@@ -61,11 +62,11 @@ In this step, you create an Azure logic app that receives Service Bus events via
6162
1. Select your Azure subscription.
6263
1. For **Resource Type**, select **Microsoft.ServiceBus.Namespaces**.
6364
1. For **Resource Name**, select your Service Bus namespace.
64-
1. Select **Add new parameter**, select **Suffix Filter**, and then move the focus outside dropdown list.
65+
1. Select **Add new parameter**, select **Suffix Filter**, and then move the focus out of the dropdown list.
6566

6667
:::image type="content" source="./media/service-bus-to-event-grid-integration-example/add-new-parameter-suffix-filter.png" alt-text="Screenshot that shows adding of a new parameter of type Suffix filter.":::
6768

68-
1. For **Suffix Filter**, enter the name of your Service Bus topic subscription.
69+
1. For **Suffix Filter**, enter the name of your Service Bus topic subscription.
6970

7071
:::image type="content" source="./media/service-bus-to-event-grid-integration-example/suffix-filter.png" alt-text="Screenshot that shows the Logic Apps Designer with connection configuration for the Service Bus namespace.":::
7172

@@ -83,20 +84,20 @@ In this step, you create an Azure logic app that receives Service Bus events via
8384

8485
1. Follow these steps:
8586

86-
1. Enter a **name for the connection**. For example: **Get messages from the topic subscription**.
87+
1. Enter a name for the connection. For example: *Get messages from the topic subscription*.
8788
1. Confirm that **Authentication Type** is set to **Access Key**.
8889
1. For **Connection String**, copy and paste the connection string to the Service Bus namespace that you saved earlier.
8990
1. Select **Create**.
9091

9192
:::image type="content" source="./media/service-bus-to-event-grid-integration-example/logic-app-shared-access-key.png" alt-text="Screenshot that shows the Logic Apps Designer with the Service Bus connection string specified.":::
9293

93-
1. Select your **topic** and **subscription**.
94+
1. Select your topic and subscription.
9495

9596
:::image type="content" source="./media/service-bus-to-event-grid-integration-example/specify-topic-subscription.png" alt-text="Screenshot that shows the Logic Apps Designer with the Service Bus topic and subscription specified.":::
9697

9798
### Add a step to process and complete received messages
9899

99-
In this step, you add steps to send the received message in an email and then complete the message. In a real-world scenario, you process a message in the logic app before completing the message.
100+
In this section, you add steps to send the received message in an email and then complete the message. In a real-world scenario, you process a message in the logic app before completing the message.
100101

101102
#### Add a foreach loop
102103

@@ -115,7 +116,7 @@ In this step, you add steps to send the received message in an email and then co
115116

116117
#### Add a step inside the foreach loop to send an email with the message body
117118

118-
1. Within **For Each** loop, select **Add an action**.
119+
1. In the **For Each** loop, select **Add an action**.
119120

120121
:::image type="content" source="./media/service-bus-to-event-grid-integration-example/select-add-action.png" alt-text="Screenshot that shows the selection of Add an action button in the For-each loop.":::
121122

@@ -146,27 +147,27 @@ In this step, you add steps to send the received message in an email and then co
146147
147148
#### Add another action in the foreach loop to complete the message
148149
149-
1. Within **For Each** loop, select **Add an action**.
150+
1. In the **For Each** loop, select **Add an action**.
150151
151152
1. Select **Service Bus** in the **Recent** list.
152153
1. Select **Complete the message in a topic subscription** from the list of actions.
153154
154155
:::image type="content" source="./media/service-bus-to-event-grid-integration-example/select-complete-message.png" alt-text="Screenshot that shows the selection of Complete a message in a topic subscription.":::
155156
156-
1. Select your Service Bus **topic**.
157-
1. Select a **subscription** to the topic.
157+
1. Select your Service Bus topic.
158+
1. Select a subscription to the topic.
158159
1. For **Lock token of the message**, select **Lock Token** from the **Dynamic content**.
159160
160161
:::image type="content" source="./media/service-bus-to-event-grid-integration-example/logic-app-complete-message.png" alt-text="Screenshot that shows the lock token field.":::
161162
162163
1. Select **Save** on the toolbar on the Logic Apps Designer to save the logic app.
163164
164-
:::image type="content" source="./media/service-bus-to-event-grid-integration-example/save-logic-app.png" alt-text="Screenshot that shows the Save button in the Logic app designed.":::
165+
:::image type="content" source="./media/service-bus-to-event-grid-integration-example/save-logic-app.png" alt-text="Screenshot that shows the Save button in the Logic app designed.":::
165166
166167
## Test the app
167168
168169
1. If you haven't already sent test messages to the topic, follow instructions in the [Send messages to the Service Bus topic](#send-messages-to-the-service-bus-topic) section to send messages to the topic.
169-
1. Switch to the **Overview** page of your logic app and then switch to the **Runs history** tab in the bottom pane. You see the logic app runs messages that were sent to the topic. It could take a few minutes before you see the logic app runs. Select **Refresh** on the toolbar to refresh the page.
170+
1. Switch to the **Overview** page of your logic app. Then switch to the **Runs history** tab in the bottom pane. You see the logic app runs messages that were sent to the topic. It could take a few minutes before you see the logic app runs. Select **Refresh** on the toolbar to refresh the page.
170171
171172
:::image type="content" source="./media/service-bus-to-event-grid-integration-example/logic-app-runs.png" alt-text="Screenshot that shows the Logic app run history." lightbox="./media/service-bus-to-event-grid-integration-example/logic-app-runs.png":::
172173
@@ -176,17 +177,17 @@ In this step, you add steps to send the received message in an email and then co
176177
177178
1. You should get an email for each message the logic app receives.
178179
179-
:::image type="content" source="./media/service-bus-to-event-grid-integration-example/received-messages.png" alt-text="Screenshot of Outlook with the messages received from the topics' subscription." lightbox="./media/service-bus-to-event-grid-integration-example/received-messages.png":::
180+
:::image type="content" source="./media/service-bus-to-event-grid-integration-example/received-messages.png" alt-text="Screenshot of Outlook with the messages received from the topics subscription." lightbox="./media/service-bus-to-event-grid-integration-example/received-messages.png":::
180181
181182
## Troubleshoot
182183
183184
If you don't see any invocations after waiting and refreshing for sometime, follow these steps:
184185
185-
1. Confirm that the messages reached the Service Bus topic. See the **incoming messages** counter on the **Service Bus Topic** page. In this case, I ran the **MessageSender** application once, so I see 5 messages.
186+
1. Confirm that the messages reached the Service Bus topic. See the **incoming messages** counter on the **Service Bus Topic** page. In this case, the **MessageSender** application runs once, so there are 5 messages.
186187
187188
:::image type="content" source="./media/service-bus-to-event-grid-integration-example/topic-incoming-messages.png" alt-text="Screenshot that shows the Service Bus Topic page with incoming message count selected." lightbox="./media/service-bus-to-event-grid-integration-example/topic-incoming-messages.png":::
188189
189-
1. Confirm that there are **no active messages** at the Service Bus subscription.
190+
1. Confirm that there are no active messages at the Service Bus subscription.
190191
191192
If you don't see any events on this page, verify that the **Service Bus Subscription** page doesn't show any **Active message count**. If the number for this counter is greater than zero, the messages at the subscription aren't forwarded to the handler function (event subscription handler) for some reason. Verify that you set up the event subscription properly.
192193
@@ -202,10 +203,10 @@ If you don't see any invocations after waiting and refreshing for sometime, foll
202203
203204
## Related content
204205
205-
* Learn more about [Azure Event Grid](../event-grid/index.yml).
206-
* Learn more about [Azure Functions](../azure-functions/index.yml).
207-
* Learn more about the [Logic Apps feature of Azure App Service](../logic-apps/index.yml).
208-
* Learn more about [Azure Service Bus](../service-bus-messaging/service-bus-messaging-overview.md).
206+
- Learn more about [Azure Event Grid](../event-grid/index.yml).
207+
- Learn more about [Azure Functions](../azure-functions/index.yml).
208+
- Learn more about the [Logic Apps feature of Azure App Service](../logic-apps/index.yml).
209+
- Learn more about [Azure Service Bus](../service-bus-messaging/service-bus-messaging-overview.md).
209210
210211
211212
[2]: ./media/service-bus-to-event-grid-integration-example/sbtoeventgrid2.png

0 commit comments

Comments
 (0)