Create Alert for Azure Virtual Machine Error Events | Exam AZ-104

Create Alert for Azure Virtual Machine Error Events

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have an Azure virtual machine named VM1 that runs Windows Server 2016.

You need to create an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour.

Solution: You create an Azure Log Analytics workspace and configure the data settings. You install the Microsoft Monitoring Agent on VM1. You create an alert in

Azure Monitor and specify the Log Analytics workspace as the source.

Does this meet the goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

A

Alerts in Azure Monitor can identify important information in your Log Analytics repository. They are created by alert rules that automatically run log searches at regular intervals, and if results of the log search match particular criteria, then an alert record is created and it can be configured to perform an automated response.

The Log Analytics agent collects monitoring data from the guest operating system and workloads of virtual machines in Azure, other cloud providers, and on- premises. It collects data into a Log Analytics workspace.

https://docs.microsoft.com/en-us/azure/azure-monitor/learn/tutorial-response https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview

Yes, the proposed solution meets the goal of creating an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour.

Here's a detailed explanation of the proposed solution:

  1. Create an Azure Log Analytics workspace: Azure Log Analytics is a service that collects and analyzes data from multiple sources, including Windows event logs. To create an Azure Log Analytics workspace, you need to have an Azure subscription. Once you create a workspace, you can configure the data sources that you want to collect data from, including the System event log on VM1.

  2. Configure the data settings: Once you have created the Log Analytics workspace, you need to configure the data settings to specify which data sources you want to collect data from. In this case, you would configure the workspace to collect data from the System event log on VM1.

  3. Install the Microsoft Monitoring Agent: To collect data from VM1, you need to install the Microsoft Monitoring Agent on the virtual machine. This agent collects data from the specified data sources and sends it to the Log Analytics workspace.

  4. Create an alert in Azure Monitor: Azure Monitor is a service that provides monitoring and alerting capabilities for Azure resources. To create an alert, you would specify the Log Analytics workspace as the data source and configure the alert to trigger when more than two error events are logged to the System event log on VM1 within an hour.

In summary, the proposed solution involves setting up an Azure Log Analytics workspace to collect data from the System event log on VM1, installing the Microsoft Monitoring Agent on VM1 to send data to the workspace, and creating an alert in Azure Monitor to trigger when the specified condition is met. This solution meets the stated goal of creating an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour.