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
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ 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/17/2025
8
8
ms.author: spelluru
9
9
ms.custom: "include file"
10
10
@@ -25,11 +25,11 @@ Follow instructions in this tutorial: [Quickstart: Use the Azure portal to creat
25
25
26
26
## Send messages to the Service Bus topic
27
27
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.
29
29
30
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.
31
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**.
32
+
1. In the **Solution Explorer** window, expand the **MessageSender** project, and select **Program.cs**.
33
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.
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/service-bus-to-event-grid-integration-example.md
+27-26Lines changed: 27 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,22 @@
1
1
---
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.
4
4
author: spelluru
5
5
ms.topic: tutorial
6
-
ms.date: 10/10/2023
6
+
ms.date: 06/17/2025
7
7
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.
8
9
---
9
10
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
11
12
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.
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.
19
20
20
21
1. Select **+ Create a resource**, select **Integration**, and then select **Logic App**.
21
22
@@ -24,7 +25,7 @@ In this step, you create an Azure logic app that receives Service Bus events via
24
25
1. On the **Create Logic App** page, follow these steps:
25
26
26
27
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.
28
29
1. Enter a **name** for the logic app.
29
30
1. Select the **Region** for the logic app.
30
31
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
37
38
1. On the **Deployment complete** page, select **Go to resource** to navigate to the **Logic app** page.
38
39
1. On the **Logic Apps Designer** page, select **Blank Logic App** under **Templates**.
39
40
40
-
### Add a step receive messages from Service Bus via Event Grid
41
+
### Add a step receive messages from Service Bus using Event Grid
41
42
42
43
1. On the **Logic app** page, select **Logic app designer** on the left menu.
43
44
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
61
62
1. Select your Azure subscription.
62
63
1. For **Resource Type**, select **Microsoft.ServiceBus.Namespaces**.
63
64
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.
65
66
66
67
:::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.":::
67
68
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.
69
70
70
71
:::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.":::
71
72
@@ -83,20 +84,20 @@ In this step, you create an Azure logic app that receives Service Bus events via
83
84
84
85
1. Follow these steps:
85
86
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*.
87
88
1. Confirm that **Authentication Type** is set to **Access Key**.
88
89
1. For **Connection String**, copy and paste the connection string to the Service Bus namespace that you saved earlier.
89
90
1. Select **Create**.
90
91
91
92
:::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.":::
92
93
93
-
1. Select your **topic** and **subscription**.
94
+
1. Select your topic and subscription.
94
95
95
96
:::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.":::
96
97
97
98
### Add a step to process and complete received messages
98
99
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.
100
101
101
102
#### Add a foreach loop
102
103
@@ -115,7 +116,7 @@ In this step, you add steps to send the received message in an email and then co
115
116
116
117
#### Add a step inside the foreach loop to send an email with the message body
117
118
118
-
1.Within**For Each** loop, select **Add an action**.
119
+
1.In the**For Each** loop, select **Add an action**.
119
120
120
121
:::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.":::
121
122
@@ -146,27 +147,27 @@ In this step, you add steps to send the received message in an email and then co
146
147
147
148
#### Add another action in the foreach loop to complete the message
148
149
149
-
1. Within **For Each** loop, select **Add an action**.
150
+
1. In the **For Each** loop, select **Add an action**.
150
151
151
152
1. Select **Service Bus** in the **Recent** list.
152
153
1. Select **Complete the message in a topic subscription** from the list of actions.
153
154
154
155
:::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.":::
155
156
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.
158
159
1. For **Lock token of the message**, select **Lock Token** from the **Dynamic content**.
159
160
160
161
:::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.":::
161
162
162
163
1. Select **Save** on the toolbar on the Logic Apps Designer to save the logic app.
163
164
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.":::
165
166
166
167
## Test the app
167
168
168
169
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.
170
171
171
172
:::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":::
172
173
@@ -176,17 +177,17 @@ In this step, you add steps to send the received message in an email and then co
176
177
177
178
1. You should get an email for each message the logic app receives.
178
179
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":::
180
181
181
182
## Troubleshoot
182
183
183
184
If you don't see any invocations after waiting and refreshing for sometime, follow these steps:
184
185
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.
186
187
187
188
:::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":::
188
189
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.
190
191
191
192
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.
192
193
@@ -202,10 +203,10 @@ If you don't see any invocations after waiting and refreshing for sometime, foll
202
203
203
204
## Related content
204
205
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).
0 commit comments