create alert on the storage

Yves 0 Reputation points
2024-01-25T17:25:50.5933333+00:00

We have a request to create alert on the storage when there are files sitting in storage account but they were not consumed after an certain among of time We need a comprehensive method to monitor files coming to our storage account and if they are sitting there longer than x hours/days to alert us. I was wondering if you have expertise on this type of work

Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,529 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Luis Arias 8,621 Reputation points Volunteer Moderator
    2024-01-25T18:22:15.32+00:00

    Hi Yves,

    You have many interesting options on Azure to achive your requeriment ,An simple approach to follow could be have a process running X time comparing the upload date with your current datetime using these services:

    The easier of these is Logic Apps and also you can add more functionally this is a draft of the workflow steps:

    1. Create logic Apps workflow
    2. Create a recurrence trigger for example each day
    3. Add Storage Blob Connector (https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-azureblobstorage?tabs=consumption)
    4. Compare blob metadata LastModified with current date.
    5. Trigger an email with the blob that It wasn't modified

    On the other side you can do completely by code the same logic with azure functions.

    Let me know if this help you.

    Luis


    If the information helped address your question, please Accept the answer.

    0 comments No comments

  2. Nehruji R 8,181 Reputation points Microsoft External Staff Moderator
    2024-01-29T13:56:57.57+00:00

    Hello Yves,

    Greetings!  Welcome to Microsoft Q&A forum.

     

    I understand that you would like to create a alert for knowing the files in azure storage that are not accessed/read for a X time period,

     

    Adding to above response. We can achieve this using Azure Monitor service by creating metric alerts refer - Create Azure Monitor metric alert rules - Azure Monitor | Microsoft Learn for detailed process of creating the metric alerts and can overview the transactions to know which files are accessed over a time period and same opposite can be done your use case. Next, create the action group & trigger accordingly for getting the information.  

    For Azure File storage service refer - Monitor Azure Files | Microsoft Learn & Analyze Azure Files metrics | Microsoft Learn.

     

    Additionally, if you would like to review more storage account files on the same then Storage insights provides comprehensive monitoring of your Azure Storage accounts by delivering a unified view of your Azure Storage services performance, capacity, and availability and if they are sitting there longer than x hours/days, you can use Storage Insights.  '

    refer - Monitor Azure Storage services with Azure Monitor Storage insights | Microsoft Learn to know more about storage insights creation.  

    You can use Storage Insights to examine the transaction volume and used capacity of all your accounts.

    this SO thread provides the detailed process of creating alert rules - https://stackoverflow.com/questions/63887492/how-can-get-an-alert-on-aged-files-in-azure-storage-account-containersfor reference.

    Hope this answer helps. Please let us know if you have any further queries. I’m happy to assist you further.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

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