Microsoft Azure - Creating Action Rules With Azure Monitor
Last Updated :
30 Mar, 2023
Pre-requisite:- Azure VM
The Azure Monitor is one of the services offered by Microsoft Azure. As the name suggests, it is a kind of monitor which helps the user to maximize the availability and performance of the applications and services according to the needs of the user. It delivers a comprehensive solution for collecting, analyzing, and acting on telemetry from the users' cloud and on-premises environments.
For example, the option ‘Application Insights” can easily detect and diagnose issues across applications and dependencies. Log Analytics can be used for troubleshooting and deep diagnostics. Apart from this, there are other options available such as Support operations like automated actions, Azure dashboards and workbooks for creating visualizations, and more.
In this article, we will discuss Azure monitor and how can we create action rules with the help of Azure Monitor.
Working:
Azure Action groups are collections of action rules that are defined by the user in Azure Monitor. Basically, their work is to notify or trigger an alert once the Azure monitor identifies a problem with the application or infrastructure. In such a case, Azure Monitor, Azure Service Health, and Azure Advisor then use action groups to notify users through alerts so that the necessary actions could be taken.
Each action is made up depending on the properties like Name, Details, and type. For example, a Name includes name-related information or a unique identifier within the action group, Details contain the information details vary by its type. Type includes the notification type, that will be sent, for instance, voice call, message, or email. Apart from this, there are some other types of Automated actions, which can be set as per the requirements of the user.
Users can configure their own preferred action rules based on their requirements. Here are a few simple Guiding steps to help configure groups in Azure.
Creating Action Rules Using the Azure Monitor:
Step 1: Open the Azure portal.
Step 2: Select Monitor, where all the monitoring settings and data can be viewed.
Step 3: Next, Select Alerts, and then Action groups, as can be seen in the image below:
Step 4: Here, Select the Create button as shown in the image.
Step 5: The next step follows Entering the information as follows:
Configure Basic Action Group:
Step 1: First, choose values for the Resource Group and Subscription fields under Project details.
Step 2: Also, Select the region
Step 3: The subscription, region, and resource group that a user chooses are all saved with the action group.
Step 4: Here, Under the ‘Instance details’, enter values for ‘Action group name’ and ‘Display name’. While sending the notifications through the group, the display name is substituted for the full action group name.
Configuring the Notifications:
Step 1: Select Next: Notifications to access the Notifications tab. Alternatively, click the Notifications tab at the top of the page.
Step 2: Here, Define the list of notifications to send when an alert is triggered.
For each notification, specify the following information:
- Notification type: Select the preferred type of notification that will be sent. For instance:
(a) Email Azure Resource Manager Role: Send an email to users with specific subscription-level Azure Resource Manager roles.
(b) Email/SMS message/Push/Voice: Send different notification types to particular recipients.
- Name: Enter name-related details for the notification.
- Details: As per the selected notification type, mention the details like an email address, phone number, or other information.
Common Alert Schema: Another option on the list is "Common Alert Schema," which, when enabled, can give users control over all of the Monitor's alert services through a single extensible and unified alert payload.
Step 3: Next, tap on the OK button.
Configuring the Actions:
Step 1: By choosing Next: Actions, the Actions tab will be displayed. The Actions tab can also be chosen from the menu at the top of the page.
Step 2: The next step requires defining a list of actions, which will be carried out when an alert will be triggered. For example, the Action Type, Name, details, etc.
Step 3: Here, a user can also choose to enable the common Alert schema as the unified alert payload service, to get access to all the alert services provided by Azure Monitor.
Create the Action Group
Step 1: Here, The user can choose "Next: Tags" if they wish to give the action group a key-value pair. If not, they can simply skip this step. The Azure resources can be categorized using tags.
Select Review + create to view the settings. This process can quickly verify the inputs to make sure all necessary data has been entered. Issues are reported here if there are any. After reviewing the settings, click "Create" to start creating the action group.
Similar Reads
Microsoft Azure - Configuring an Alert Rule with Azure Monitor
The azure monitor is a powerful monitoring tool that works like a smart dashboard for our applications and services by collecting application, guest operating system(OS), Azure resource, Azure subscription, and Azure tenant monitoring data to help us gain insights, understand the performance of our
4 min read
Microsoft Azure - Creating an HTTP Trigger with Azure Logic Apps
In this article, we will look into how to set up an HTTP Request Trigger that could be used in an Azure Logic App. These triggers get activated whenever an event occurs. The event needs to be decided by the trigger creator. Follow the below steps to create an HTTP trigger with Azure Logic Apps: Step
2 min read
Microsoft Azure - Using the Log Analytics Scope in Azure Monitor
Pre-requisite: Azure VM Log Analytics is a service in the Azure portal to enable monitoring and capturing logs of resources in a database for monitoring and analyzing results. It is also used to manage the agent's configuration across azure services. In this article, you will learn about how you can
2 min read
Microsoft Azure - Monitoring Azure Functions
In this article we will how to monitor Azure Functions. In the article, we are basically going to look into the GAâing of the new portal experience for Azure Functions. And specifically, you are going to dial into the monitoring aspects of how to monitor a function, how to see whatâs going on, even
5 min read
Microsoft Azure - Create App Services in Azure Portal
In this article, we will learn about the new and improved experience for creating App Services. Azure App Service lets you create apps faster with a one-of-a-kind cloud service to quickly and easily create enterprise-ready web and mobile apps for any platform or device and deploy them on a scalable
5 min read
Microsoft Azure - Query Azure Storage Logs in Azure Monitor Log Analytics
Pre-requisite:- Azure Log Analytics is a tool offered by Azure, which is used to edit and run log queries against data in the Azure Monitor Logs store and helps interactively analyze their results. One can easily use Log Analytics queries to retrieve records that match particular criteria, identify
5 min read
Microsoft Azure - Opinion Mining with Azure Cognitive Services
In this article, we will learn how to do opinion mining with Azure Cognitive Services. We can use the opinion mining feature of the Text Analytics API to analyze multiple sentiments in a sentence. To follow along, we will need Visual Studio, although you can also use Visual Studio Code. Opinion mini
4 min read
Microsoft Azure - Getting Free Trial with Azure Quickstart Center
In this article, we will discuss how to make the most out of your trial subscription using the Azure Quickstart Center in the portal. Azure Quickstart Center provides popular services, tutorials, and guides to get started in your Azure journey. To find Azure Quickstart Center, you can find it in the
3 min read
Microsoft Azure - Using the Azure Activity Log
In the given article we will get introduced to Azure activity logs. In this article, we will go through the activity log and let you know how to access it and what you can use it for. The activity log is really great to tell the who, what, and when for operations in your Azure resources. Implementat
4 min read
Microsoft Azure - Using Github Action in Azure App Service
In this article, we will learn how to use GitHub Actions from Azure App Service. GitHub Actions enables us to automate builds and deployments which results in better quality software. For the purpose of demonstration, let's use it from this Azure App Service Web App that we've already created. This
2 min read