Azure Function App

Saani MD 1 Reputation point
2021-10-19T10:34:48.903+00:00

Hi I have created a function app using visual studio community 2019 then I have published it on Microsoft Azure now the issue is I don't have that file in my local is there any way to get that file from Azure portal I have tried Kudu also but I am not able to get the .cs or the C# file were we write our logics ,can any one help me on this how can I get the code.

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

1 answer

Sort by: Most helpful
  1. MughundhanRaveendran-MSFT 12,411 Reputation points
    2021-10-19T11:48:44.847+00:00

    @Saani MD ,

    Thanks for reaching out to us.

    Please note that, during the deployment, only .dll , .pdb , .csproj and json files are deployed to the Function app. Basically whatever files are present in your "bin" file directory are pushed to the Azure Functions runtime. You can access these files either from Kudu site or from the portal via Download app content option. Since the .cs files doesnt get deployed, you wont be able to get it from the Portal

    The .csproj file wont be available in the Kudu site. You can get it from the "download content" option present in Portal.

    Go to your function app and click on "Download app content"
    Choose "content and visual studio project"
    A zip file with all the contents gets downloaded.

    141737-image.png

    Since this is a .net based function, you can use the .net reflector to step into and debug any third-party code / assemblies, right inside Visual Studio, even if you don't have their source code.

    Feel free to reach out to me if you have any further queries.

    I hope this helps!

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.