Function App debug not working

Sai Manoj Kumar Nandam 0 Reputation points
2024-12-12T20:26:14.3366667+00:00

func host start shows below error

host.json


{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "",
    "FUNCTIONS_WORKER_RUNTIME": "python"
  }
}

local.settings.json


{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      }
    }
  },
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[4.*, 5.0.0)"
  }
}

Found Python version 3.11.0 (python).

Azure Functions Core Tools

Core Tools Version: 4.0.6518 Commit hash: N/A +74ed9095fdd6c5326276aae6b8a7d41ccbdeb6aa (32-bit)

Function Runtime Version: 4.35.4.23179

[2024-12-12T20:17:55.705Z] A host error has occurred during startup operation 'f5fd9763-f39d-4ca0-9e1c-e9876b5ab7ab'.

[2024-12-12T20:17:55.711Z] Microsoft.Azure.WebJobs.Script: WorkerConfig for runtime: python not found.

[2024-12-12T20:17:55.723Z] Failed to stop host instance 'e27a7f17-b671-485c-921e-ae99e409fc36'.

[2024-12-12T20:17:55.725Z] Microsoft.Azure.WebJobs.Host: The host has not yet started.

Value cannot be null. (Parameter 'provider')

[2024-12-12T20:17:55.737Z] Host startup operation has been canceled

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jamie Laing 0 Reputation points
    2024-12-12T20:50:12.0266667+00:00

    It appears that you need to install python because "python not found". Please try "npm install -g azure-functions-core-tools@4" as described here: https://stackoverflow.com/questions/78953730/running-python-azure-function-locally-microsoft-azure-webjobs-script-workercon

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.