QuestionQ96

VerifiedMonitor and maintain Azure resources

You have an Azure virtual machine named VM1.

Azure collects events from VM1.

You are creating an alert rule in Azure Monitor to notify an administrator when an error is recorded in the System event log of VM1. You need the alert rule to query the location where the collected events are stored.

Which target resource should you select in the alert rule?

Explanation

Windows event log entries from a virtual machine are queried as log data in Azure Monitor Logs after they are collected into a Log Analytics workspace. An alert for an error in the System event log is therefore a log search alert. The collected events are stored in the Log Analytics workspace, so a log search alert scoped to the workspace evaluates them. (Resource-centric log alerts scoped to the VM also query the same workspace data.) A VM extension is not an alert target, and a metric alert is an alert type rather than a target resource.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!