question

DavidFinley-2155 avatar image
0 Votes"
DavidFinley-2155 asked ·

How to view Azure Function files deployed

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
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

markxa avatar image
1 Vote"
markxa answered ·

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://docs.microsoft.com/azure/azure-functions/run-functions-from-deployment-package.

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks - that's the info I was looking for.

1 Vote 1 · ·
SeanKilleen avatar image
0 Votes"
SeanKilleen answered ·

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.









· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidFinley-2155 avatar image
0 Votes"
DavidFinley-2155 answered ·

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

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

  1. Go to Advanced Tools in Function App.

  2. Open the Kudu , there open the Debug Console.

  3. There you will see the drive.

  4. Open the site/wwwroot/....you will see your deployed file folder.


....Let me know if you get it

0 Votes 0 · ·
RohitGoreMAQSoftware-6607 avatar image
0 Votes"
RohitGoreMAQSoftware-6607 answered ·

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














adv-tools.png (6.5 KiB)
· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidFinley-2155 avatar image
0 Votes"
DavidFinley-2155 answered ·

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?


codetest.png (26.7 KiB)
wwwroot.png (13.3 KiB)
· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.