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
Function App debug not working
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