Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to FTP to a Azure WebApp Deployment Slot file system

I have an Azure WebApp and have added a deployment slot for my staging environment. I need to FTP to the deployment slot, however there seems to be only a single FTP user which always connect to the file system of the main webapp.

If I set the FTP user on the deployment slot app then it overwrites the main FTP user.

How can I FTP to the file system of the Deployment slot?

like image 981
Rodney Avatar asked Aug 02 '16 20:08

Rodney


People also ask

How do I upload files to Azure Web App?

To open the Kudo Console navigate to YOUR APP SERVICE -> Development Tools -> Advanced Tools or bookmark https://yourappservice.scm.azurewebsites.net/DebugConsole. And then just drag and drop the files you want uploaded onto the relevant folder.

Can I FTP to Azure?

FTP Server Solution allows you to connect and share files from Azure File Share using FTP/FTPS using SSL encryption. Its built using Filezilla® Server and allows you to securely share files from Azure File Share Storage.


1 Answers

You need to use what are referred to as Site-Level Credentials. Details on the difference between User-Level and Site-Level credentials is available here.

Site-Level credentials are specific to your site and since a deployment slot is really just another site, you get the level of granularity you're looking for.

To get the Site-Level credentials for your web app, download the Publish Settings file for your site. You can do this from the web app blade in the portal by clicking on More -> Get Publish Profile. Repeat this from the web app blade for your deployment slot to get the Site-Level credentials for that web app (slot).

enter image description here

In the Publish Settings file, you need the publishUrl, userName, and userPWD from the FTP profile. Note, there are two profiles in the Publish Settings file, Web Deploy and FTP. Make sure you're looking a the FTP profile in the Publish Settings file

enter image description here

The publishUrl will be the same for your production web app and the web app in your deployment slot. However, the userName and userPWD will be different for each.

To use these credentials in an FTP client such as FileZilla, simply plug these values into the Host, Username, and Password fields as shown here.

enter image description here

like image 136
Rick Rainey Avatar answered Oct 21 '22 13:10

Rick Rainey