Bug Report
Description
The EventHubs/target/logs_build/host.json file is missing the required "version": "2.0" property, which causes the Azure Functions v4 runtime to fail with:
Microsoft.Azure.WebJobs.Script: The host.json file is missing the required 'version' property.
Current logs_build/host.json
json { "eventHub": { "maxBatchSize": 400, "prefetchCount": 800, "batchCheckpointFrequency": 1 }, "functions": [ "EventHubs_Logs" ], "functionTimeout": "00:10:00" }
Issues
- Missing
"version": "2.0" — Required by Azure Functions v2+ runtime. Without it, the function app fails to start on ~4 (v4).
- Uses deprecated
eventHub key — Should be eventHubs (plural) for v2+ host.json schema. See Azure EventHub bindings configuration.
- Missing
extensionBundle — The v2+ runtime requires an extension bundle declaration for EventHub bindings.
- Missing
logging configuration — The metrics_build/host.json already has proper logging config, but logs_build does not.
Expected logs_build/host.json
json { "version": "2.0", "extensionBundle": { "id": "Microsoft.Azure.Functions.ExtensionBundle", "version": "[4.0.0, 5.0.0)" }, "eventHubs": { "maxEventBatchSize": 400, "maxWaitTime": "00:05:00", "batchCheckpointFrequency": 1, "prefetchCount": 800 }, "logging": { "applicationInsights": { "samplingSettings": { "isEnabled": false } }, "logLevel": { "default": "Warning", "Host.Aggregator": "Trace", "Host.Results": "Information", "Function": "Information" } }, "functions": [ "EventHubs_Logs" ], "functionTimeout": "00:10:00" }
This should match the structure already used in metrics_build/host.json (which is correct).
Environment
Note
The EventHubs log and metric integrations are marked as deprecated in the README. However, the logs_build/host.json should still be fixed for users currently running these functions, as it prevents the function app from starting entirely.
Bug Report
Description
The
EventHubs/target/logs_build/host.jsonfile is missing the required"version": "2.0"property, which causes the Azure Functions v4 runtime to fail with:Microsoft.Azure.WebJobs.Script: The host.json file is missing the required 'version' property.Current
logs_build/host.jsonjson { "eventHub": { "maxBatchSize": 400, "prefetchCount": 800, "batchCheckpointFrequency": 1 }, "functions": [ "EventHubs_Logs" ], "functionTimeout": "00:10:00" }Issues
"version": "2.0"— Required by Azure Functions v2+ runtime. Without it, the function app fails to start on~4(v4).eventHubkey — Should beeventHubs(plural) for v2+ host.json schema. See Azure EventHub bindings configuration.extensionBundle— The v2+ runtime requires an extension bundle declaration for EventHub bindings.loggingconfiguration — Themetrics_build/host.jsonalready has proper logging config, butlogs_builddoes not.Expected
logs_build/host.jsonjson { "version": "2.0", "extensionBundle": { "id": "Microsoft.Azure.Functions.ExtensionBundle", "version": "[4.0.0, 5.0.0)" }, "eventHubs": { "maxEventBatchSize": 400, "maxWaitTime": "00:05:00", "batchCheckpointFrequency": 1, "prefetchCount": 800 }, "logging": { "applicationInsights": { "samplingSettings": { "isEnabled": false } }, "logLevel": { "default": "Warning", "Host.Aggregator": "Trace", "Host.Results": "Information", "Function": "Information" } }, "functions": [ "EventHubs_Logs" ], "functionTimeout": "00:10:00" }This should match the structure already used in
metrics_build/host.json(which is correct).Environment
~4(v4)az functionapp deployment source config(external git)Note
The EventHubs log and metric integrations are marked as deprecated in the README. However, the
logs_build/host.jsonshould still be fixed for users currently running these functions, as it prevents the function app from starting entirely.