Get Started with Azure Monitor Alerts

Introduction:

Azure Monitor Alerts serve as a proactive measure, notifying you of potential problems with your infrastructure or application as indicated by Azure Monitor data, thus enabling you to resolve issues before they impact users.

You have the flexibility to set alerts for any metric or log data source available in the Azure Monitor data platform. Let’s work on the below use case in the article to get started with Azure Monitor Alert

use case:

Send a notification to the owner/admin whenever a new resource has been created.

Create an alert rule:

Step 1: In the Azure portal, select Monitor > Alerts.

Step 2: Open the + Create menu, and select the Alert rule, as shown in the below figure.

Step 3: Select the scope, in my case I selected the subscription as a scope, so the new rule will be applied to all the resources under this subscription.

Step 4: Next step is condition, select the signal as “Create Deployment”

Condition preview

Whenever the Activity Log has an event with Category=’Administrative’, Signal name=’Create Deployment (Deployment)’  

Step 5: Next configure an actions, create or select an existing action group.

What is action group?

When data from Azure Monitor suggests a potential issue with your application or infrastructure, it triggers an alert. These alerts can include action groups, which are essentially sets of notification settings. Action groups are utilized by Azure Monitor, Azure Service Health, and Azure Advisor to inform users of the alert and initiate an action.

Each action consists of the following components:

Type: This refers to the kind of notification sent, or action executed. For instance, it could be dispatching a voice call, SMS, or email. It’s also possible to initiate a variety of automated actions.

Name: This is a unique identifier used within the action group.

Details: These are the specific details associated with each type of action, and they can vary depending on the type

Check here to learn more about configuring an action group Azure Monitor action groups – Azure Monitor | Microsoft Learn

I configured the action group to send an email notification to an admin

Step 6: Give a name for an alert rule and create it.

Now, where never you create a new resource under the subscription, which is scoped to this new alert rule, you will get a notification through email, which is configured in action group, as shown in the below figure.

Summary:

Azure Monitor alert is a powerful feature that help you detect and address issues with your Azure resources and applications. You can create different types of alerts based on metrics, logs, activity logs, service health, resource health, smart detection, and Prometheus metrics. Each type of alert has its own advantages and use cases, depending on the data source and the logic you want to apply. You can also configure action groups and alert processing rules to customize the notifications and automated actions that are triggered by the alerts. In this article, you will learn how to choose the right type of alert for your scenario, how to create and manage alert rules, and how to monitor and troubleshoot alerts.

Will explore more about alert processing rules in my next article.

gowthamk91

Leave a Reply

Discover more from Gowtham K

Subscribe now to keep reading and get access to the full archive.

Continue reading