Course contents · Scope and source evidence
- 1. Bound a Microsoft Sentinel scheduled-analytics labFree
- 2. Prove the Azure Activity event reaches the intended workspaceFree
- 3. Build a query whose scope and time window you can explainFree account
- 4. Configure alert behavior before enabling the scheduled rulePremium
- 5. Trace the alert into the current incident before decidingPremium
- 6. Recover detection coverage without erasing later workPremium
- 7. Hand over a scheduled detection with its evidence gapsPremium
Prove the Azure Activity event reaches the intended workspace
Trace a customer-approved resource-group change through diagnostic settings to AzureActivity, checking event identity, field values, delay and source coverage.
28 MIN
By AISecurityInterviews · Updated
TL;DR: Prove the source operation and the workspace row independently. Connector status is a coarse signal; the event ID, resource ID, actual status value and timestamps establish whether this specific test reached the rule input.
Where you are. Lesson 2 of seven. Verify the event pipeline before designing the detection.
Reference and lab scope. Microsoft Sentinel scheduled analytics in the Microsoft Defender portal, documentation checked November 2026. The scenario maintains an existing scheduled-rule estate; Microsoft recommends custom detections for new rules. Product steps and KQL are documentation-checked, not tenant-executed. Use only an explicitly authorized lab with an existing diagnostic pipeline and approved access. Offline records are fictional.
Check the diagnostic destination first
The lab assumes an existing Azure Activity diagnostic pipeline. In Microsoft Defender, open Microsoft Sentinel > Configuration > Data connectors, locate Azure Activity and inspect its connector page and instructions. Verify the approved source subscription, diagnostic categories and destination workspace. The diagnostic-settings connector guide documents the policy-assisted setup. Its legacy migration steps are not a reason to disconnect existing sources during this exercise.
If the pipeline is absent, Sara creates a separate approved configuration change. A policy assignment may need remediation for resources already in scope; a policy's existence alone does not prove delivery. Do not let Dev improvise broader permissions to complete the lesson. Capture the actual destination and a recent row after the source configuration is effective.
The connector's green indication can mean it received data within the past 14 days. It does not certify current delivery latency, completeness or this subscription's coverage. Likewise, an empty result can mean no relevant event occurred, the query scope is wrong, access is limited or ingestion failed. These explanations require different next checks.
Generate one harmless, attributable operation
Sara records the prior training-tag value on jl-detection-canary and the start time in UTC. On an approved lab account, she performs a resource-group update that changes only that dedicated tag. The Azure CLI group reference documents az group update and its generic --set argument. A reference invocation is shown below; replace the placeholder subscription only after verifying the account and approved resource. This command is not executed by the course.
az group update --subscription <approved-subscription-id> \
--resource-group jl-detection-canary \
--set tags.TrainingReceipt=JL-P1
This is a real write if performed in a tenant. Preserve unrelated tags, check the returned resource ID and resulting tag, and retain the prior value for customer-approved restoration. An API success response is source evidence, not evidence of a Sentinel alert. The resource-provider permissions reference identifies Microsoft.Resources/subscriptions/resourceGroups/write as the resource-group create/update operation. Confirm the actual event rather than assuming every portal tag editor uses that operation.
Inspect the table without inventing a schema
In the approved workspace query surface, search a bounded interval around the source time. Start by inspecting a few rows for the exact subscription and resource. Keep TimeGenerated, EventDataId, CorrelationId, OperationNameValue, ActivityStatusValue, _ResourceId and Caller; avoid copying claims and full properties into a public packet.
The AzureActivity table reference defines event identity and source time. EventDataId identifies an event; CorrelationId can join several events in a larger action. A write can produce separate start and completion records. Their common correlation value does not make them duplicate events.
There is a documentation detail worth testing: the table describes common status values including Succeeded, while Microsoft's sample queries also filter ActivityStatusValue on Success. Do not guess from a translated portal label. Record the actual values for the controlled operation. The next lesson's example accepts these two success spellings and excludes start/failure records; other observed values require review before enablement.
Measure source time and observed arrival separately. EventSubmissionTimestamp is not a substitute for the workspace's ingestion clock. The ingestion_time function is approximate and can be null when its policy was unavailable at ingestion. Missing timing data limits the delay claim; it does not prove zero delay.
- 1
1 · SOURCE RECEIPT
- Customer confirms the exact resource-group update
- Record UTC time and the prior/new training-tag value
- 2
2 · WORKSPACE ROW
- Match resource, operation and EventDataId
- Inspect success status and source/ingestion times
- 3
3 · CONTROL ROW
- Same pipeline, different approved resource
- Present in the table but excluded from the detection
Test the evidence join offline
This synthetic check requires both the positive and control rows. It also rejects a completion record from another workspace. It validates the packet's identifiers, not the connector or Azure service.
expected = {"workspace": "jl-soc-lab", "subscription": "sub-lab"}
receipts = {"E-P1": "jl-detection-canary", "E-C1": "jl-detection-control"}
rows = [
{**expected, "event": "E-P1", "resource": "jl-detection-canary"},
{**expected, "event": "E-C1", "resource": "jl-detection-control"},
{"workspace": "other-soc", "subscription": "sub-lab",
"event": "E-P1", "resource": "jl-detection-canary"},
]
joined = [r["event"] for r in rows
if all(r[k] == v for k, v in expected.items())
and receipts.get(r["event"]) == r["resource"]]
print(sorted(joined)) # => ['E-C1', 'E-P1']
assert len(joined) == len(receipts)
Repeat the approved stimulus on jl-detection-control, using its own receipt. If the control never arrives, the later “no alert” outcome is inconclusive. The customer must also confirm current retention and ingestion coverage; a historical row proves that one event arrived, not that the pipeline has remained healthy since.
Do this before moving on
Build a two-row evidence table for P1 and C1 with source receipt, resource ID, EventDataId, observed status, source time and arrival observation. Worked check: “green connector, no control alert” fails if C1 has no table row. First repair or explain that source-to-workspace gap, then evaluate rule exclusion.
Go deeper
- SIEM connectors and normalization: preserve source meaning while deciding what a normalized event can support.
- Detection engineering: turn the proposed rule into an evidence-backed detection hypothesis.
- Incident handling: separate a detector match from a justified incident declaration and response.
Key takeaways
- Inspect actual field values before filtering successful operations.
- Use EventDataId for event identity and retain correlation as context.
- A scope control needs input evidence even when no alert is expected.
Check yourself
Say or write your answer first, then reveal. Explaining it from memory, in your own words, is the skill an interviewer is checking.
1Why can two rows share a CorrelationId without being duplicates?
2What does a green Azure Activity connector fail to prove?
Sign in to track which lessons you have finished.