You must have the Azure Functions Core Tools installed to debug your local functions

Amjad Mohammed 25 Reputation points
2023-10-13T16:22:34.16+00:00

I have created a function using visual studio code (Windows 10 - 64 bit). While debugging, I am getting the error as

"You must have the Azure Functions Core Tools installed to debug your local functions.". I have installed it using npm. But still I am getting the same error.

Also, I have tried installed the same from command palette "Install or Update Azure function core tools". I am getting the error as "unable to get local issuer certificate".

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
{count} vote

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2023-10-16T09:06:40.2566667+00:00

    @Amjad Mohammed Thanks for reaching out.

    It seems like you are facing an issue while debugging your Azure Functions project locally. The error message "You must have the Azure Functions Core Tools installed to debug your local functions. It indicates that the Azure Functions Core Tools are not installed or not properly configured on your machine

    To resolve this issue, you can try the following steps:

    1. Make sure that you have installed the Azure Functions Core Tools on your machine. You can install it using npm by running the following command in your terminal:
    npm install -g azure-functions-core-tools@3 --unsafe-perm true
    

    This command will install the latest version of the Azure Functions Core Tools (version 3) globally on your machine.

    1. After installing the Azure Functions Core Tools, make sure that you have added the installation path to your system's PATH environment variable. You can check this by running the following command in your terminal:
    func --version
    

    If this command returns the version number of the Azure Functions Core Tools, then it means that the installation is successful and the PATH environment variable is properly configured.

    1. If you are still facing the same issue, you can try running the following command in your terminal to update the Azure Functions Core Tools:
    npm install -g azure-functions-core-tools@3 --unsafe-perm true --force
    

    This command will force the installation of the latest version of the Azure Functions Core Tools and overwrite any existing installation.

    Regarding the error "unable to get local issuer certificate" while installing the Azure Functions Core Tools from the command palette, it seems like a certificate issue. You can try running the following command in your terminal to set the NODE_TLS_REJECT_UNAUTHORIZED environment variable to 0:

    set NODE_TLS_REJECT_UNAUTHORIZED=0
    

    This command will disable the SSL/TLS certificate verification and allow the installation to proceed. However, please note that this is not recommended for production environments and should only be used for testing purposes.

    I hope the above helps. Let me know if you need any assistance.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.