getting error "Failed to get version of function(null)" in Intellij while running azure function

1k Views Asked by At

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

There are 1 best solutions below

4
On

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