Skip to content

host.json Reference

Host-level runtime settings for .NET isolated worker function apps.

flowchart TD
    A[Configuration] --> B[Build]
    B --> C[Deploy]
    C --> D[Observe]

Topic/Command Groups

Baseline host.json

{
  "version": "2.0",
  "functionTimeout": "00:10:00",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "maxTelemetryItemsPerSecond": 20
      }
    }
  },
  "extensions": {
    "http": {
      "routePrefix": "api"
    },
    "queues": {
      "batchSize": 16,
      "maxDequeueCount": 5
    }
  }
}

Key settings

  • functionTimeout: execution limit per invocation
  • extensions.http.routePrefix: HTTP route prefix
  • extensions.queues.maxDequeueCount: poison handling threshold

See Also

Sources