# Microsoft Sentinel

> Work Microsoft Sentinel incidents from your workflows: list, create, assign, comment on, add tasks to and close incidents, read their alerts and entities, run playbooks, keep watchlists and threat intelligence up to date, and start a workflow when an incident opens or changes.

App · 24 actions. Web page: https://docs.lodol.com/docs/integrations/microsoft-sentinel

## Actions

### Add incident comment

Add a comment to an incident, such as what a workflow found or did.

**Inputs**

- Incident (`incident_id`, text, required): The incident. Pick one of the 50 newest, or give its id, its number (such as #42) or its link from the Azure portal.
- Comment (`message`, text, required): The comment. Sentinel shows simple HTML formatting.

**Outputs**

- `author_email` (text): The author's email
- `author_name` (text): Who wrote it
- `created_time` (text): When it was written (ISO 8601, UTC)
- `id` (text): The comment's id
- `incident_id` (text): The incident's id
- `last_modified_time` (text): When it was last edited (ISO 8601, UTC)
- `message` (text): The comment

**Example output**

```json
{
  "author_email": "",
  "author_name": "Lodol",
  "created_time": "2026-11-17T09:45:00Z",
  "id": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
  "incident_id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
  "last_modified_time": "2026-11-17T09:45:00Z",
  "message": "Reset the user's password and revoked their sessions."
}
```

### Add incident task

Add a task to an incident's checklist.

**Inputs**

- Incident (`incident_id`, text, required): The incident. Pick one of the 50 newest, or give its id, its number (such as #42) or its link from the Azure portal.
- Task (`title`, text, required): What to do, such as: Reset the user's password.
- Details (`description`, text): More about how to do it.

**Outputs**

- `created_by` (text): Who added it
- `created_time` (text): When it was added (ISO 8601, UTC)
- `description` (text): More about the task
- `id` (text): The task's id
- `incident_id` (text): The incident it belongs to
- `last_modified_by` (text): Who last changed it
- `last_modified_time` (text): When it last changed (ISO 8601, UTC)
- `status` (text): New (to do) or Completed (done)
- `title` (text): What to do

**Example output**

```json
{
  "created_by": "Lodol",
  "created_time": "2026-11-17T09:46:00Z",
  "description": "Then revoke their sessions in Microsoft Entra ID.",
  "id": "6b0b3a16-3a7d-4d2c-9f55-5d0d4c1e7c11",
  "incident_id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
  "last_modified_by": "Lodol",
  "last_modified_time": "2026-11-17T09:46:00Z",
  "status": "New",
  "title": "Reset the user's password"
}
```

### Add watchlist item

Add a row to a watchlist, such as an IP address to block. It needs a value for the watchlist's search key column.

**Inputs**

- Watchlist (`watchlist`, text, required): The watchlist. Pick one, or give its alias.
- Values (`values`, object, required): The row's value for each of the watchlist's columns.

**Outputs**

- `created_by` (text): Who added it
- `created_time` (text): When it was added (ISO 8601, UTC)
- `id` (text): The item's id
- `updated_time` (text): When it last changed (ISO 8601, UTC)
- `values` (object): The item's values, by column name
- `watchlist` (text): The alias of the watchlist it is on

**Example output**

```json
{
  "created_by": "Lodol",
  "created_time": "2026-11-17T08:05:00+00:00",
  "id": "82ba292c-dc97-4dfc-969d-d4dd9e666842",
  "updated_time": "2026-11-17T08:05:00+00:00",
  "values": {
    "IP address": "203.0.113.7",
    "Reason": "Password spraying"
  },
  "watchlist": "blocked_ips"
}
```

### Close incident

Close an incident with the reason, as Sentinel requires.

**Inputs**

- Incident (`incident_id`, text, required): The incident. Pick one of the 50 newest, or give its id, its number (such as #42) or its link from the Azure portal.
- Classification (`classification`, text, required): What the incident turned out to be. One of: `TruePositive:SuspiciousActivity` (True positive: suspicious activity), `BenignPositive:SuspiciousButExpected` (Benign positive: suspicious but expected), `FalsePositive:IncorrectAlertLogic` (False positive: incorrect alert logic), `FalsePositive:InaccurateData` (False positive: inaccurate data), `Undetermined`.
- Closing comment (`comment`, text): What was found and done.

**Outputs**

- `alert_products` (list): The products that raised its alerts
- `alerts_count` (number): How many alerts it holds
- `bookmarks_count` (number): How many hunting bookmarks it holds
- `classification` (text): Why it was closed: TruePositive, BenignPositive, FalsePositive or Undetermined (empty while open)
- `classification_comment` (text): The comment left when it was closed
- `classification_reason` (text): The reason given with the classification, such as SuspiciousActivity
- `comments_count` (number): How many comments it has
- `created_time` (text): When it was created (ISO 8601, UTC)
- `description` (text): What the incident is about
- `first_activity_time` (text): When its first activity happened (ISO 8601, UTC)
- `id` (text): The incident's id, which every incident step takes
- `incident_number` (number): The number Sentinel shows, such as 42 for #42
- `labels` (list): Its labels (tags)
- `last_activity_time` (text): When its last activity happened (ISO 8601, UTC)
- `last_modified_time` (text): When it last changed (ISO 8601, UTC)
- `owner_email` (text): The email of the person it is assigned to
- `owner_name` (text): The name of the person it is assigned to
- `owner_object_id` (text): The Microsoft Entra object id of its owner
- `owner_user_principal_name` (text): The sign-in name of its owner
- `provider_name` (text): What created it, such as Azure Sentinel
- `related_analytics_rule_ids` (list): The analytics rules that raised it
- `severity` (text): High, Medium, Low or Informational
- `status` (text): New, Active or Closed
- `tactics` (list): The MITRE ATT&CK tactics involved
- `title` (text): The incident's title
- `url` (text): A link that opens it in the Azure portal

**Example output**

```json
{
  "alert_products": [
    "Azure Sentinel"
  ],
  "alerts_count": 2,
  "bookmarks_count": 0,
  "classification": "FalsePositive",
  "classification_comment": "Expected activity from a scanner.",
  "classification_reason": "IncorrectAlertLogic",
  "comments_count": 1,
  "created_time": "2026-11-17T09:15:30Z",
  "description": "Several failed sign-ins followed by a success.",
  "first_activity_time": "2026-11-17T09:00:30Z",
  "id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
  "incident_number": 42,
  "labels": [
    "phishing"
  ],
  "last_activity_time": "2026-11-17T09:05:30Z",
  "last_modified_time": "2026-11-17T09:40:02Z",
  "owner_email": "ana@contoso.com",
  "owner_name": "Ana Silva",
  "owner_object_id": "2046feea-040d-4a46-9e2b-91c2941bfa70",
  "owner_user_principal_name": "ana@contoso.com",
  "provider_name": "Azure Sentinel",
  "related_analytics_rule_ids": [
    "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/soc-rg/providers/Microsoft.OperationalInsights/workspaces/soc-workspace/providers/Microsoft.SecurityInsights/alertRules/fab3d2d4-747f-46a7-8ef0-9c0be8112bf7"
  ],
  "severity": "High",
  "status": "Closed",
  "tactics": [
    "InitialAccess"
  ],
  "title": "Suspicious sign-in from an unfamiliar location",
  "url": "https://portal.azure.com/#asset/Microsoft_Azure_Security_Insights/Incident/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/soc-rg/providers/Microsoft.OperationalInsights/workspaces/soc-workspace/providers/Microsoft.SecurityInsights/incidents/73e01a99-5cd7-4139-a149-9f2736ff2ab5"
}
```

### Create incident

Open an incident by hand, for something a workflow found outside Sentinel's own analytics rules.

**Inputs**

- Title (`title`, text, required): What happened, in a few words.
- Description (`description`, text): More about what happened and what is affected.
- Severity (`severity`, text): How serious it is. One of: `High`, `Medium`, `Low`, `Informational`. Default: `Medium`.
- Status (`status`, text): New, or Active if someone is already on it. One of: `New`, `Active`. Default: `New`.
- Owner (`owner`, text): Who to assign it to: their email or sign-in name, such as ana@contoso.com, or their Microsoft Entra object id.
- Labels (`labels`, list): Labels (tags) to put on it, such as phishing.
- First activity (`first_activity_time`, date and time): When the activity began.
- Last activity (`last_activity_time`, date and time): When the activity last happened.

**Outputs**

- `alert_products` (list): The products that raised its alerts
- `alerts_count` (number): How many alerts it holds
- `bookmarks_count` (number): How many hunting bookmarks it holds
- `classification` (text): Why it was closed: TruePositive, BenignPositive, FalsePositive or Undetermined (empty while open)
- `classification_comment` (text): The comment left when it was closed
- `classification_reason` (text): The reason given with the classification, such as SuspiciousActivity
- `comments_count` (number): How many comments it has
- `created_time` (text): When it was created (ISO 8601, UTC)
- `description` (text): What the incident is about
- `first_activity_time` (text): When its first activity happened (ISO 8601, UTC)
- `id` (text): The incident's id, which every incident step takes
- `incident_number` (number): The number Sentinel shows, such as 42 for #42
- `labels` (list): Its labels (tags)
- `last_activity_time` (text): When its last activity happened (ISO 8601, UTC)
- `last_modified_time` (text): When it last changed (ISO 8601, UTC)
- `owner_email` (text): The email of the person it is assigned to
- `owner_name` (text): The name of the person it is assigned to
- `owner_object_id` (text): The Microsoft Entra object id of its owner
- `owner_user_principal_name` (text): The sign-in name of its owner
- `provider_name` (text): What created it, such as Azure Sentinel
- `related_analytics_rule_ids` (list): The analytics rules that raised it
- `severity` (text): High, Medium, Low or Informational
- `status` (text): New, Active or Closed
- `tactics` (list): The MITRE ATT&CK tactics involved
- `title` (text): The incident's title
- `url` (text): A link that opens it in the Azure portal

**Example output**

```json
{
  "alert_products": [
    "Azure Sentinel"
  ],
  "alerts_count": 0,
  "bookmarks_count": 0,
  "classification": "",
  "classification_comment": "",
  "classification_reason": "",
  "comments_count": 1,
  "created_time": "2026-11-17T09:15:30Z",
  "description": "Several failed sign-ins followed by a success.",
  "first_activity_time": "2026-11-17T09:00:30Z",
  "id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
  "incident_number": 42,
  "labels": [
    "phishing"
  ],
  "last_activity_time": "2026-11-17T09:05:30Z",
  "last_modified_time": "2026-11-17T09:40:02Z",
  "owner_email": "ana@contoso.com",
  "owner_name": "Ana Silva",
  "owner_object_id": "2046feea-040d-4a46-9e2b-91c2941bfa70",
  "owner_user_principal_name": "ana@contoso.com",
  "provider_name": "Azure Sentinel",
  "related_analytics_rule_ids": [
    "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/soc-rg/providers/Microsoft.OperationalInsights/workspaces/soc-workspace/providers/Microsoft.SecurityInsights/alertRules/fab3d2d4-747f-46a7-8ef0-9c0be8112bf7"
  ],
  "severity": "High",
  "status": "New",
  "tactics": [
    "InitialAccess"
  ],
  "title": "Suspicious sign-in from an unfamiliar location",
  "url": "https://portal.azure.com/#asset/Microsoft_Azure_Security_Insights/Incident/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/soc-rg/providers/Microsoft.OperationalInsights/workspaces/soc-workspace/providers/Microsoft.SecurityInsights/incidents/73e01a99-5cd7-4139-a149-9f2736ff2ab5"
}
```

### Create threat indicator

Add an IP address, domain, URL, email address or file hash to Sentinel's threat intelligence, so analytics rules can match it.

**Inputs**

- Indicator type (`indicator_type`, text, required): What the value is. One of: `ipv4-addr` (IPv4 address), `ipv6-addr` (IPv6 address), `domain-name` (Domain name), `url`, `email-addr` (Email address), `file-sha256` (File hash (SHA-256)), `file-sha1` (File hash (SHA-1)), `file-md5` (File hash (MD5)).
- Value (`value`, text, required): The address, domain, URL, email or hash itself.
- Name (`display_name`, text): A name for it. Leave empty to use the value.
- Description (`description`, text): Where it was seen and why it matters.
- Threat types (`threat_types`, list): What kind of threat it is. Leave empty for malicious activity. One or more of: `malicious-activity` (Malicious activity), `anomalous-activity` (Anomalous activity), `compromised`, `attribution`, `anonymization`, `benign`, `unknown`.
- Confidence (`confidence`, number): How sure you are, from 0 to 100. From 0 to 100.
- Valid from (`valid_from`, date and time): When it starts to apply. Leave empty for now.
- Valid until (`valid_until`, date and time): When it stops applying. Leave empty for no end.
- Tags (`tags`, list): Tags to put on it.

**Outputs**

- `confidence` (number): How confident the source is, from 0 to 100
- `created_time` (text): When it was created (ISO 8601, UTC)
- `description` (text): What it is about
- `display_name` (text): The indicator's name
- `external_id` (text): Its STIX id, such as indicator--...
- `id` (text): The indicator's id
- `last_updated_time` (text): When it last changed (ISO 8601, UTC)
- `pattern` (text): Its STIX pattern, such as [ipv4-addr:value = '203.0.113.7']
- `pattern_type` (text): What it matches: ipv4-addr, domain-name, url, file...
- `revoked` (true/false): Whether it has been revoked
- `source` (text): Where it came from
- `tags` (list): Its tags
- `threat_types` (list): What kind of threat it is
- `valid_from` (text): When it starts to apply (ISO 8601, UTC)
- `valid_until` (text): When it stops applying (ISO 8601, UTC); empty if never

**Example output**

```json
{
  "confidence": 80,
  "created_time": "2026-11-17T09:50:00Z",
  "description": "Seen spraying passwords at our sign-in page.",
  "display_name": "Password spraying source",
  "external_id": "indicator--a2b6a95e-2108-4a38-bd49-ef95811bbcd7",
  "id": "180105c7-a28d-b1a2-4a78-234f6ec80fd6",
  "last_updated_time": "2026-11-17T09:50:00Z",
  "pattern": "[ipv4-addr:value = '203.0.113.7']",
  "pattern_type": "ipv4-addr",
  "revoked": false,
  "source": "Lodol",
  "tags": [
    "password-spray"
  ],
  "threat_types": [
    "malicious-activity"
  ],
  "valid_from": "2026-11-17T09:00:00Z",
  "valid_until": "2026-12-17T09:00:00Z"
}
```

### Create watchlist

Make a watchlist (a lookup table your queries and rules can use), empty or filled from CSV. The step stops rather than replace a watchlist that has the alias.

**Inputs**

- Alias (`alias`, text, required): The name queries use for it, such as blocked_ips: up to 64 letters, digits, hyphens and underscores.
- Name (`display_name`, text, required): The name Sentinel shows, such as Blocked IP addresses.
- Search key column (`search_key`, text, required): The column its items are looked up by, such as IP address. With CSV, one of the first row's column names.
- Description (`description`, text): What the watchlist is for.
- Items (CSV) (`csv_content`, text): Items to start with, as CSV whose first row names the columns. Leave empty for an empty watchlist.

**Outputs**

- `alias` (text): The watchlist's alias, which watchlist steps and queries use
- `created_by` (text): Who made it
- `created_time` (text): When it was made (ISO 8601, UTC)
- `description` (text): What the watchlist is for
- `display_name` (text): The watchlist's name
- `labels` (list): Its labels
- `provider` (text): Who provides it
- `provisioning_state` (text): Whether Sentinel has finished setting it up, such as Succeeded
- `search_key` (text): The column its items are looked up by
- `source` (text): Where its items came from
- `updated_time` (text): When it last changed (ISO 8601, UTC)
- `watchlist_id` (text): Sentinel's own id for it

**Example output**

```json
{
  "alias": "blocked_ips",
  "created_by": "Lodol",
  "created_time": "2026-11-17T08:00:00+00:00",
  "description": "Addresses the firewall blocks.",
  "display_name": "Blocked IP addresses",
  "labels": [],
  "provider": "Lodol",
  "provisioning_state": "Succeeded",
  "search_key": "IP address",
  "source": "Lodol",
  "updated_time": "2026-11-17T08:00:00+00:00",
  "watchlist_id": "76d5a51f-ba1f-4038-9d22-59fda38dc017"
}
```

### Delete incident

Delete an incident, with its comments and tasks. Its alerts stay in the workspace. This cannot be undone.

**Inputs**

- Incident (`incident_id`, text, required): The incident. Pick one of the 50 newest, or give its id, its number (such as #42) or its link from the Azure portal.
- Succeed if it is already gone (`if_missing_ok`, true/false): When on, the step succeeds even if there is nothing to delete. Default: `false`.

**Outputs**

- `already_gone` (true/false): Whether it was already gone
- `deleted` (true/false): Whether this step deleted it
- `id` (text): The id of what was deleted

**Example output**

```json
{
  "already_gone": false,
  "deleted": true,
  "id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5"
}
```

### Delete threat indicator

Delete a threat indicator. This cannot be undone.

**Inputs**

- Indicator (`indicator_id`, text, required): The indicator. Pick one, or give its id.
- Succeed if it is already gone (`if_missing_ok`, true/false): When on, the step succeeds even if there is nothing to delete. Default: `false`.

**Outputs**

- `already_gone` (true/false): Whether it was already gone
- `deleted` (true/false): Whether this step deleted it
- `id` (text): The id of what was deleted

**Example output**

```json
{
  "already_gone": false,
  "deleted": true,
  "id": "180105c7-a28d-b1a2-4a78-234f6ec80fd6"
}
```

### Delete watchlist

Delete a watchlist and all its items. This cannot be undone.

**Inputs**

- Watchlist (`watchlist`, text, required): The watchlist. Pick one, or give its alias.
- Succeed if it is already gone (`if_missing_ok`, true/false): When on, the step succeeds even if there is nothing to delete. Default: `false`.

**Outputs**

- `already_gone` (true/false): Whether it was already gone
- `deleted` (true/false): Whether this step deleted it
- `watchlist` (text): The deleted watchlist's alias

**Example output**

```json
{
  "already_gone": false,
  "deleted": true,
  "watchlist": "blocked_ips"
}
```

### Delete watchlist item

Take a row off a watchlist.

**Inputs**

- Watchlist (`watchlist`, text, required): The watchlist. Pick one, or give its alias.
- Item (`item_id`, text, required): The row. Pick one, or give its id.
- Succeed if it is already gone (`if_missing_ok`, true/false): When on, the step succeeds even if there is nothing to delete. Default: `false`.

**Outputs**

- `already_gone` (true/false): Whether it was already gone
- `deleted` (true/false): Whether this step deleted it
- `id` (text): The deleted item's id
- `watchlist` (text): The watchlist's alias

**Example output**

```json
{
  "already_gone": false,
  "deleted": true,
  "id": "82ba292c-dc97-4dfc-969d-d4dd9e666842",
  "watchlist": "blocked_ips"
}
```

### Get incident

One incident: its title, severity, status, owner, labels, counts of alerts and comments, and its link in the portal.

**Inputs**

- Incident (`incident_id`, text, required): The incident. Pick one of the 50 newest, or give its id, its number (such as #42) or its link from the Azure portal.

**Outputs**

- `alert_products` (list): The products that raised its alerts
- `alerts_count` (number): How many alerts it holds
- `bookmarks_count` (number): How many hunting bookmarks it holds
- `classification` (text): Why it was closed: TruePositive, BenignPositive, FalsePositive or Undetermined (empty while open)
- `classification_comment` (text): The comment left when it was closed
- `classification_reason` (text): The reason given with the classification, such as SuspiciousActivity
- `comments_count` (number): How many comments it has
- `created_time` (text): When it was created (ISO 8601, UTC)
- `description` (text): What the incident is about
- `first_activity_time` (text): When its first activity happened (ISO 8601, UTC)
- `id` (text): The incident's id, which every incident step takes
- `incident_number` (number): The number Sentinel shows, such as 42 for #42
- `labels` (list): Its labels (tags)
- `last_activity_time` (text): When its last activity happened (ISO 8601, UTC)
- `last_modified_time` (text): When it last changed (ISO 8601, UTC)
- `owner_email` (text): The email of the person it is assigned to
- `owner_name` (text): The name of the person it is assigned to
- `owner_object_id` (text): The Microsoft Entra object id of its owner
- `owner_user_principal_name` (text): The sign-in name of its owner
- `provider_name` (text): What created it, such as Azure Sentinel
- `related_analytics_rule_ids` (list): The analytics rules that raised it
- `severity` (text): High, Medium, Low or Informational
- `status` (text): New, Active or Closed
- `tactics` (list): The MITRE ATT&CK tactics involved
- `title` (text): The incident's title
- `url` (text): A link that opens it in the Azure portal

**Example output**

```json
{
  "alert_products": [
    "Azure Sentinel"
  ],
  "alerts_count": 2,
  "bookmarks_count": 0,
  "classification": "",
  "classification_comment": "",
  "classification_reason": "",
  "comments_count": 1,
  "created_time": "2026-11-17T09:15:30Z",
  "description": "Several failed sign-ins followed by a success.",
  "first_activity_time": "2026-11-17T09:00:30Z",
  "id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
  "incident_number": 42,
  "labels": [
    "phishing"
  ],
  "last_activity_time": "2026-11-17T09:05:30Z",
  "last_modified_time": "2026-11-17T09:40:02Z",
  "owner_email": "ana@contoso.com",
  "owner_name": "Ana Silva",
  "owner_object_id": "2046feea-040d-4a46-9e2b-91c2941bfa70",
  "owner_user_principal_name": "ana@contoso.com",
  "provider_name": "Azure Sentinel",
  "related_analytics_rule_ids": [
    "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/soc-rg/providers/Microsoft.OperationalInsights/workspaces/soc-workspace/providers/Microsoft.SecurityInsights/alertRules/fab3d2d4-747f-46a7-8ef0-9c0be8112bf7"
  ],
  "severity": "High",
  "status": "Active",
  "tactics": [
    "InitialAccess"
  ],
  "title": "Suspicious sign-in from an unfamiliar location",
  "url": "https://portal.azure.com/#asset/Microsoft_Azure_Security_Insights/Incident/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/soc-rg/providers/Microsoft.OperationalInsights/workspaces/soc-workspace/providers/Microsoft.SecurityInsights/incidents/73e01a99-5cd7-4139-a149-9f2736ff2ab5"
}
```

### List analytics rules

The analytics rules that raise alerts and incidents, and whether each is turned on.

**Inputs**

- Show (`state`, text): All rules, or only those turned on or off. One of: `all` (All rules), `enabled` (Turned on), `disabled` (Turned off). Default: `all`.
- Maximum results (`limit`, number): Return at most this many. From 1 to 1000. Default: `1000`.

**Outputs**

- `count` (number): How many are returned
- `enabled_count` (number): How many of them are turned on
- `rules` (list): The analytics rules
- `truncated` (true/false): Whether there were more than the maximum asked for

**Example output**

```json
{
  "count": 1,
  "enabled_count": 1,
  "rules": [
    {
      "description": "Ten or more failed sign-ins for one account in an hour.",
      "display_name": "Many failed sign-ins",
      "enabled": true,
      "id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
      "kind": "Scheduled",
      "last_modified_time": "2026-11-10T12:00:00Z",
      "query": "SigninLogs | where ResultType != 0 | summarize count() by UserPrincipalName",
      "query_frequency": "PT1H",
      "severity": "Medium",
      "tactics": [
        "CredentialAccess"
      ],
      "template_name": ""
    }
  ],
  "truncated": false
}
```

### List incident alerts

The alerts grouped into an incident, with what each found.

**Inputs**

- Incident (`incident_id`, text, required): The incident. Pick one of the 50 newest, or give its id, its number (such as #42) or its link from the Azure portal.

**Outputs**

- `alerts` (list): The incident's alerts
- `count` (number): How many are returned
- `incident_id` (text): The incident's id

**Example output**

```json
{
  "alerts": [
    {
      "alert_link": "",
      "alert_type": "UnfamiliarLocation",
      "compromised_entity": "ana@contoso.com",
      "confidence_level": "Unknown",
      "description": "A user signed in from a location not seen before.",
      "end_time": "2026-11-17T09:05:30Z",
      "id": "baa8a239-6fde-4ab7-a093-d09f7b75c58c",
      "name": "Sign-in from an unfamiliar location",
      "product_name": "Azure Sentinel",
      "provider_alert_id": "baa8a239-6fde-4ab7-a093-d09f7b75c58c",
      "remediation_steps": [
        "Reset the user's password."
      ],
      "severity": "High",
      "start_time": "2026-11-17T09:00:30Z",
      "status": "New",
      "tactics": [
        "InitialAccess"
      ],
      "time_generated": "2026-11-17T09:06:01Z",
      "vendor_name": "Microsoft"
    }
  ],
  "count": 1,
  "incident_id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5"
}
```

### List incident comments

An incident's comments, newest first.

**Inputs**

- Incident (`incident_id`, text, required): The incident. Pick one of the 50 newest, or give its id, its number (such as #42) or its link from the Azure portal.
- Maximum results (`limit`, number): Return at most this many. From 1 to 1000. Default: `50`.

**Outputs**

- `comments` (list): The comments, newest first
- `count` (number): How many are returned
- `incident_id` (text): The incident's id
- `truncated` (true/false): Whether there were more than the maximum asked for

**Example output**

```json
{
  "comments": [
    {
      "author_email": "",
      "author_name": "Lodol",
      "created_time": "2026-11-17T09:45:00Z",
      "id": "4bb36b7b-26ff-4d1c-9cbe-0d8ab3da0014",
      "last_modified_time": "2026-11-17T09:45:00Z",
      "message": "Reset the user's password and revoked their sessions."
    }
  ],
  "count": 1,
  "incident_id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
  "truncated": false
}
```

### List incident entities

The accounts, hosts, IP addresses, files and other entities an incident involves.

**Inputs**

- Incident (`incident_id`, text, required): The incident. Pick one of the 50 newest, or give its id, its number (such as #42) or its link from the Azure portal.

**Outputs**

- `count` (number): How many are returned
- `counts_by_kind` (object): How many of each kind, such as {"Account": 2}
- `entities` (list): What the incident involves
- `incident_id` (text): The incident's id

**Example output**

```json
{
  "count": 1,
  "counts_by_kind": {
    "Account": 1
  },
  "entities": [
    {
      "friendly_name": "ana",
      "id": "e1d3d618-e11f-478b-98e3-bb381539a8e1",
      "kind": "Account",
      "properties": {
        "accountName": "ana",
        "friendlyName": "ana",
        "upnSuffix": "contoso.com"
      }
    }
  ],
  "incident_id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5"
}
```

### List incident tasks

An incident's tasks, and how many are still to do.

**Inputs**

- Incident (`incident_id`, text, required): The incident. Pick one of the 50 newest, or give its id, its number (such as #42) or its link from the Azure portal.

**Outputs**

- `count` (number): How many are returned
- `incident_id` (text): The incident's id
- `open_count` (number): How many are still to do
- `tasks` (list): The incident's tasks

**Example output**

```json
{
  "count": 1,
  "incident_id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
  "open_count": 1,
  "tasks": [
    {
      "created_by": "Lodol",
      "created_time": "2026-11-17T09:46:00Z",
      "description": "Then revoke their sessions in Microsoft Entra ID.",
      "id": "6b0b3a16-3a7d-4d2c-9f55-5d0d4c1e7c11",
      "incident_id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
      "last_modified_by": "Lodol",
      "last_modified_time": "2026-11-17T09:46:00Z",
      "status": "New",
      "title": "Reset the user's password"
    }
  ]
}
```

### List incidents

Incidents in the workspace, newest first, filtered by status, severity and when they were created.

**Inputs**

- Status (`status`, list): Only incidents with these statuses. Leave empty for all. One or more of: `New`, `Active`, `Closed`.
- Severity (`severity`, list): Only incidents of these severities. Leave empty for all. One or more of: `High`, `Medium`, `Low`, `Informational`.
- Created after (`created_after`, date and time): Only incidents created at or after this time.
- Created before (`created_before`, date and time): Only incidents created at or before this time.
- Order (`order`, text): Newest or oldest first, by when they were created. One of: `newest` (Newest first), `oldest` (Oldest first). Default: `newest`.
- Maximum results (`limit`, number): Return at most this many. From 1 to 1000. Default: `50`.

**Outputs**

- `count` (number): How many are returned
- `incidents` (list): The incidents
- `truncated` (true/false): Whether there were more than the maximum asked for

**Example output**

```json
{
  "count": 1,
  "incidents": [
    {
      "alert_products": [
        "Azure Sentinel"
      ],
      "alerts_count": 2,
      "bookmarks_count": 0,
      "classification": "",
      "classification_comment": "",
      "classification_reason": "",
      "comments_count": 1,
      "created_time": "2026-11-17T09:15:30Z",
      "description": "Several failed sign-ins followed by a success.",
      "first_activity_time": "2026-11-17T09:00:30Z",
      "id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
      "incident_number": 42,
      "labels": [
        "phishing"
      ],
      "last_activity_time": "2026-11-17T09:05:30Z",
      "last_modified_time": "2026-11-17T09:40:02Z",
      "owner_email": "ana@contoso.com",
      "owner_name": "Ana Silva",
      "owner_object_id": "2046feea-040d-4a46-9e2b-91c2941bfa70",
      "owner_user_principal_name": "ana@contoso.com",
      "provider_name": "Azure Sentinel",
      "related_analytics_rule_ids": [
        "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/soc-rg/providers/Microsoft.OperationalInsights/workspaces/soc-workspace/providers/Microsoft.SecurityInsights/alertRules/fab3d2d4-747f-46a7-8ef0-9c0be8112bf7"
      ],
      "severity": "High",
      "status": "Active",
      "tactics": [
        "InitialAccess"
      ],
      "title": "Suspicious sign-in from an unfamiliar location",
      "url": "https://portal.azure.com/#asset/Microsoft_Azure_Security_Insights/Incident/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/soc-rg/providers/Microsoft.OperationalInsights/workspaces/soc-workspace/providers/Microsoft.SecurityInsights/incidents/73e01a99-5cd7-4139-a149-9f2736ff2ab5"
    }
  ],
  "truncated": false
}
```

### List watchlist items

The rows of a watchlist, each with its values by column.

**Inputs**

- Watchlist (`watchlist`, text, required): The watchlist. Pick one, or give its alias.
- Maximum results (`limit`, number): Return at most this many. From 1 to 1000. Default: `50`.

**Outputs**

- `count` (number): How many are returned
- `items` (list): The watchlist's items
- `truncated` (true/false): Whether there were more than the maximum asked for
- `watchlist` (text): The watchlist's alias

**Example output**

```json
{
  "count": 1,
  "items": [
    {
      "created_by": "Lodol",
      "created_time": "2026-11-17T08:05:00+00:00",
      "id": "82ba292c-dc97-4dfc-969d-d4dd9e666842",
      "updated_time": "2026-11-17T08:05:00+00:00",
      "values": {
        "IP address": "203.0.113.7",
        "Reason": "Password spraying"
      },
      "watchlist": "blocked_ips"
    }
  ],
  "truncated": false,
  "watchlist": "blocked_ips"
}
```

### List watchlists

The workspace's watchlists, with each one's search key column.

**Inputs**

- Maximum results (`limit`, number): Return at most this many. From 1 to 1000. Default: `50`.

**Outputs**

- `count` (number): How many are returned
- `truncated` (true/false): Whether there were more than the maximum asked for
- `watchlists` (list): The watchlists

**Example output**

```json
{
  "count": 1,
  "truncated": false,
  "watchlists": [
    {
      "alias": "blocked_ips",
      "created_by": "Lodol",
      "created_time": "2026-11-17T08:00:00+00:00",
      "description": "Addresses the firewall blocks.",
      "display_name": "Blocked IP addresses",
      "labels": [],
      "provider": "Lodol",
      "provisioning_state": "Succeeded",
      "search_key": "IP address",
      "source": "Lodol",
      "updated_time": "2026-11-17T08:00:00+00:00",
      "watchlist_id": "76d5a51f-ba1f-4038-9d22-59fda38dc017"
    }
  ]
}
```

### Run playbook on incident

Start a playbook (a Logic App with a Microsoft Sentinel incident trigger) on an incident. Sentinel starts it and the step does not wait for it to finish.

**Inputs**

- Incident (`incident_id`, text, required): The incident. Pick one of the 50 newest, or give its id, its number (such as #42) or its link from the Azure portal.
- Playbook (`playbook`, text, required): The playbook. Pick one, or give its resource id.

**Outputs**

- `incident_id` (text): The incident's id
- `playbook` (text): The playbook's (Logic App's) resource id
- `playbook_name` (text): The playbook's name
- `started` (true/false): Whether Sentinel started the playbook

**Example output**

```json
{
  "incident_id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
  "playbook": "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/soc-rg/providers/Microsoft.Logic/workflows/block-user",
  "playbook_name": "block-user",
  "started": true
}
```

### Search threat indicators

Find threat indicators by keyword, type, source and confidence, most recently changed first.

**Inputs**

- Keywords (`keywords`, list): Words or values to look for, such as an IP address.
- Indicator types (`pattern_types`, list): Only these kinds of indicator. Leave empty for all. One or more of: `ipv4-addr` (IPv4 address), `ipv6-addr` (IPv6 address), `domain-name` (Domain name), `url`, `email-addr` (Email address), `file` (File hash).
- Sources (`sources`, list): Only indicators from these sources, such as Lodol.
- Minimum confidence (`min_confidence`, number): Only indicators at least this confident (0 to 100). From 0 to 100.
- Include revoked (`include_disabled`, true/false): When on, revoked indicators are included. Default: `false`.
- Maximum results (`limit`, number): Return at most this many. From 1 to 1000. Default: `50`.

**Outputs**

- `count` (number): How many are returned
- `indicators` (list): The indicators, most recently changed first
- `truncated` (true/false): Whether there were more than the maximum asked for

**Example output**

```json
{
  "count": 1,
  "indicators": [
    {
      "confidence": 80,
      "created_time": "2026-11-17T09:50:00Z",
      "description": "Seen spraying passwords at our sign-in page.",
      "display_name": "Password spraying source",
      "external_id": "indicator--a2b6a95e-2108-4a38-bd49-ef95811bbcd7",
      "id": "180105c7-a28d-b1a2-4a78-234f6ec80fd6",
      "last_updated_time": "2026-11-17T09:50:00Z",
      "pattern": "[ipv4-addr:value = '203.0.113.7']",
      "pattern_type": "ipv4-addr",
      "revoked": false,
      "source": "Lodol",
      "tags": [
        "password-spray"
      ],
      "threat_types": [
        "malicious-activity"
      ],
      "valid_from": "2026-11-17T09:00:00Z",
      "valid_until": "2026-12-17T09:00:00Z"
    }
  ],
  "truncated": false
}
```

### Update incident

Change an incident's title, description, severity or status, assign or unassign it, or add and remove labels. Only what you set is changed. To close it, use 'Close incident'.

**Inputs**

- Incident (`incident_id`, text, required): The incident. Pick one of the 50 newest, or give its id, its number (such as #42) or its link from the Azure portal.
- Title (`title`, text): A new title.
- Description (`description`, text): A new description.
- Severity (`severity`, text): A new severity. Leave empty to keep it. One of: `High`, `Medium`, `Low`, `Informational`.
- Status (`status`, text): New or Active. Leave empty to keep it. Setting it on a closed incident reopens it. One of: `New`, `Active`.
- Owner (`owner`, text): Who to assign it to: their email or sign-in name, such as ana@contoso.com, or their Microsoft Entra object id.
- Unassign (`unassign`, true/false): When on, the incident is taken off its owner. Default: `false`.
- Add labels (`add_labels`, list): Labels to add. Labels it already has are kept.
- Remove labels (`remove_labels`, list): Labels to take off.

**Outputs**

- `alert_products` (list): The products that raised its alerts
- `alerts_count` (number): How many alerts it holds
- `bookmarks_count` (number): How many hunting bookmarks it holds
- `classification` (text): Why it was closed: TruePositive, BenignPositive, FalsePositive or Undetermined (empty while open)
- `classification_comment` (text): The comment left when it was closed
- `classification_reason` (text): The reason given with the classification, such as SuspiciousActivity
- `comments_count` (number): How many comments it has
- `created_time` (text): When it was created (ISO 8601, UTC)
- `description` (text): What the incident is about
- `first_activity_time` (text): When its first activity happened (ISO 8601, UTC)
- `id` (text): The incident's id, which every incident step takes
- `incident_number` (number): The number Sentinel shows, such as 42 for #42
- `labels` (list): Its labels (tags)
- `last_activity_time` (text): When its last activity happened (ISO 8601, UTC)
- `last_modified_time` (text): When it last changed (ISO 8601, UTC)
- `owner_email` (text): The email of the person it is assigned to
- `owner_name` (text): The name of the person it is assigned to
- `owner_object_id` (text): The Microsoft Entra object id of its owner
- `owner_user_principal_name` (text): The sign-in name of its owner
- `provider_name` (text): What created it, such as Azure Sentinel
- `related_analytics_rule_ids` (list): The analytics rules that raised it
- `severity` (text): High, Medium, Low or Informational
- `status` (text): New, Active or Closed
- `tactics` (list): The MITRE ATT&CK tactics involved
- `title` (text): The incident's title
- `url` (text): A link that opens it in the Azure portal

**Example output**

```json
{
  "alert_products": [
    "Azure Sentinel"
  ],
  "alerts_count": 2,
  "bookmarks_count": 0,
  "classification": "",
  "classification_comment": "",
  "classification_reason": "",
  "comments_count": 1,
  "created_time": "2026-11-17T09:15:30Z",
  "description": "Several failed sign-ins followed by a success.",
  "first_activity_time": "2026-11-17T09:00:30Z",
  "id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
  "incident_number": 42,
  "labels": [
    "phishing"
  ],
  "last_activity_time": "2026-11-17T09:05:30Z",
  "last_modified_time": "2026-11-17T09:40:02Z",
  "owner_email": "ana@contoso.com",
  "owner_name": "Ana Silva",
  "owner_object_id": "2046feea-040d-4a46-9e2b-91c2941bfa70",
  "owner_user_principal_name": "ana@contoso.com",
  "provider_name": "Azure Sentinel",
  "related_analytics_rule_ids": [
    "/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/soc-rg/providers/Microsoft.OperationalInsights/workspaces/soc-workspace/providers/Microsoft.SecurityInsights/alertRules/fab3d2d4-747f-46a7-8ef0-9c0be8112bf7"
  ],
  "severity": "High",
  "status": "Active",
  "tactics": [
    "InitialAccess"
  ],
  "title": "Suspicious sign-in from an unfamiliar location",
  "url": "https://portal.azure.com/#asset/Microsoft_Azure_Security_Insights/Incident/subscriptions/d0cfe6b2-9ac0-4464-9919-dccaee2e48c0/resourceGroups/soc-rg/providers/Microsoft.OperationalInsights/workspaces/soc-workspace/providers/Microsoft.SecurityInsights/incidents/73e01a99-5cd7-4139-a149-9f2736ff2ab5"
}
```

### Update incident task

Mark an incident's task done or to do, or change its wording.

**Inputs**

- Incident (`incident_id`, text, required): The incident. Pick one of the 50 newest, or give its id, its number (such as #42) or its link from the Azure portal.
- Task (`task_id`, text, required): The task. Pick one, or give its id.
- Status (`status`, text): Done or to do. Leave empty to keep it. One of: `New` (To do), `Completed` (Done).
- New title (`title`, text): New wording for the task.
- Details (`description`, text): New details for the task.

**Outputs**

- `created_by` (text): Who added it
- `created_time` (text): When it was added (ISO 8601, UTC)
- `description` (text): More about the task
- `id` (text): The task's id
- `incident_id` (text): The incident it belongs to
- `last_modified_by` (text): Who last changed it
- `last_modified_time` (text): When it last changed (ISO 8601, UTC)
- `status` (text): New (to do) or Completed (done)
- `title` (text): What to do

**Example output**

```json
{
  "created_by": "Lodol",
  "created_time": "2026-11-17T09:46:00Z",
  "description": "Then revoke their sessions in Microsoft Entra ID.",
  "id": "6b0b3a16-3a7d-4d2c-9f55-5d0d4c1e7c11",
  "incident_id": "73e01a99-5cd7-4139-a149-9f2736ff2ab5",
  "last_modified_by": "Lodol",
  "last_modified_time": "2026-11-17T09:46:00Z",
  "status": "Completed",
  "title": "Reset the user's password"
}
```
