How to trigger an alert when a binary file is created in a path on an Azure VM

Ali 96 Reputation points
2020-11-06T01:32:59.097+00:00

I have an Azure VM which is connected to a log analytics workspace. A third party application (no control on its behavior) is running on the vm and creates a binary file in a folder (like d:\app\bin) in specific circumstances. I would like to raise an alert once that file is created using Azure Monitor.

So, my specific question is if it is possible to watch a path on Azure VM for existence of a file and as soon as it is created, fire alert. Any idea if this is doable at all?

Thanks

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,159 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ali 96 Reputation points
    2020-11-10T04:00:48.84+00:00

    Just in case if someone else is after this, touched based with MS support and possible solution can be:

    Use Change Tracking from Azure Automation , references are as below:

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Vaibhav Chaudhari 38,666 Reputation points
    2020-11-06T04:33:29.637+00:00

    Not sure on implementing this with Azure monitor.

    But you can give it a try using using Logic apps. Install on premise gateway in VM and watch for a file, send an alert

    https://stackoverflow.com/questions/45754504/logic-app-file-created

    https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-using-file-connector

    ----------

    Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav

    0 comments No comments