Search code examples
ftpazure-powershellazure-automation

Unable to connect to local machine FTP server from Azure Automation Powershell script


I am new to FTP and Powershell. I have setup an FTP server on my local machine as mentioned : here .. I'm trying to upload files to it from a Powershell script and I have succeeded from my local machine.

But when I try to run the script from Azure Automation, I get: "Unable to connect to the remote server" error . I also tried my script to enable Passive Mode as shown here

I also tried sharing my ftp folder on network drive for all users, disabled all firewalls, setup FTP Firewall Support in IIS with my public IP address and full data channel port range, but I still get the same error. Please help.


Solution

  • I haven't been able to make the WinRM solution work from my local machine, and I'll update once I do. But I think that Azure's Hybrid Runbook Worker as mentioned here maybe a good solution. I still have to try that too. Currently I have added FTP to my Azure VM and made this workable.