Azure Function App deployment issue with multiple projects

Arulanand Anandhakumar 0 Reputation points
2024-05-02T15:11:36.5733333+00:00

I have an Azure Function App developed using .NET 8 containing Project A and Project B, each with some Azure functions. However, after deployment with CICD pipeline in the Azure portal, I cannot see functions from Project A in the Function App. I updated the functions.metadata file with both function lists, but to no avail. Any suggestions on how to fix this issue would be appreciated.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,352 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 26,156 Reputation points Microsoft Employee
    2024-05-03T03:11:50.3133333+00:00

    Hi @Arulanand Anandhakumar,

    If I'm understanding you correctly, you can't deploy multiple function app projects to the same function app service. The way to think of it is host.json represents the worker and, in the case of .NET, each method decorated with [Function] is seen as the function running under that worker.

    To continue using two separate Function app projects, you will need to deploy the projects to two separate function apps.