1
votes

i am trying to copy files from FTP to Azure Storage using logic apps, my app was fully functional when a file is getting added in the ftp location but not folders. i dont see any settings to change to copy the folders also.

1

1 Answers

0
votes

According to your requirement, I think yes. I have created a simple demo, I could send the files and folders to Azure Blob Storage timely basis. You could refer to my steps.

  1. Logic app>Logic App Designer>choose trigger ‘FTP – When a file is added or modified’.

In Connection:

The Connection name: FTP Server name.

The Server Address: I copy from App Service>Properties>FTP HOST NAME.

The User Name: App service name/ FTP Server name. I copy from App Service>Properties> FTP/Deployment User.

In setting:

I choose one folder in FTP (‘/LogFiles/application’ folder).

Frequency: 3 minutes.

enter image description here 2. Click Add an Action> Search Azure Blob Storage-Create Blob:

In Connection:

Connection Name: Any name you created( such as 'ftpconnect').

In setting:

I could create a blog file to store logs in Action Blob 1. And I could send a folder from FTP to Azure Blob in Action Blob 2. enter image description here

Since I choose the ‘/LogFiles/application’ folder in FTP, so every time I trace the application logs, the FTP would store these logs in folder.

Finally, I trace my application logs in application and click run in Logic App Designer, It works fine. You could see the file in folder from the following screenshot.

In Azure Blob Storage: enter image description here

Besides, you could also refer to this article to learn how to copy files from FTP to Blob Storage in Logic App.