sca-monitoring

Configure Azure Monitor with Log Analytics, KQL queries, and CPU metric alerts for a VM.

2|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill sca-monitoring-jay-steenbergen
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sca-monitoring
Source: https://github.com/jay-steenbergen/MSSAMentorAgent/tree/main/.github/skills/tracks/server-cloud-admin/sca-monitoring
Command: npx skills add https://github.com/jay-steenbergen/MSSAMentorAgent --skill sca-monitoring-jay-steenbergen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Learners in the Server & Cloud Administration track need hands-on practice setting up monitoring and alerting for an Azure VM, but often struggle to connect Log Analytics workspaces, Data Collection Rules, KQL, and alert rules into one coherent workflow. ## Core Features & Use Cases - Workspace and agent onboarding: Create a Log Analytics workspace and onboard a VM using the Azure Monitor Agent (AMA) with a Data Collection Rule for perf counters and event logs. - Guided KQL practice: Write five progressive KQL queries using where, project, summarize, and render against Heartbeat, Perf, and Event tables. - Metric alerting end-to-end: Build an action group, create a CPU > 80% metric alert rule, deliberately trigger it with a CPU-burn script, and verify the email fires. - Use Case: A learner who just deployed vm-app01 in a prior project follows the phases to stand up monitoring, answer "what happened" with KQL, and receive an email when CPU spikes. ## Quick Start Ask the mentor to walk you through setting up Azure Monitor and a CPU alert for the vm-app01 virtual machine from the earlier project.

Frequently Asked Questions about sca-monitoring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I monitor an Azure VM with Azure Monitor Agent?▼

Install the Azure Monitor Agent (AMA) extension on the VM, then create a Data Collection Rule that selects performance counters and Windows event logs as data sources with your Log Analytics workspace as the destination. Data typically appears within 5-10 minutes.

How to write basic KQL queries in Log Analytics?▼

Start with a table name like Perf, Heartbeat, or Event, then chain pipe operators: `where` filters rows, `project` selects columns, `summarize` aggregates with functions like count() or avg(), and `render timechart` visualizes time series. Operators are lowercase and table names are PascalCase.

What is the difference between Azure Monitor Agent and MMA?▼

The Azure Monitor Agent (AMA) replaces the legacy Microsoft Monitoring Agent (MMA/OMS), which Microsoft retired in August 2024. AMA collects nothing by default; Data Collection Rules define what data is gathered and where it is sent.

Metric alert vs log alert in Azure Monitor, which should I use?▼

Use metric alerts for numeric signals like CPU percentage because they evaluate every minute at low cost. Use log alerts when you need KQL query logic, accepting slower 5-15 minute evaluation cadence and higher cost.

Why is my Azure alert not sending email notifications?▼

Check that the action group's email receiver address is correct and the message is not in spam. Also expect 7+ minutes of latency from metric ingestion lag, the evaluation window, and delivery time before the email arrives.

How do I control Log Analytics workspace costs?▼

Set a daily ingestion cap with Set-AzOperationalInsightsWorkspace -DailyQuotaGb, keep retention at the included 31 days, and use the PerGB2018 pay-as-you-go tier. A small lab VM emitting 50-150 MB per day costs only a few dollars monthly.