question

AmarnathManchala-5911 avatar image
0 Votes"
AmarnathManchala-5911 asked JayaC-MSFT commented

Azure file system trigger for Azure function/ Azure Logic apps

Hi

Do we have Azure file storage trigger to invoke a Logic app/ Azure function on the new file/ Folder created in Azure File Storage.

I dont see this option, Do we have any work around for this

azure-functionsazure-logic-appsazure-files
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AmarnathManchala-5911 - Welcome to MS QnA, and thank you for posting here! There is no trigger available for this scenario at this time, please consider upvoting an existing UserVoice item on this matter so that the connector team may prioritize this feature accordingly.

With that said, it should be pretty straightforward to build the same capability with other means (Functions, Durable Functions, or Logic Apps itself) in Azure. We'll craft an answer capturing those details and post it here soon.

0 Votes 0 ·

1 Answer

JayaC-MSFT avatar image
0 Votes"
JayaC-MSFT answered JayaC-MSFT commented

Hello @AmarnathManchala-5911, As Mike mentioned, unfortunately the trigger is not available and there is already a request raised for this feature. Request you to please upvote the existing UserVoice item.

However, there are couple of approach to achieve this:

  1. You can use the recurrence trigger in logic app to poll and check for new files/folders https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-examples-and-scenarios#common-starting-points-for-logic-app-workflows and based on the conditional requirement you can then design your workflow.

  2. You can consider a continuous webjob to poll the required REST API endpoint and check for new items. Based on the result you can proceed to the next step.

  3. You may also consider the Durable function Monitor to poll until a particular condition is met.


Please let me know whether this helps.
If yes , please "Accept the answer" and "Up-vote" so that it helps others in the community.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Jaya-C,

I am thinking of writing an Azure function that runs for every 1 Sec and look for any File created in Specific folder in Azure File Storage and Copy that file to Azure Blob storage.

We have Logic apps listening on the Azure Blob.

Can you please suggest this approach works?

0 Votes 0 ·
JayaC-MSFT avatar image JayaC-MSFT AmarnathManchala-5911 ·

I believe you will be developing a timer trigger to do the polling. Yes this should work.

0 Votes 0 ·