ERROR running Azure Function locally

Chuck Roberts 45 Reputation points
2024-03-27T13:06:20.5833333+00:00

I'm doing a video tutorial on local Azure Functions to learn Azure Function Apps using Python. I'm running Azure Functions locally for the first time on a system with Windows 10 and Python 3.12. I'm brand new to local Azure functions and know very little about them.

I installed the Azure Functions CLI tools and several other packages were installed with a PowerShell script, but I don't know which packages were installed besides Python 3.12. I already have VS Code installed from a previous tutorial.

When I run the function using "func start" I get this error:

Azure Functions Core Tools
Core Tools Version:       4.0.5571 Commit hash: N/A +9a5b604f0b846df7de3eb37b423a9eba8baa1152 (64-bit)
Function Runtime Version: 4.30.0.22097

[2024-03-27T11:57:59.188Z] Failed to start Worker Channel. Process fileName: node
[2024-03-27T11:57:59.189Z] System.Diagnostics.Process: An error occurred trying to start process 'node' with working directory 'C:\Users\USERNAME\OneDrive - CONAME\Documents\PythonProjects\AzureFunctions\ch035'. The system cannot find the file specified.
[2024-03-27T11:57:59.191Z] Failed to start language worker process for runtime: node. workerId:2f0bf13e-f2ed-4a21-9822-a29198ec758c
[2024-03-27T11:57:59.194Z] Removing errored webhost language worker channel for runtime: node workerId:2f0bf13e-f2ed-4a21-9822-a29198ec758c
[2024-03-27T11:57:59.195Z] System.Diagnostics.Process: An error occurred trying to start process 'node' with working directory 'C:\Users\USERNAME\OneDrive - CONAME\Documents\PythonProjects\AzureFunctions\ch035'. The system cannot find the file specified.
[2024-03-27T11:57:59.801Z] Failed to start Worker Channel. Process fileName: node
[2024-03-27T11:57:59.802Z] System.Diagnostics.Process: An error occurred trying to start process 'node' with working directory 'C:\Users\USERNAME\OneDrive - CONAME\Documents\PythonProjects\AzureFunctions\ch035'. The system cannot find the file specified.
[2024-03-27T11:57:59.803Z] Failed to start language worker process for runtime: node. workerId:6fea94c3-663f-4cef-b81a-03064f2c4dce
[2024-03-27T11:57:59.804Z] Removing errored webhost language worker channel for runtime: node workerId:6fea94c3-663f-4cef-b81a-03064f2c4dce
[2024-03-27T11:57:59.805Z] System.Diagnostics.Process: An error occurred trying to start process 'node' with working directory 'C:\Users\USERNAME\OneDrive - CONAME\Documents\PythonProjects\AzureFunctions\ch035'. The system cannot find the file specified.
[2024-03-27T11:57:59.853Z] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
For detailed output, run func with --verbose flag.


  1. When I did the command "dotnet --info" I got an error "'dotnet' is not recognized as an internal or external command, operable program or batch file."
  2. And in VS Code the Azure Functions Extension Version is v1.10.5

VS Code Python extension is v2022.16.1

VS Code: v1.72.2

Node.js: v16.14.2

When I did the command "dotnet --info" I got an error "'dotnet' is not recognized as an internal or external command, operable program or batch file."

When I open and run the function in VS Code I get this error: "Failed to verify 'AzureWebJobsStorage' connection specified in 'local.settings.json'. Is the local emulator installed and running?"

This was question no help, I seem to have a different error. https://learn.microsoft.com/en-us/answers/questions/1425817/how-to-fix-inability-to-run-azure-function-locally?source=docs

Any ideas how to fix this?

Do I need to add something to my PATH variable?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,266 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ben Gimblett 3,410 Reputation points Microsoft Employee
    2024-03-28T10:17:38.8666667+00:00

    Hi -
    As far as I remember dotnet and node are required dependencies of functions core tools. Azurite is the emulator used locally to emulate Az storage (install steps mentioned in tutorial links below).

    Note: The default path for dotnet on windows is "c:\program files\dotnet"
    REF https://learn.microsoft.com/en-us/dotnet/core/install/windows?tabs=net80

    Developing python funcs in VS code is described here along with the prerequisites of setting up VS Code and the steps required https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-vs-code?tabs=node-v4%2Cpython-v2%2Cisolated-process&pivots=programming-language-python

    There is also a more simplified tutorial here https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-python

    For further learning please see https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-python?tabs=asgi%2Capplication-level&pivots=python-mode-decorators

    Finally, I dont know if it's contributory but I would try and avoid using onedrive for the source files (which is sharepoint backed and uses a sync agent) I'd use a local folder on my machine/ drive and use a free github account + repo (of course other source control exists, that's just my preference)

    0 comments No comments