2

I am trying to run azure function in local in intellij. While I run in local, I get this error in intellij : enter image description here

when I click on configure, I see that the path is set correctly. enter image description here

Now, I have tried uninstalling the current azure tools, and installing through npm or through installer. But nothing worked.

I have also tried the version 3 instead of 4 for azure tools, that also didnt help.

Any idea how to resolve this? Nothing seems to be working.

1 Answer 1

2

I have tested in my system - IntelliJ IDE - Java Azure Functions Project, it is running successfully.

enter image description here

As I observed in your IDE Azure Sign In Tool

enter image description here

the functions core tools path is different compared to my IntelliJ IDE Configuration.

enter image description here

Replace the Functions core tools path with the path as I have shown below, in your IDE and run the function once.

C:\Users\<YourUserFolder>\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\func.exe

And even in the run configuration also, it should be same:

enter image description here

Sign up to request clarification or add additional context in comments.

3 Comments

you seem to have installed through npm and I have installed through installer. But anyways, even if I install it through npm, error is still the same.
Did you modify the path as I mentioned in the answer? If not, modify and check once.
this is what i informed you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.