Location of Function App source code?

Domagoj Bazina 201 Reputation points
2022-11-12T10:38:21.077+00:00

Hello guys,
I have 2 questions regarding Azure Function Apps.

  1. Where is source code of Function Apps sub-functions stored? Is it stored on the Storage Account connected with the Function App, or the Function App implements its own storage for the sub-fucntion source code?
  2. Is there any way to upload .zip file of deployment sub-function to the Azure Function App besides REST API? I've managed to deploy sub-function (.zip file containing source code) to the Function App using REST API, but I wonder is there way to do that using SDK libraries?

Thanks in advance!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
0 comments No comments
{count} votes

Accepted answer
  1. MughundhanRaveendran-MSFT 12,506 Reputation points
    2022-11-14T07:13:00.32+00:00

    Hi @Domagoj Bazina

    (1) The source code of the sub-functions actually depends on the deployment method. If you have configured CI/CD pipeline either from Azure devops,Github etc, then the source repository would be in git/github repositories. Regardless of the deployment, you can find the host.json, function.json, and other binary/.dll files in the Kudu site of the function app. You can navigate to the Kudu site by selecting the advanced tools option in the Functions portal. You can find the contents in this path \home\site\wwwroot

    260006-image.png

    (2) Apart from the Rest API, you can deploy via powershell/CLI as well. Also, there is a drag-and-drop option in the kudu site where you can drag and drop the zip file using zip push deployment

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Vinodh247 34,661 Reputation points MVP Volunteer Moderator
    2022-11-12T11:25:56.907+00:00

    hi,

    Thanks for reaching out to Microsoft Q&A.

    Pls check the below links, I believe this might be useful for your scenario but with some modifications.

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference?tabs=blob#folder-structure
    https://learn.microsoft.com/en-us/azure/azure-functions/deployment-zip-push

    Please Upvote and Accept as answer if the reply was helpful, this will be helpful to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.