locked
Using FTP accounts in windows azure RRS feed

  • Question

  • I would like to convert one of my existing windows based application to windows azure. My application gets the input from the client. The client sends the input through the ftp account and my background application will take that file and do some processing and send it back to the client FTP account.

    Does any body know how to create ftp accounts in windows azure. How my client can send the files using ftp software to the windows azure.

    Any assistance would be greatly appreciated.

    Tuesday, December 7, 2010 9:03 AM

Answers

  • Hi,

    First you need a FTP server. OS doesn't care what FTP accounts are. FTP accounts only need to be known by FTP server. So:

    1. Does windows azure provide FTP accounts?

    No. Windows Azure is not aware of any FTP accounts. FTP server should take care of that.

         2. Is it possible to create FTP accounts in windows azure?

    Yes it should be possible as long as you've installed FTP server on Windows Azure.

         3. How does the worker role can access the files sent to this FTP account?

    The answer still depends on what FTP server you're using. I think most FTP servers store files on the disk so the Worker Role need to read local disk. (need Admin mode)

    >I don't understand the relation between startup task and FTP accounts.

    The first thing is to install the FTP server on Windows Azure. To do so you can either use starup task to do that automatically or RDP to do that manually. After the FTP server is installed you can create FTP accounts (again, using startup task to do automatically or RDP to do that manually, but please keep in mind startup task is recommended because any change made by RDP may get lost).

    Also please have a look at this:

    http://ftp2azure.codeplex.com/

    You're able to extend above sample to create your own FTP server. In that case you can control how FTP accounts are created.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Windows Azure Platform China Blog: http://blogs.msdn.com/azchina/default.aspx
    Thursday, December 9, 2010 8:13 AM

All replies

  • Hi,

    You're able to use start up tasks to do this. With the help of it you're able to easily migrate your existing application to Windows Azure.

    http://msdn.microsoft.com/en-us/library/gg456327.aspx

    The detailed implementation may vary depending on what FTP server you're using.

    One important thing to keep in mind is if the files are stored on VMs the changes may get lost. So the FTP server needs to support storeing files in a remote database/store. Or you may need to write some code to manually backup/restore the files via the blob storage.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Windows Azure Platform China Blog: http://blogs.msdn.com/azchina/default.aspx

     

     

    Wednesday, December 8, 2010 7:29 AM
  • Hi,

    Thanks for your reply. My actual question was

    1. Does windows azure provide FTP accounts?
    2. Is it possible to create FTP accounts in windows azure?
    3. How does the worker role can access the files sent to this FTP account?

    I don't understand the relation between startup task and FTP accounts.

    Please give me some more information.

     

    Thursday, December 9, 2010 6:24 AM
  • Hi,

    First you need a FTP server. OS doesn't care what FTP accounts are. FTP accounts only need to be known by FTP server. So:

    1. Does windows azure provide FTP accounts?

    No. Windows Azure is not aware of any FTP accounts. FTP server should take care of that.

         2. Is it possible to create FTP accounts in windows azure?

    Yes it should be possible as long as you've installed FTP server on Windows Azure.

         3. How does the worker role can access the files sent to this FTP account?

    The answer still depends on what FTP server you're using. I think most FTP servers store files on the disk so the Worker Role need to read local disk. (need Admin mode)

    >I don't understand the relation between startup task and FTP accounts.

    The first thing is to install the FTP server on Windows Azure. To do so you can either use starup task to do that automatically or RDP to do that manually. After the FTP server is installed you can create FTP accounts (again, using startup task to do automatically or RDP to do that manually, but please keep in mind startup task is recommended because any change made by RDP may get lost).

    Also please have a look at this:

    http://ftp2azure.codeplex.com/

    You're able to extend above sample to create your own FTP server. In that case you can control how FTP accounts are created.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help. Windows Azure Platform China Blog: http://blogs.msdn.com/azchina/default.aspx
    Thursday, December 9, 2010 8:13 AM