Skip to content

Commit 8b53327

Browse files
authored
Merge pull request #273234 from spelluru/ehubgo0416
Updated Azure Functions screenshot
2 parents cf1b7c0 + 6b39aa0 commit 8b53327

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

articles/event-grid/custom-event-to-function.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'Quickstart: Send custom events to Azure Function - Event Grid'
33
description: 'Quickstart: Use Azure Event Grid and Azure CLI or portal to publish a topic, and subscribe to that event. An Azure Function is used for the endpoint.'
4-
ms.date: 01/04/2024
4+
ms.date: 04/24/2024
55
ms.topic: quickstart
66
ms.custom: mode-other, devx-track-azurecli
77
ms.devlang: azurecli
@@ -26,6 +26,7 @@ ms.devlang: azurecli
2626
1. Create a new **resource group** or select an existing resource group.
2727
1. Specify a **name** for the function app.
2828
1. Select **.NET** for **Runtime stack**.
29+
1. For **Version**, select **6 (LTS), in-process model**.
2930
1. Select the **region** closest to you.
3031
1. Select **Next: Storage** at the bottom of the page.
3132

@@ -39,18 +40,20 @@ ms.devlang: azurecli
3940
## Create a function
4041
Before subscribing to the custom topic, create a function to handle the events.
4142

42-
1. On the **Function App** page, select **Create in Azure portal** link in the right pane.
43+
1. On the **Function App** page, in the **Create in Azure portal** section, select **Create function** link in the right pane.
4344

44-
:::image type="content" source="./media/custom-event-to-function/create-function-link.png" alt-text="Screenshot showing the selection of Create function link.":::
45-
45+
:::image type="content" source="./media/custom-event-to-function/create-function-link.png" alt-text="Screenshot showing the selection of Create function link.":::
4646
1. On the **Create Function** page, follow these steps:
4747
1. In the **Select a template** section, in the filter or search box, type **Azure Event Grid trigger**.
48-
1. Select **Azure Event Grid Trigger** template in the template list.
49-
1. In the **Template details** section in the bottom pane, enter a name for the function. In this example, it's **HandleEventsFunc**.
50-
1. Select **Create**.
48+
1. Select **Azure Event Grid Trigger** template in the template list.
49+
1. Select **Next** at the bottom of the page.
5150

5251
:::image type="content" source="./media/custom-event-to-function/function-trigger.png" lightbox="./media/custom-event-to-function/function-trigger.png" alt-text="Screenshot showing select Event Grid trigger.":::
53-
4. On the **Function** page for the **HandleEventsFunc**, select **Code + Test** on the left navigational menu, replace the code with the following code, and then select **Save** on the command bar.
52+
1. On the **Template details** page, enter a name for the function. In this example, it's **HandleEventsFunc**.
53+
1. Select **Create**.
54+
55+
:::image type="content" source="./media/custom-event-to-function/create-function-template-details.png" lightbox="./media/custom-event-to-function/create-function-template-details.png" alt-text="Screenshot showing Template details page.":::
56+
1. On the **Function** page for the **HandleEventsFunc**, select **Code + Test** on the left navigational menu, replace the code with the following code, and then select **Save** on the command bar.
5457

5558
```csharp
5659
#r "Azure.Messaging.EventGrid"
@@ -66,7 +69,7 @@ Before subscribing to the custom topic, create a function to handle the events.
6669
```
6770

6871
:::image type="content" source="./media/custom-event-to-function/function-code-test-menu.png" alt-text="Image showing the selection Code + Test menu for an Azure function.":::
69-
6. Select **Monitor** on the left menu, and keep this window or tab of the browser open so that you can see the received event information.
72+
6. Select **Monitor** on the left menu, and switch to the **Logs** tab. Keep this window or tab of the browser open so that you can see the received event information.
7073

7174
:::image type="content" source="./media/custom-event-to-function/monitor-page.png" alt-text="Screenshot showing the Monitor view the Azure function.":::
7275

@@ -77,7 +80,7 @@ An Event Grid topic provides a user-defined endpoint that you post your events t
7780
1. On a new tab of the web browser window, sign in to [Azure portal](https://portal.azure.com/).
7881
2. In the search bar at the topic, search for **Event Grid Topics**, and select **Event Grid Topics**.
7982

80-
:::image type="content" source="./media/custom-event-to-function/select-topics.png" alt-text="Image showing the selection of Event Grid topics.":::
83+
:::image type="content" source="./media/custom-event-to-function/select-topics.png" alt-text="Image showing the selection of Event Grid topics." lightbox="./media/custom-event-to-function/select-topics.png" :::
8184
3. On the **Event Grid Topics** page, select **+ Create** on the command bar.
8285

8386
:::image type="content" source="./media/custom-event-to-function/add-topic-button.png" alt-text="Screenshot showing the Create button to create an Event Grid topic.":::
2.09 KB
Loading
-8.26 KB
Loading
18.3 KB
Loading
-25.7 KB
Loading

0 commit comments

Comments
 (0)