Hello Simone Ferrari,
The Logic Apps Consumption SFTP-SSH connector's inability to reuse or explicitly close connections, coupled with your SFTP server's connection limits, necessitates a shift to an Azure Function.
Solution: Implement an Azure Function.
- The function establishes one persistent SFTP connection and it handles all SFTP actions (list, get, delete) and SharePoint transfer within that connection.
- Also, the function explicitly closes the SFTP connection, preventing resource exhaustion.
This approach provides the necessary connection control, overcoming the SFTP-SSH connector's limitations. While it requires refactoring, it's the reliable way to ensure your workflow's success.