Deploying A Website In Azure via FTP (File Transfer Protocol)

File Transfer Protocol (FTP) is a standard network protocol used to transfer computer files from one host to another host over a TCP-based network, such as the Internet. FTP is built on a client-server architecture and uses separate control and data connections between the client and the server.

Login to the management portal.

Microsoft azure
                                                         Figure: Azure Portal

Click on New, Web + Mobile, then Web App as in the following screenshot:

new web app

Enter the Link you want and click on Create as in the following:

new web app2

Wait for a couple of Minute and let the web app succeed Deploy. After Deployment is successful, open it and click on the “Get publish profile” as in the following:

himalmanda

Note: A file extension .Publishsettings will be downloaded, keep it safe because it holds the details required to publish Website.

Open the recently downloaded .Publishsettings file in notepad and find the publishURL, userName and userPWD as in the following:

userpwd

Note: PublishURL, UserName and UserPWD is required to upload your website to the web app you made via FTP.

Now, Open FTP Tool. In my case, I have FileZilla. So, I am uploading the file using it.
In Filezilla, input the following:

  1. publishURL to Host.
  2. userName to Username.
  3. userPWD to Password.And click on Quickconnect.

Then, it connects to the server and the message” Directory Listing Successful” will be displayed as in the following:

directory listing successful

And click on Quickconnect. Then, it connects to the server and the message” Directory Listing Successful” will be displayed as in the following.

Open the folder name “site” >> “ wwwroot” which is in the right side of the FileZilla as in the following:

wwwroot

Then, drag and drop all your files and folders inside the folder “wwwroot” and it will automatically start uploading the files and folders and after upload completes enter the link (in my case, my URL is: http://himalmandap.azurewebsites.net/) that you made in Azure. You will see what you have uploaded.

final

Happy Coding!


Similar Articles