79460109

Date: 2025-02-22 18:43:07
Score: 9 🚩
Natty:
Report link

i'm facing the same problem but none of the above solved my problem...:(

[2025-02-22T18:29:48.403Z] A host error has occurred during startup operation '2eff64a0-b359-424b-8cfc-2eff64a0'.
[2025-02-22T18:29:48.407Z] Microsoft.Azure.WebJobs.Script: WorkerConfig for runtime: python not found.
[2025-02-22T18:29:48.416Z] Failed to stop host instance '12795099-41af-4d0e-9582-2795099'.
Value cannot be null. (Parameter 'provider')[2025-02-22T18:29:48.430Z] Microsoft.Azure.WebJobs.Host: The host has not yet started.

while i have this config;

local.settings.json

    {
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "FUNCTIONS_WORKER_RUNTIME": "python",
    "AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
  }
}

host.json:

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

settings.json:

  {
    "azureFunctions.deploySubpath": ".",
    "azureFunctions.scmDoBuildDuringDeployment": true,
    "azureFunctions.pythonVenv": ".venv",
    "azureFunctions.projectLanguage": "Python",
    "azureFunctions.projectRuntime": "~4",
    "debug.internalConsoleOptions": "neverOpen",
    "azureFunctions.projectLanguageModel": 2
}

while

and pyenv.cfg

home = C:\uname\AppData\Local\Programs\Python\Python311
include-system-site-packages = false
version = 3.11.0
executable = C:\uname\AppData\Local\Programs\Python\Python311\python.exe
command = C:\uname\AppData\Local\Programs\Python\Python311\python.exe -m venv C:\uname\AppData\Local\Programs\Python\Python311\.venv

i've uninstall azure-functions-core-tools@4, reinstalled, restart the pc..etc nothing worked.

Ps: i've installed the azure function on zip and added it to my path..

can someone suggest me something to do? thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): m facing the same problem
  • RegEx Blacklisted phrase (2.5): can someone suggest me some
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): i'm facing the same problem
  • Ends in question mark (2):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Exilia