Logic app creates flow containers in storage account

Ricky Schuleman 35 Reputation points
2023-11-08T13:10:24.15+00:00

Hi there,

I have a Standard LogicApp with a stateful workflow, that's triggered daily on a recurrence trigger. This generates these containers prefixed with flow and suffixed with content:User's image

These container(s) contain various files for each run that occurred. I'm assuming this is a means of tracking state for a run, but I'm unsure why these files remain even after the run has completed. If I delete these containers, I am still able to view the run history for a run and the inputs/outputs for the actions that occurred, and not sure if they serve another purpose for which they need to remain.

In my workflow I make calls to some functionapps, and noticed that deleting these actions result in fewer files in these created containers - I've tried adding these functionapp actions back in and toggling settings for async etc on them, however they always seem to generate these files. There are other actions in my workflow like blob upload, and sending to a service bus topic that also result in files created within the container.

Could someone please explain what these are for, why they aren't cleaned up automatically, and what is the recommended configuration/actions to control this behaviour?

Thanks in advance.

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

Answer accepted by question author
  1. Mike Urnun 9,792 Reputation points Moderator
    2023-11-08T22:31:03.2966667+00:00

    Hello @Ricky Schuleman - Thanks for reaching out, and posting on the MS Q&A.

    Regarding:

    Could someone please explain what these are for, why they aren't cleaned up automatically, and what is the recommended configuration/actions to control this behaviour?

    As you've already discovered, the storage tables are mainly for storing Run History data and are named with the following format: “flows__[LANamePrefix][WorkflowPrefix][yyyyMMdd]__t000000z” and ends with actions/variables. By default, the retention period is 90 days, I believe, and should be cleaned up automatically afterward. As for control & what's possible with the data, the following tool may be of help: https://github.com/Drac-Zhang/Logic-App-STD-Advanced-Tools


    Please "Accept Answer" if the answer is helpful so that others in the community may benefit from your experience.

    3 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Emma Gustafsson 0 Reputation points
    2024-08-20T10:52:16.3666667+00:00

    I wonder if changing these settings would affect how long the run history is stored in the containers and tables?

    https://techcommunity.microsoft.com/t5/azure-integration-services-blog/retention-in-logic-apps-standard-including-the-retention-of/ba-p/3662627

    Or what history is affected by changing those settings ?

    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.