The easiest approach is to install the Azure command-line interface directly on the remote server. You can then use the Azure command-line interface to transfer these files directly to Azure Blob Storage. There is no need for SFTP (Azure Blob Storage does not provide the SFTP interface) or work roles (your remote server does not serve files through the web interface).
If this is not an option, another approach is to do what @Mark Volders suggested and prepare the SFTP server in Azure. Then you can send files from the remote server to the SFTP server. The SFTP server then transfers the file to the Azure Blob Storage using the Azure command line interface and deletes the local file if successful.
For an SFTP server, one obstacle is that files are copied to the Azure BLOB storage as soon as the SFTP client completes the file transfer. A common approach is to use Incron , which is a service that listens for file events (in this case, the IN_CLOSE_WRITE event). There is an SFTP Gateway product on the Azure Marketplace that does all this (disclosure: I am one of the developers of this product), so you donβt have to spend time implementing it from scratch.
In addition, file sizes> 500 MB should not be a problem for either the Azure CLI or SFTP.
source share