Monday, October 17, 2016

Connecting to Azure Website with FTP

There are circumstances when it is necessary to transfer files between your development computer and your Azure website. Here’s how you can connect using the free FileZilla FTP client.
You can download FileZilla from https://filezilla-project.org/download.php.

It is assumed that you have an Azure subscription. Otherwise, you can get a free one month trial subscription at https://azure.microsoft.com/en-us/free.
  • Login into portal.azure.com
image
  • On the left-side, click on “App Services”.
image
  • Click on your website on the first blade. In the above case it is cartoonapi.
image
  • Click on “Deployment credentials” in the second blade.
image
  • Configure the FTP username and password in the third blade then click on Save.
  • The next step is to use these credentials on your FTP client. Start Filezilla:
image
  • Click on File >> Site Manager…
  • Click on the “New Site” button in the “Site Manager” dialog.
image
  • Give the site a name. In my case I called it cartoonapi.
  • Change “Logon Type” to Normal.
  • Go back to the Azure portal and click on Overview in the second blade.
image
  • “Copy the values for “FTP hostname” & “FTP/deployment username” and paste these values into Host and User respectively in Filezilla. Use the “Click to Copy” function in Azure, so that the username and hostname can be copied correctly.
image
  • Enter the Password you configured previously.
  • Click on Connect. You may receive an unknown certificate dialog like this:
image
  • Click on OK. If everything is good, you will be connected to your website and will see the following folders:
image
  • Your website is under the site folder.
This is one way to deploy and also maintain your site. Of course, there are many other much simpler ways, especially from within Visual Studio, where you can do a direct publish from Visual Studio into Azure.

Reference:

https://blogs.msdn.microsoft.com/microsoftimagine/2015/12/22/microsoft-azure-tutorial-how-to-upload-a-website-to-the-cloud-via-ftp/

No comments:

Post a Comment