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.
- 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."
- 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?