Skip to content
Lesson 1 of 80 completed · Sign in to track completionCourse overview →Glossary ↗
Course contents · Bound the workflow
  1. 1. Choose a playbook family and a bounded response contractFree
  2. 2. Separate the author, invoker and connector identitiesFree
  3. 3. Build and manually verify an evidence-only playbookFree account
  4. 4. Scope an update trigger without creating a feedback loopPremium
  5. 5. Handle duplicate requests and ambiguous comment outcomesPremium
  6. 6. Bind response approval to a current action proposalPremium
  7. 7. Trace rule health through workflow execution to the effectPremium
  8. 8. Recover the workflow and hand over a verifiable response servicePremium

Choose a playbook family and a bounded response contract

A response workflow needs separate evidence for event selection, invocation, workflow execution and the resulting change. Start with a dedicated lab incident and an evidence-only playbook before granting a write action.

20 MIN

By AISecurityInterviews · Updated

Keep a return link on this browser. No account needed.

TL;DR: A response workflow needs separate evidence for event selection, invocation, workflow execution and the resulting change. Start with a dedicated lab incident and an evidence-only playbook before granting a write action.

Where you are. Step 1 of 8: bound the workflow.

Reference and lab. Microsoft Sentinel in the Microsoft Defender portal and Consumption Azure Logic Apps using the Microsoft Sentinel incident connector, official documentation checked 18 November 2026. This is the existing connector family, not generated playbooks, Defender SOC connector workflows or preview Simple Flows. Product procedures and KQL are documentation-checked, not tenant-executed. Python exercises run offline with fictional Juniper Ledger records. Optional product work requires an authorized, dedicated lab workspace, approved identities and a cost/retention limit. No production incident, email, ticket or endpoint action is required.

Turn an automation request into a testable service

Juniper Ledger already operates a scheduled detection in its training workspace. Its SOC now wants a repeatable way to collect a small incident summary and add a review receipt. The customer owns the incident decision. The provider owns the workflow definition and its execution evidence. Neither party is asking this lab to isolate endpoints, disable identities, close incidents or send customer data to an external service.

Write the acceptance contract before opening a designer. Input is one explicitly approved lab incident, identified by its full ARM resource ID in the agreed workspace. The initial output is a small allowlisted record in a restricted workflow run. A later revision may add one fixed review comment to that same incident. A run outside the approved scope must stop without a write. An ambiguous write outcome must remain unresolved until someone checks the incident; it must not silently become success or an automatic resend.

Use a dedicated training workspace and a separate resource group for these playbooks. Do not attach a broad automation rule to a shared SOC as an experiment. The lab owner supplies existing onboarding, approved access, a harmless incident from the earlier canary exercise, an observation window and a budget. Logic Apps execution and diagnostic ingestion can incur charges. This course does not create a cloud subscription or promise a free tenant.

Name the family before following a screenshot

The current playbook execution guide distinguishes generated playbooks, Microsoft Defender SOC Logic Apps and Microsoft Sentinel connector Logic Apps. Those families do not share every trigger, permission or hosting requirement. This course uses the existing Microsoft Sentinel incident connector on a Consumption Logic App. In the current creation menu, its entry can be labeled Playbook with incident trigger (Legacy). Legacy here identifies the connector choice; it is not evidence that the tutorial runs a generated playbook.

The Defender portal increasingly uses case terminology. Verify the connector shown inside the designer and the incident ARM ID supplied by the trigger, rather than deciding from the menu's label alone. If the tenant exposes a different family, stop and use that family's current documentation. Do not substitute a case trigger and assume an identical payload or role model. Preview Simple Flows and generated workflows are outside this lab.

The creation guide documents both Consumption and Standard workflows. Choose Consumption for this bounded exercise. A real deployment that requires particular private networking or hosting controls needs a fresh comparison; do not assume the lab's hosting choice proves those requirements. Microsoft documents 31 March 2027 as the end of Sentinel support in the Azure portal, checked November 2026. The learning path uses the Defender portal now.

MICROSOFT SENTINEL · AUTOMATION LAB
Four green lights answer four different questions

Rule selection

Does this event qualify?

Invocation

Was the workflow called?

Execution

What did each action do?

Observed effect

Did the intended state change?

Acceptance boundaries

Not completion

  • Rule health records invocation
  • Inspect the workflow run separately

Bind the destination

  • Correct incident and revision
  • Independently inspect the result

Separate four outcomes

An automation rule matching an incident is selection evidence. A successful invocation is delivery evidence. A completed Logic Apps run is execution evidence. The intended comment appearing on the intended incident is effect evidence. These are related observations, not interchangeable green badges.

Suppose a rule invokes a workflow, the workflow reads the wrong incident because a fixed test ID was left in an action, and the connector successfully adds a comment there. Every platform operation may report success while the service contract fails. Preserve the triggering ID, the freshly read ID and the action destination together. Scope checks belong immediately before any write, not just in the rule's display name.

The following offline exercise evaluates a fictional receipt. It does not call Microsoft services or prove a tenant is configured correctly.

receipt = {
    "selected": True, "invoked": True, "run_completed": True,
    "expected_incident": "lab-I17", "observed_incident": "lab-I18",
    "comment_observed": True,
}
stages_ok = all(receipt[k] for k in
                ("selected", "invoked", "run_completed"))
effect_ok = (receipt["comment_observed"] and
             receipt["expected_incident"] == receipt["observed_incident"])
print(stages_ok)  # => True
print(effect_ok)  # => False

Retain evidence without copying the whole incident

The first record needs the workspace and incident identity, workflow revision, run ID, observation time and decision. It does not need raw message bodies, access tokens, full entity collections or personal contact details. Define retention and who can inspect run history before testing. Run history is another data store with its own access boundary. A screenshot that hides names does not remove those values from connector inputs or diagnostic logs.

Keep a change record for the allowed write and an emergency stop procedure. Disabling future invocations will not necessarily cancel a run already waiting on an action. Later lessons will reconcile in-flight work separately. The output of this course is an operating packet with observed outcomes and remaining uncertainty, not a claim that automation makes incident response safe by itself.

Do this before moving on

Write the contract for Juniper’s first evidence-only revision and its later comment revision. List the exact input identity, permitted output, stop condition, evidence owner and excluded actions.

Worked feedback: The read-only revision cannot prove comment delivery. The comment revision needs a destination match and a read-back receipt. Both must reject an unapproved incident without contacting another service.

Go deeper

Key takeaways

  • Name the connector family and hosting model before configuring a workflow.
  • Rule selection, invocation, execution and effect require separate receipts.
  • A dedicated incident and allowlisted record keep the first exercise reviewable.

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.

  1. 1A rule and workflow both report success, but the comment is on another incident. What failed?

  2. 2Why does this course identify the Microsoft Sentinel incident connector?

Sign in to track which lessons you have finished.