Azure File Storage Trigger for logicapp

Kola, Sarath Babu 5 Reputation points
2023-07-31T12:01:51.85+00:00

is there any Azure FileStorage trigger, i want to start a logicapp when there is any file created in File share.

Please suggest alternate ways.

Thanks,

Sarath.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
{count} votes

2 answers

Sort by: Most helpful
  1. Konstantinos Passadis 19,691 Reputation points MVP
    2023-07-31T12:20:43.3466667+00:00

    Hello @Kola, Sarath Babu !

    Welcome to Microsoft QnA!

    Unfortunately ther is not a trigger for File Storage in Logic Apps

    But if you look this thread :

    https://learn.microsoft.com/en-us/answers/questions/333914/azure-file-system-trigger-for-azure-function-azure

    There are ways to accomplish that :

    1. You can use the recurrence trigger in logic app to poll and check for new files/folders https://learn.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.

    Also there is a Trigger though for Blob Storage

    User's image

    With a small function you can create a program to copy something to a Blob Storage and then fire the Logic App

    The link of Logic Apps Connectors

    https://learn.microsoft.com/en-us/azure/connectors/built-in

    In your place i would created an Azure Function that executes each time a File is created , and then write some metadata in the Blob. The Logic App will fire when a Blob is modified or added !


    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards


  2. VenkateshDodda-MSFT 25,241 Reputation points Microsoft Employee Moderator
    2023-08-01T08:07:36.8466667+00:00

    @Kola, Sarath Babu Thanks for your patience on this.

    We don't have any built-in trigger either in logic Apps, Functions that can check/monitor when a new file got created in the file share.

    As Konstantinos Passadis is one possible solution or alternatively, you need to create a custom solution using timer trigger, call the List Files rest API and validate the latest file based on the modified time\modified date property accordingly.

    Feel free to reach back to me if you have any further questions on this.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.