This scaffold expects query-result notifications through a Connector Namespace webhook. It does not include a Kusto trigger configuration, and end-to-end Kusto delivery has not been validated.
| Function | Binding |
|---|---|
OnKustoQueryResult |
str (expects JSON with rows under body.value) |
Caution
The handler logs every query-result row in full, which may include sensitive data. Use test data and restrict access to logs.
- Azure Developer CLI.
- A compatible Connector Namespace webhook source, configured separately (webhook setup guide).
- For local runs: Functions Core Tools and Azurite.
- Python SDK:
azure-functions>=2.4.0on Python 3.13+; see Python 3.12 and older supported versions.
azd auth login
azd env new kusto
azd upazd up deploys the Function App but does not configure an event source. Rerun it for changes or retries.
For a compatible source, set the trigger config's notificationDetails:
callbackUrl:https://<function-app-host>/runtime/webhooks/connector?functionName=OnKustoQueryResultauthentication:type: "QueryString",name: "code",value: the host'sconnector_extensionsystem key (not a function key). Keep it private.
-
Start Azurite.
-
Run:
python -m venv .venv . .venv/bin/activate # Windows: .venv\Scripts\Activate.ps1 python -m pip install -r requirements.txt func start --enableAuth
To receive events locally, expose the host through an HTTPS tunnel and point a trigger config's callback at it with the local connector_extension system key. Keep --enableAuth; without it Core Tools skips key checks.
Send a test notification with rows under body.value through your configured source. Check the function logs for OnKustoQueryResult trigger received. and the batch row count.
azd down --purgeRemove only trigger configs you created for this sample. Never commit callback keys.