How to download a file from Azure hosted app service?

Richard Wojciechowski 20 Reputation points
2023-04-25T10:16:57.38+00:00

Hello, I have a Django app using sqlite hosted on Azure. When I connect using FTPS to the endpoint with application-scope credentials I got from Azure Deployment center, I do not find my app folder in wwwroot. I just have a hostingstard.html page. Does someone know the procedure to retrieve my app folder on the server and to download a file (the sqlite base as a matter of fact)?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,933 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 17,731 Reputation points Microsoft Employee Moderator
    2023-04-28T02:16:59.2866667+00:00

    Hello! To download a file from your Azure hosted app service, you can use FTP or FTPS. Since you mentioned that you are already using FTPS, I can guide you through the process of downloading your SQLite database file.

    First, you need to find the path to your SQLite database file. You can do this by logging in to the Azure portal, navigating to your app service, and then going to the "Advanced Tools" section. From there, click on "Go" to launch the Kudu console. In the Kudu console, navigate to the "Debug console" and then select "CMD". Once you are in the command prompt, navigate to the "site" directory and then to the "wwwroot" directory. Your Django app should be located in a subdirectory of "wwwroot". Once you find your app directory, navigate to the directory where your SQLite database file is located. You can use the "dir" command to list the files in the current directory.

    There should be a download button in the UI. Please try this and let us know the outcome.

    User's image

    2 people found this answer helpful.

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.