Incident Response in Azure: KQL, Playbooks & SOAR
The AZ-500 tests your ability to triage, investigate, and respond to security incidents using KQL queries, Logic App playbooks, and Sentinel automation rules. This lesson covers the response lifecycle from alert to remediation.
Incident Response Lifecycle in Azure
- Detection: Analytics rule fires, Alert created, Incident created (if grouping is on)
- Triage: Analyst reviews incident, assigns severity, sets status (New to Active)
- Investigation: KQL queries in the workspace, entity timeline, threat intelligence correlation
- Containment: Isolate VM, block user, revoke tokens: manual or automated
- Remediation: Root cause fix: patch, reconfiguration, policy update
- Documentation: Close incident, record findings, update detection rules
KQL Basics for the Exam
The exam expects you to read and understand KQL, not write complex queries from scratch. Key operators:
// Find failed sign-ins from a specific IP
SigninLogs
| where ResultType != 0
| where IPAddress == "1.2.3.4"
| summarize count() by UserPrincipalName, bin(TimeGenerated, 1h)
| order by count_ descKey KQL operators to recognise: where, project, summarize, join, extend, render, order by, bin().
Logic App Playbooks
Playbooks are Logic Apps triggered by Sentinel alerts or incidents. Common patterns:
- On high-severity alert: post to Teams channel plus page on-call
- On user account alert: disable Entra ID account, force sign-out of all sessions
- On malicious IP alert: add IP to Named Location block list in Conditional Access
Automation Rules
Automation rules run before playbooks and can:
- Auto-assign incidents to an analyst
- Auto-tag incidents with labels
- Auto-close known-false-positive patterns
- Trigger a playbook
Get weekly security insights
Cloud security, zero trust, and identity guides — straight to your inbox.
Microsoft Cloud Solution Architect
Cloud Solution Architect with deep expertise in Microsoft Azure and a strong background in systems and IT infrastructure. Passionate about cloud technologies, security best practices, and helping organizations modernize their infrastructure.
Questions & Answers
Related Articles
Need Help with Your Security?
Our team of security experts can help you implement the strategies discussed in this article.
Contact Us