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,203 questions
0 comments No comments
{count} votes

Accepted answer
  1. Mark Allan 416 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. Sean Killeen 351 Reputation points MVP
    2020-05-31T19:28:31.307+00:00

    I thought Kudu had a way to do this, but you should be able to see the code of these files within the Azure portal.

    • Within your function app in the portal, click "Functions":

    8896-2020-05-31-15-25-50-functions.png

    • Click on the function you want to check
    • In the Development menu on the left-hand side, click "Code + Test".

    A window of code should open on the right-hand side I think and you should be able to view the function's contents, even if you can't edit it.

    1 person found this answer helpful.

  2. David Finley 31 Reputation points
    2020-05-31T19:58:12.617+00:00

    I'm deploying from Visual Studio and want to check to see if a DLL I've included has been deployed.


  3. Rohit Gore | MAQ Software 1 Reputation point
    2020-05-31T20:02:14.973+00:00

    If you are not able to see in Kudu, make sure if it deployed properly.

    Those who are looking for the same:

    1. Open the Function App you deployed in the azure portal.
    2. Go to the Development Tools in the Left Pane and open Advanced tools.
    3. You will be redirected to Kudu where you can see your deployed files and also you can run it via console available in Kudu.

    8807-adv-tools.png

    0 comments No comments

  4. David Finley 31 Reputation points
    2020-06-01T00:02:28.44+00:00

    Maybe I'm missing something.

    In the Code + Test page, I see this:

    8930-codetest.png

    In Kudu, wwwroot just shows host.json:

    8932-wwwroot.png

    The function is deployed - I can run it from Postman and I get a response.

    Do I need to go into another folder in Bash on Kudo to find the files?

    0 comments No comments