The 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.[1] FTP users may authenticate themselves using a clear-text sign-in protocol, normally in the form of a username and password, but can connect anonymously if the server is configured to allow it. For secure transmission that protects the username and password, and encrypts the content, FTP is often secured with SSL/TLS (FTPS). SSH File Transfer Protocol (SFTP) is sometimes also used instead, but is technologically different.
FTP is the traditional method of deploying your content to web server and many web developers are familiar with it.
In order to use FTP in Azure, you need to configure it. Your windows azure credentials will not work as FTP (or any other third party provider like Git) do not recognize Microsoft accounts.
You can configure the FTP credentials right from the Windows Azure portal by following these steps.
1. Login to Windows Azure portal using your credentials.
2. Select any website that you have already created.

These are just the simple steps that you follow to upload your content to Azure websites via FTP.
The same steps you need to follow whether you are uploading one file or hundreds of file.
FTP is built on a client-server architecture and uses separate control and data connections between the client and the server.[1] FTP users may authenticate themselves using a clear-text sign-in protocol, normally in the form of a username and password, but can connect anonymously if the server is configured to allow it. For secure transmission that protects the username and password, and encrypts the content, FTP is often secured with SSL/TLS (FTPS). SSH File Transfer Protocol (SFTP) is sometimes also used instead, but is technologically different.
FTP is the traditional method of deploying your content to web server and many web developers are familiar with it.
In order to use FTP in Azure, you need to configure it. Your windows azure credentials will not work as FTP (or any other third party provider like Git) do not recognize Microsoft accounts.
You can configure the FTP credentials right from the Windows Azure portal by following these steps.
1. Login to Windows Azure portal using your credentials.
2. Select any website that you have already created.
3. After clicking on the site go to the dashboard of the site. Once you are in dashboard, click on "Set up deployment credentials" link on the right hand side as shown in the figure below.
4. On clicking of this link will open a pop up window that allows you to set credentials as shown in the figure below.
5. Enter username and password and click on the right button. Once done you will get a notification that Your deployment credentials were set successfully. This user name and password can be used to deploy to any web site in all subscriptions associated with the account you use to log into the Windows Azure portal. You do not need to set credentials for every web site that you create. Once you have set the credentials the link changes to "Reset your deployment credentials". As the name suggests, you can reset your credentials from here in case you forget or just simply change it.
To deploy using FTP, you need FTP server details , your username and password.
To get the server details of the web site your are uploading contents to, go to the dashboard of the website and you can see the FTP server details on the right hand side of the page as shown in the figure below.
To deploy using FTP, you need FTP server details , your username and password.
To get the server details of the web site your are uploading contents to, go to the dashboard of the website and you can see the FTP server details on the right hand side of the page as shown in the figure below.
If you pay attention closely to the FTP host name, then you find out that FTP host name is same for all the websites. But it's the "Deployment/FTP User " that is different for each website.
For example in my account for the test-learnwindowsazure website I have "Deployment/FTP User " as
test-learnwindowsazure\vjoshi
but for the website test1-learnwindowsazure it is
test1-learnwindowsazure\vjoshi
Now the following steps will explain how to deploy a simple html page to azure website.
1. Create a new file index.html and type the following contents to it. (or create any html file or use existing
one).
<html>
<body>
<h1> My first Azure website </h1>
</body>
</html>
2. You can use any FTP client to connect to Azure FTP location. Here I have used FileZilla.
Give host, username and password to connect. For the user, give full user name. For the local site go to
the directory where you have stored index.html, for me it's C:\Colud\Website. For the remote site go
to /site/wwwroot.
the directory where you have stored index.html, for me it's C:\Colud\Website. For the remote site go
to /site/wwwroot.
3. Currently wwwroot has only one file "hostingstart.html". Drag index.html from local to remote and your file will be uploaded to remote.
4. Go back to website listing in Windows Azure portal and click on the URL of the website for which you
have uploaded the content.
Clicking on this URL will open the website and since index.html is the default page for website, it will show the content of it.
These are just the simple steps that you follow to upload your content to Azure websites via FTP.
The same steps you need to follow whether you are uploading one file or hundreds of file.
No comments:
Post a Comment