Skip to content

Commit 4bd7c6b

Browse files
authored
Merge pull request #118087 from swiru95/patch-1
Update local-testing-event-grid.md
2 parents 00aa5a0 + a9da43f commit 4bd7c6b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

articles/communication-services/how-tos/event-grid/local-testing-event-grid.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@ Testing Event Grid triggered Azure Functions locally can be complicated. You don
2020
- Install [Postman](https://www.postman.com/downloads/).
2121
- Have a running Azure Function that can be triggered by Event Grid. If you don't have one, you can follow the [quickstart](../../../azure-functions/functions-bindings-event-grid-trigger.md?tabs=in-process%2Cextensionv3&pivots=programming-language-javascript) to create one.
2222

23-
The Azure Function can be running either in Azure if you want to test it with some test events or if you want to test the entire flow locally (press `F5` in Visual Studio Code to run it locally). If you want to test the entire flow locally, you need to use [ngrok](https://ngrok.com/) to hook your locally running Azure Function. Configure ngrok by running the command:
23+
The Azure Function can be running either in Azure if you want to test it with some test events or if you want to test the entire flow locally (press `F5` in Visual Studio Code to run it locally). If you want to test the entire flow with an externally triggered webhook, you need to use [ngrok](https://ngrok.com/) to expose your locally running Azure Function
24+
to the public, allowing it to be triggered by internet sources (as an example from Azure Event WebHooks). Configure ngrok by running the command:
2425

2526
```bash
2627

2728
ngrok http 7071
2829

30+
```
31+
It is worth remembering that exposing development resources publicly might not be considered as secure. That is why you can also run the entire workflow locally without ngrok by invoking requests to:
32+
```
33+
http://localhost:7071/runtime/webhooks/EventGrid?functionName={functionname}
2934
```
3035

3136
## Configure Postman

0 commit comments

Comments
 (0)