How to create or use Local Folder in Azure? [Resolved]

Posted by Bhuvanesh6 under Azure on 8/10/2016 | Points: 10 | Views : 245 | Status : [Member] | Replies : 2
I have a required to download a file from SFTP server and the file downloaded is stored to local folder say "D:\Data\tempData.csv"
I have to read the data from local file and consume in my application for other data manipulation.

This job is created using web hooks scheduler in Azure Web Jobs.

I am unable to download file to azure and then read from there.

Can some one help me to use a location for temp data which is equivalent to "D:\Data\tempData.csv" in local system in the azure environment.

Suggest a place in azure where can I download file and then to read from there.

Thanks in Advance.

Bhuvan


Responses

Posted by: Bhuvanesh6 on: 8/13/2016 [Member] Starter | Points: 25

Up
1
Down

Resolved
In Azure Environment, the "Web-Jobs" are stored in its local folder where known as "D:\home" and "D:\local" is the local folder used by the Web-hooks. I was in need to use a folder for temporary usage of downloading a file from SFTP server and again read the file from that local temporary location file and consume it in my application.

I have used the "D:\local\Temp" as the temporary folder which is created by the code after checking the folder existence, then after creating the folder the code will download a file from server and store to this location and then read from the same location and delete the file from that temporary folder.


Thanks for all those who supported.

Bhuvan

Bhuvanesh6, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bhuvanesh6 on: 8/10/2016 [Member] Starter | Points: 25

Up
1
Down
What I have tried but it does not worked out:

Tried using SSH.NET dll to download file from SFTP to local folder
Again to read from local folder to my application
Tried looking at BLOB storage usage, which was not approved Tech Arch.

Bhuvan

Bhuvanesh6, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response