SFTP file transfers in Microsoft Azure Function "Cannot use /home/site/wwwroot/WinSCP.exe"

Advertisement

jsmith124
Joined:
Posts:
1
Location:
Ontario

SFTP file transfers in Microsoft Azure Function "Cannot use /home/site/wwwroot/WinSCP.exe"

I created a Azure function that uses WinSCP to sftp in that was all working correctly on local. I followed the documentation created here in the form for a Microsoft function. But when I run it on the Azure function I get the following error.
Cannot use /home/site/wwwroot/WinSCP.exe
I used bash to connect to the function and confirm that the exe is in the location it is looking for it. As well as made sure to grab the location from the context as they did in the example.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,504
Location:
Prague, Czechia

Re: SFTP file transfers in Microsoft Azure Function "Cannot use /home/site/wwwroot/WinSCP.exe"

I looks like you are trying to use WinSCP on Linux, aren't you? Make sure your Azure function runs on Windows.

Reply with quote

Advertisement

You can post new topics in this forum