问题
how can you upload files to an Azure Web Apps virtual directory ?
I created a virtual directory for example called \UAT but when i log on via ftp its not visible ?
回答1:
You can set the FTP credentials on the Deployment credentials blade within your App Service:
However, the easiest way is to upload your files using the KUDU console. To access the console navigate to https://<yoursite>.scm.azurewebsites.net
where <yoursite>
is the name of your App
In the Kudu console, click on the Debug Console tab, then on PowerShell. That will open a file browser where you can navigate to your directory and upload the files:
回答2:
From the Kudu powershell console, if you open a folder in the file browser, you can drag and drop a zip file into it. It's not obvious until you drag the file over top of the file explorer at which time a box opens up over the size column that says "Drag here to upload and unzip".
回答3:
- Go to YOURSITE.azurewebsites.net/ZipDeployUI
- Drag and drop
Note: all files and folders in current wwwroot will be removed without warning
回答4:
I used Visual Studio IDE. Access the Publish interface as shown below.
- Click Manage in Cloud Explorer it will open the specified Azure App web service. Drill down to Files>wwwroot and right click then select Upload File
Hopefully it works for your case.
来源:https://stackoverflow.com/questions/51628367/how-can-you-upload-files-to-an-azure-web-apps-virtual-directory