Reputation: 1425
Need help! I am trying to create a Logic App in Azure (Windows PaaS app service) that would connect to AWS cloud environment (SFTP Linux VM) and get files from there. In the Logic App when I am using SFTP-SSH API connection, the connection gets created, but it shows Bad Gateway error as below:
And below is what it shows when I try to run the Logic App
I have ensured that all the IPs of my Azure PaaS app service are white-listed by AWS cloud environment (SFTP Linux VM) and I could check this by running below PowerShell command in my azure app service so seems the connection is established.
But for some reason, I can't access the SFTP folder that is present in AWS and it throws 502 Bad Gateway error. There is no other step or code that I can share, as its the very first step of my Logic App. Has anyone faced this kind of error before? Any ideas/pointers why I may be getting this error or what should I do to get rid of this error?
Thanks for any ideas/suggestions in advance!
Upvotes: 5
Views: 17771
Reputation: 1425
This error is finally resolved for me, and the problem in this case was, the new IPs (managed connectors IPs) at https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-limits-and-config#configuration-ip-addresses were not white-listed. And I also had to create a DNS record for FQDN pointing to A record (AWS SFTP folder IP address) to resolve this error.
Upvotes: 2