host.json Reference¶
host.json controls runtime behavior across all functions in an app. This page highlights practical settings for Node.js v4 apps.
Topic/Command Groups¶
flowchart TD
A[host.json] --> B[Timeout]
A --> C[Logging]
A --> D[HTTP]
A --> E[Concurrency] Baseline Example¶
{
"version": "2.0",
"functionTimeout": "00:10:00",
"logging": {
"logLevel": {
"default": "Information",
"Function": "Information",
"Host.Results": "Error"
}
},
"extensions": {
"http": {
"routePrefix": "api"
}
}
}
Plan-aware timeout guidance¶
| Plan | Recommended timeout |
|---|---|
| Consumption | Up to 00:10:00 |
| Flex Consumption | -1 or bounded runtime window |
| Premium | -1 for long tasks |
| Dedicated | -1 with Always On |