Hi @Huhn, Alexander yes, this is possible.
Option 1: Use FTP
- Open the Azure portal and navigate to your web app.
- Click on "Deployment Center" in the left-hand menu.
- Under "Deployment Center," click on "FTP / FTPS."
- Note the FTP hostname, username, and password. You'll need these to connect to the web app using an FTP client.
- Use an FTP client (such as FileZilla or WinSCP) to connect to the web app using the FTP hostname, username, and password.
- Navigate to the folder containing the file you want to copy.
- Drag the file from the web app folder to your local machine.
Option 2: Azure CLI
- Open a terminal or command prompt on your local machine.
- Install the Azure CLI if you haven't already done so.
- Log in to your Azure account using the Azure CLI by running the command
az login
. - Once you are logged in, navigate to the directory where you want to copy the files to on your local machine.
- Use the Azure CLI to copy the files from the Azure Web App to your local machine. The command to do this is
az webapp log download --resource-group <resource-group-name> --name <web-app-name> --log-file <path-to-log-file>
. Replace<resource-group-name>
with the name of the resource group that contains the Azure Web App,<web-app-name>
with the name of the Azure Web App, and<path-to-log-file>
with the path to the file you want to copy. For example, if you want to copy a file namedexample.txt
from thesite/wwwroot
directory of an Azure Web App namedmywebapp
in a resource group namedmyresourcegroup
, you would run the commandaz webapp log download --resource-group myresourcegroup --name mywebapp --log-file site/wwwroot/example.txt
.
This will download the file from the Azure Web App to your local machine. You can then open the file using a text editor or other application as needed.
Note that this method only works for files that are generated within the Azure Web App. If you need to copy files that are part of the application code or other files that are not generated within the Azure Web App, you will need to use a different method, such as deploying the files to a source control repository and then cloning the repository to your local machine.
Hope that helps
Best, Grace