Home > Software engineering >  How can I set up an alert for the creation of a new container in an Azure Storage Account?
How can I set up an alert for the creation of a new container in an Azure Storage Account?

Time:06-16

I need to create an alert that sends an email every time a new container is created in a specific Azure storage account.

CodePudding user response:

We don't have any built signals to create a Azure monitor alert to monitor the container creation in the storage account.

To accomplish this, you'll need to use Azure Monitor and write a kusto query to monitor and send an email every time a new container is created in the storage account.

Below steps to be followed in-order to implement custom solution using Azure monitor:

  1. Create a log analytics workspace.
  2. Enable the enter image description here

    1. In signal condition, set Aggregation Granularity (The interval over which datapoints are grouped by the aggregation type.),Frequency of evalution (determines how often the alert rule should run) to 5 minutes.

    2. Using Actions groups, you send an email or sms notification when the alert criteria has met. You can use the existing action group or you can enter image description here

      Here is the sample output for reference:

      enter image description here

      Note: Here we are using the custom log search as condition signal, if you want know which container got created and this alert got fired click on Search Results in your alert notification email.

  • Related