Manage Files in Storage Account Blob Containers

PeterP1550 80 Reputation points
2023-12-11T00:46:27.32+00:00

There are a lot of files being dynamically generated at the storage account's Blob Containers level outside of the $logs blob. They look like log files. How do you either stop it or manage it? They're older than the default 7 days files retention.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 91,751 Reputation points
    2023-12-11T03:18:11.1866667+00:00

    @PeterP1550 - Thanks for the question and using MS Q&A platform.

    Assuming your storage account's type is either General Purpose v2 (GPv2) or Blob Storage, you actually don't have to do anything by yourself. Azure Storage can do this for you.

    You'll use Blob Lifecycle Management and define a policy there to delete blobs if they are older than 30 days and Azure Storage will take care of deletion for you.

    StorageLifeCycle

    For more details, refer to Configure a lifecycle management policy.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


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.