Host.json

When you create a function, you will see that a host.json file is automatically created. While initially empty, it is a global configuration file that defines how triggers and function will behave. Here, you can find an example file with most features, such as bindings' configuration and generic features, available:

{    "aggregator": {        "batchSize": 1000,        "flushTimeout": "00:00:30"    },    "applicationInsights": {        "sampling": {          "isEnabled": true,          "maxTelemetryItemsPerSecond" : 5        }    },    "eventHub": {      "maxBatchSize": 64,      "prefetchCount": 256,      "batchCheckpointFrequency": 1    },    "functions": [ "QueueProcessor", "GitHubWebHook" ],    "functionTimeout": "00:05:00",    "healthMonitor": {        "enabled": true,        "healthCheckInterval": "00:00:10", "healthCheckWindow": ...

Get Hands-On Azure for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.