dotnetavalanche
dotnetavalanche

Reputation: 890

How to organize multiple Http Functions under same Function App

I am trying to host multiple HttpTrigger functions under one FunctionApp. So under Functions I can have multiple HttpTrigger functions exist.

I am using FTP to connect to my server. Below is files take are generated when I use publish option in VS 2017

and below is list of files that should be pushed on to the server to run this HttpTrigger.

My Question is how should I organize my multiple HttpTrigger related files under wwwroot folder? Like should I create 2 folders under wwwroot for each trigger? I tried that but azure portal could NOT found my trigger.

Upvotes: 2

Views: 1273

Answers (1)

kamil-mrzyglod
kamil-mrzyglod

Reputation: 5008

Each Function App(doesn't matter whether it contains multiple HttpTriggers or any other kind of triggers), has to be organized in the following fashion:

- bin(containing DLLs or any other kind of executables)
- FunctionA(containing its function.json)
- FunctionB(...)
- FunctionC(...)
- ...
- host.json

With such a setup, you should be able to use multiple functions under the same app.

Upvotes: 2

Related Questions