14

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 ?

enter image description here

itye1970
  • 1,654
  • 7
  • 31
  • 62
  • 1
    afaik you can get publish settings via azure portal. That should contain what you need – Erki M. Aug 01 '18 at 08:12
  • 1
    Thanks i did that and it worked but when i ftp into the web app the virtual directory i created doesnt appear? – itye1970 Aug 01 '18 at 08:22
  • @itye1970 Please don't change your question. If we answered your question, you should accept it and start a new one. – Martin Brandl Aug 01 '18 at 08:28

5 Answers5

24

You can set the FTP credentials on the Deployment credentials blade within your App Service:

enter image description here


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 by dragging and dropping the files into the browser window:

enter image description here

Matthew Lock
  • 13,144
  • 12
  • 92
  • 130
Martin Brandl
  • 56,134
  • 13
  • 133
  • 172
19

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".

tjanuario
  • 191
  • 1
  • 2
  • good tip, avoids setting up ftp access, and can still move a group of files, either in .zip archive or a regular file folder. – Fred Woolard Jan 20 '21 at 20:10
  • I was holding back on using this step because I was trying to upload a .db SQLite file. Then I realised, Kudu allows you drag and drop any file, and not just .zip. So, just go ahead and upload whatever file you want, with or without zip. it works. – Jay May 18 '21 at 08:13
14
  1. Go to YOURSITE.scm.azurewebsites.net/ZipDeployUI
  2. Drag and drop enter image description here

Note: all files and folders in current wwwroot will be removed without warning

jaredbaszler
  • 3,941
  • 2
  • 32
  • 40
Chinh Phan
  • 1,459
  • 19
  • 22
4

I used Visual Studio IDE. Access the Publish interface as shown below.

enter image description here

  • 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

enter image description here

Hopefully it works for your case.

Duncan O. N.
  • 778
  • 12
  • 24
1
  1. Go to App Service Editor

enter image description here

  1. There you can manipulate files with right click context menu: enter image description here
Konstantin Salavatov
  • 4,370
  • 2
  • 25
  • 24