node.jsazureazure-functions

Azure Function App (Node.js): deployed functions don’t show up in Portal after remote build


The Fig1 is my file.

I have three HTTP‐triggered functions in my local project. When I run locally with: "func start"

I see all three endpoints (Fig 2). But after deploying by vscode azure cli

the Azure Portal’s Functions blade shows “No functions available” (Fig 3).

Here is my environment

Core Tools v4.0.6821

Runtime 4.1036.1.23224

What can cause Azure to fail to detect my HTTP triggers on deployment—even though they work locally—and how can I fix it so they appear in the Portal?

Fig 1.

fig1

Fig 2.

enter image description here

Fig 3.

enter image description here


Solution

  • We ran into similar problems with Azure functions. Our team tried multiple things. One of them was to move the functions folder out of the src/ directory and have it at the root of the project. Azure is weird. Also, there are multiple flags associated with remote build, look into that as well.