How to run locally created node function in a function app on portal

Anuj Pachawadkar 65 Reputation points
2023-07-13T10:19:04.9433333+00:00

I have created a Function App using VS Code extension(Azure Functions). when I deployed the function and tried to run on portal, I get "We are setting up the environment to enable testing in the Portal. This will restart your Function App and may take a few minutes." notification above code pane as given in belo image; however this notification never goes away and I am unable to run the function on portal.

User's image

I am also trying to run function locally but unable see list of created function as below:

User's image

When I Click on "Start debugging to update this list..." and go to the link provided(http://localhost:7071/api/httpTrigger1), It gives me below error:

User's image

Please help me to resolve the issue. Thanks in advance!

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

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,276 Reputation points
    2023-07-13T19:54:43.47+00:00

    Anuj Pachawadkar Thanks for posting your question in Microsoft Q&A. This appears to be an issue described here and make sure you are using Node.js version 18.x.

    User's image

    If it doesn't resolve, share the code snippet, functions runtime version/node.js version, configuration etc.? That will help us understand the issue better. Or you can also file the issue in GitHub repo azure-functions-nodejs-library.

    I hope this helps with your question and let me know if you have any other questions.


    If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful