1

I have a azure storage account with the File service named container-ftp.

I am needing to have a process that moves files that land here to a FTP server. There are currently no triggers for the Azure File Storage connector.

I have setup a scheduled trigger to run every :30

But how can I find out what files are new or are in there? I am OK with deleting the file after it runs, so does that help?

Using the blob storage I have it working by using the trigger on a file creation in blob storage, but they are wanting to use the Files vs Blob storage.

How would I go about doing this?

Fei Han
  • 26,415
  • 1
  • 30
  • 41
Joe Ruder
  • 2,122
  • 2
  • 23
  • 52

2 Answers2

1

Currently there is no trigger for Azure file storage in Azure Logic apps, a feedback: Add trigger for Azure File Storage has been submitted, you can vote for it.

how can I find out what files are new or are in there? I am OK with deleting the file after it runs, so does that help?

As you said, you can try to delete the files after the actions (read file and upload to ftp) executed, which can prevent your logic app from uploading ‘old’ files.

Besides, if possible, you can try other approaches to move files from Azure file storage to FTP server. For example, you can mount the Azure File share and run a FileTrigger WebJob to detect whether new files arrive and upload files to FTP server.

enter image description here

enter image description here

Fei Han
  • 26,415
  • 1
  • 30
  • 41
  • thank you for the suggestion, I am needing to avoid having to have a process running on a server or other dedicated computer however. Still not able to even figure out how to "poll" to find out a filename to copy then delete! I have the process completely working using blob storage so the solution is done but for the sake of learning I would still like to get a understanding of how to do this... – Joe Ruder Sep 06 '17 at 12:08
0

Because there is no trigger yet, the easiest approach would be to delete the file after you have processed it. Otherwise you would need to keep a trigger state or polling watermark (stored somewhere else, like Azure Storage Table) to know when was the last time you checked, and then only get the files that are modified after that polling watermark.

Paco de la Cruz
  • 2,066
  • 13
  • 22
  • Using a stored last date/time checked was what I planned on doing but I have not been able to figure out how to request files based on a timestamp. Copy file only takes a Source url, none of the actions seem to be able to do this. I have tried multiple ways of googling this and have so far come up empty handed. – Joe Ruder Sep 06 '17 at 12:05