Connect To FTP Service Using Azure Logic Apps

Omayma Khammassi
3 min readDec 31, 2020

Azure Logic App is a cloud service, containing a set of actions which are APIs: it defines by Connectors. The workflow starts performing whenever the trigger gets fired, it may be HTTP Request or Queue message….

The Azure Logic App aims to simplify how you design and build scalable solutions for app integration, data/system integration, enterprise application integration, and business-to-business (B2B) communication, whether in the cloud, on-premises, or both.

FTP Connector

In this blog, we choose to focus on the FTP Service Connector.
With Azure Logic Apps and the FTP connector, you can create automated tasks and workflows that create, monitor, send, receive, update, delete, copy … files through your account on an FTP server

Example: Create and get the file from FTP Service

In this example, we will try to send and create a new file in FTP then get it to be sent in Email. Let’s start!

First and foremost you need an Azure subscription.

The following diagram contains the architecture of the whole workflow in Azure.We gonna start with the HTTP Request trigger to the send of file:

1-Create new logic App, and choose as trigger the HTTP Request

2-Insert the body request schema:

the HTTP request URL will be generated automatically after saving.

3-Now let’s check if the file‘s content is not null

4-If it is true, we will choose the SFTP-SSH Connector to create the file.
we must insert the service credential

5-Then we should fill the file‘s data in this interface

5-Now we wanna get the file from the Ftp service after creation. So, we gonna choose the action of Get-File Content

Finally, we can send the file via email by using the Outlook Connector

Conclusion

In this article, we wanna explain the simplest way to create a workflow to send a new file to the Ftp service and get it back attached in Email via Outlook Connector.

--

--

Omayma Khammassi

Software developer and a lifelong learner.Passionate about Dot.Net application and the Microsoft Azure platforms.