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.
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.Cannot use /home/site/wwwroot/WinSCP.exe