Why Alerts & Dashboards?
Collecting logs and metrics is only useful if you can act on them quickly. Alerts ensure teams are notified when something goes wrong, while dashboards give real-time visibility into system health. Automated response prevents manual firefighting by resolving known issues instantly.
1. Alerts
Definition:
Rules that trigger when a metric, log, or activity matches certain conditions.
Types of Alerts:
-
Metric Alerts → near real-time, e.g., VM CPU > 80%.
-
Log Alerts → based on KQL queries in Log Analytics.
-
Activity Log Alerts → resource changes (VM deleted, new RBAC assignment).
Response Actions:
-
Email, SMS, push notifications.
-
Trigger automation (Logic App, Azure Automation Runbook, Function).
2. Dashboards
Azure Dashboards
-
Custom views combining charts, metrics, and logs.
-
Shared with teams for consistent visibility.
Workbooks
-
Rich visualizations from Log Analytics queries.
-
Interactive analysis (drill-downs, timelines).
-
Best for operational and security dashboards.
3. Automated Response
Logic Apps / Functions Integration
-
Example: Auto-scale VMs when CPU > 80%.
-
Example: Disable user account after suspicious login attempts.
Azure Automation Runbooks
-
Automate remediation tasks (restart VM, patch servers).
Playbooks (with Sentinel)
-
Automate incident response workflows.
Example Enterprise Scenario
A financial services company requires:
-
Alerts when SQL DTU usage > 90%.
-
Dashboard of app performance + failed logins.
-
Automated restart of VMs if they stop responding.
Correct design:
-
Create metric alert on SQL DTU usage.
-
Build Azure Workbook with performance + login data.
-
Use Logic App/Runbook to auto-restart unresponsive VMs.
Confusion Buster
-
Alerts vs Metrics
-
Metrics = raw numbers.
-
Alerts = actions triggered by metrics.
-
-
Azure Dashboard vs Workbooks
-
Dashboard = static, high-level overview.
-
Workbooks = dynamic, query-driven deep dive.
-
-
Runbook vs Logic App
-
Runbook = operational automation (infra tasks).
-
Logic App = workflow integration (alerts → Teams/Slack).
-
Exam Tips
-
“Which feature creates visual reports from KQL queries?” → Workbooks.
-
“Which service automatically executes remediation when alert triggers?” → Logic App / Automation Runbook.
-
“Which alert type detects resource deletions?” → Activity Log Alert.
-
“Which tool is best for near real-time CPU monitoring?” → Metric Alerts.
What to Expect in the Exam
-
Direct Q: “Which Azure feature provides shared dashboards for monitoring?” → Azure Dashboards.
-
Scenario Q: “Company requires automated VM restart when CPU > 95%.” → Alert + Runbook.
-
Scenario Q: “Company requires interactive analysis of login failures.” → Workbooks with KQL.
-
Trick Q: “Dashboards and Workbooks are the same.” → False.