Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fabiocannas/0c0b7a509d957ec665ae1d2f0b0e426b to your computer and use it in GitHub Desktop.
Save fabiocannas/0c0b7a509d957ec665ae1d2f0b0e426b to your computer and use it in GitHub Desktop.
Debug Azure Function App event grid trigger using ngrok
Install ngrok via Chocolatey with the following command: choco install ngrok
ngrok config add-authtoken <auth_token>
ngrok http http://localhost:7071 --host-header="localhost:7071"
In Event Grid System Topic, create an event subscription of type web hook:
https://<random_identifier>.ngrok-free.app/runtime/webhooks/EventGrid?functionName=<function_name>
Set filter to event types
Enable subject filtering -> /blobServices/default/containers/eventhubcapture/blobs/
MSFT Learn how-to:
https://learn.microsoft.com/en-us/azure/communication-services/how-tos/event-grid/local-testing-event-grid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment