How to view Azure Function files deployed

David Finley 31 Reputation points
2020-05-31T19:17:53.063+00:00

I've deployed a Function to Azure and now I want to see the files I've deployed. If I go to Kudu and view wwwroot, it only shows the host.json file. I can go into Bash and view all the folders, but I don't see where the function files are.

Thanks

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

Accepted answer
  1. Mark Allan 421 Reputation points MVP
    2020-06-01T08:40:04.22+00:00

    Assuming you're using the package deploy option in Visual Studio as it recommends, Azure Functions will actually run your code directly from an uploaded ZIP file (amongst other benefits, this improves speed and makes deployments atomic).

    You'll find the ZIP files in D:\home\data\SitePackages. They're timestamped so it should be easy enough to see which is the latest, but you can look in packagename.txt to see the one that's currently deployed. If you download that ZIP then you can check whether your DLL is in it.

    More details at https://learn.microsoft.com/azure/azure-functions/run-functions-from-deployment-package.

    1 person found this answer helpful.

5 additional answers

Sort by: Most helpful
  1. Tomasz Drzewiecki 0 Reputation points
    2023-09-28T08:45:49.9166667+00:00

    Every function creates a Storage account. With extra roles granted (Reader & Storage Blob Data Reader) you can get the latest deployed zipped version of your function in ‘scm-releases’ Blob container. I opened it in 7zip in Windows with success. I hope it helps.

    0 comments No comments