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
4. On the **Function** page for the **HandleEventsFunc**, select **Code + Test** on the left navigational menu. You can see the existing code for the function and update it on this page.
53
+
4. On the **Function** page for the **HandleEventsFunc**, select **Code + Test** on the left navigational menu.
54
54
55
55
:::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.":::
:::imagetype="content"source="./media/custom-event-to-function/function-updated-code.png"alt-text="Screenshot showing the Code + Test view of an Azure function with the updated code.":::
:::image type="content" source="./media/custom-event-to-function/event-grid-topic-home-page.png" alt-text="Image showing the home page for your Event Grid custom topic.":::
98
+
:::imagetype="content"source="./media/custom-event-to-function/event-grid-topic-home-page.png"lightbox="./media/custom-event-to-function/event-grid-topic-home-page.png"alt-text="Image showing the home page for your Event Grid custom topic.":::
81
99
82
100
## Subscribe to custom topic
83
101
@@ -115,10 +133,14 @@ The first example uses Azure CLI. It gets the URL and key for the custom topic,
1. Set the `topicname` and `resourcegroupname` variables that will be used in the commands.
117
135
136
+
Replace `TOPICNAME` with the name of your Event Grid topic.
137
+
118
138
```azurecli
119
139
topicname="TOPICNAME"
120
140
```
121
141
142
+
Replace `RESOURCEGROUPNAME` with the name of the Azure resource group that contains the Event Grid topic.
143
+
122
144
```azurecli
123
145
resourcegroupname="RESOURCEGROUPNAME"
124
146
```
@@ -196,7 +218,7 @@ The second example uses PowerShell to perform similar steps.
196
218
### Verify that function received the event
197
219
You've triggered the event, and Event Grid sent the message to the endpoint you configured when subscribing. Navigate to your Event Grid triggered function and open the logs. You should see a copy of the data payload of the event in the logs. If you don'tmakesureyouopenthelogswindowfirst, orhitreconnect, andthentrysendingatesteventagain.
198
220
199
-
:::image type="content" source="./media/custom-event-to-function/successful-function.png" alt-text="Image showing the Monitor view of the Azure function with a log.":::
221
+
:::imagetype="content"source="./media/custom-event-to-function/successful-function.png"lightbox="./media/custom-event-to-function/successful-function.png"alt-text="Image showing the Monitor view of the Azure function with a log.":::
200
222
201
223
## Clean up resources
202
224
Ifyouplantocontinueworkingwiththisevent, don't clean up the resources created in this article. Otherwise, delete the resources you created in this article.
0 commit comments