Hello Pratima !
Thank you for posting on Microsoft Learn.
When dealing with connectivity issues between ADF and an SFTP server via a NAT Gateway, there are several potential points of failure to investigate :
- Verify that the NAT Gateway is correctly associated with the public IP address that the client has whitelisted.
- Verify that the subnet where the Self-hosted Integration Runtime (SHIR) is deployed is correctly associated with the NAT Gateway.
- The SHIR VM must be correctly configured to use the NAT Gateway for outbound traffic. This typically involves ensuring that the VM’s subnet is associated with the NAT Gateway.
- Verify that there are no firewall rules on the SHIR VM that might be blocking outbound traffic to the SFTP server.
- Outbound Rules: Check the NSG associated with the subnet of the SHIR VM to ensure that outbound traffic to the SFTP server’s IP and port (usually port 22 for SFTP) is allowed.
- Although not directly related to outbound traffic, ensure that there are no restrictive inbound rules that might be affecting the SHIR’s ability to communicate.
Example Commands for Testing Connectivity
# Test DNS resolution
nslookup <sftp-server-hostname>
# Test connectivity to SFTP server on port 22
tcpping <sftp-server-ip> 22
telnet <sftp-server-ip> 22
# Manual SFTP connection test
sftp -P 22 <username>@<sftp-server-hostname>