Skip to main content

incidents

Creates, updates, deletes, gets or lists an incidents resource.

Overview

Nameincidents
TypeResource
Idazure.security_insight.incidents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
additionalDataobjectAdditional data on the incident.
classificationstringThe reason the incident was closed. Known values are: "Undetermined", "TruePositive", "BenignPositive", and "FalsePositive". (Undetermined, TruePositive, BenignPositive, FalsePositive)
classificationCommentstringDescribes the reason the incident was closed.
classificationReasonstringThe classification reason the incident was closed with. Known values are: "SuspiciousActivity", "SuspiciousButExpected", "IncorrectAlertLogic", and "InaccurateData". (SuspiciousActivity, SuspiciousButExpected, IncorrectAlertLogic, InaccurateData)
createdTimeUtcstring (date-time)The time the incident was created.
descriptionstringThe description of the incident.
etagstringEtag of the azure resource.
firstActivityTimeUtcstring (date-time)The time of the first activity in the incident.
incidentNumberintegerA sequential number.
incidentUrlstringThe deep-link url to the incident in Azure portal.
labelsarrayList of labels relevant to this incident.
lastActivityTimeUtcstring (date-time)The time of the last activity in the incident.
lastModifiedTimeUtcstring (date-time)The last time the incident was updated.
ownerobjectDescribes a user that the incident is assigned to.
providerIncidentIdstringThe incident ID assigned by the incident provider.
providerNamestringThe name of the source provider that generated the incident.
relatedAnalyticRuleIdsarrayList of resource ids of Analytic rules related to the incident.
severitystringThe severity of the incident. Required. Known values are: "High", "Medium", "Low", and "Informational". (High, Medium, Low, Informational)
statusstringThe status of the incident. Required. Known values are: "New", "Active", and "Closed". (New, Active, Closed)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
teamInformationobjectDescribes a team for the incident.
titlestringThe title of the incident. Required.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, incident_id, subscription_idGets a given incident.
listselectresource_group_name, workspace_name, subscription_id$filter, $orderby, $top, $skipTokenGets all incidents.
create_or_updateinsertresource_group_name, workspace_name, incident_id, subscription_idCreates or updates an incident.
create_or_updatereplaceresource_group_name, workspace_name, incident_id, subscription_idCreates or updates an incident.
deletedeleteresource_group_name, workspace_name, incident_id, subscription_idDeletes a given incident.
list_alertsexecresource_group_name, workspace_name, incident_id, subscription_idGets all alerts for an incident.
list_bookmarksexecresource_group_name, workspace_name, incident_id, subscription_idGets all bookmarks for an incident.
list_entitiesexecresource_group_name, workspace_name, incident_id, subscription_idGets all entities for an incident.
run_playbookexecresource_group_name, workspace_name, incident_identifier, subscription_id, logicAppsResourceIdTriggers playbook on a specific incident.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
incident_idstringIncident ID. Required.
incident_identifierstringThe incident identifier. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.
$filterstringFilters the results, based on a Boolean condition. Optional. Default value is None.
$orderbystringSorts the results. Optional. Default value is None.
$skipTokenstringSkiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. Optional. Default value is None.
$topintegerReturns only the first n results. Optional. Default value is None.

SELECT examples

Gets a given incident.

SELECT
id,
name,
additionalData,
classification,
classificationComment,
classificationReason,
createdTimeUtc,
description,
etag,
firstActivityTimeUtc,
incidentNumber,
incidentUrl,
labels,
lastActivityTimeUtc,
lastModifiedTimeUtc,
owner,
providerIncidentId,
providerName,
relatedAnalyticRuleIds,
severity,
status,
systemData,
teamInformation,
title,
type
FROM azure.security_insight.incidents
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND incident_id = '{{ incident_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates an incident.

INSERT INTO azure.security_insight.incidents (
properties,
etag,
resource_group_name,
workspace_name,
incident_id,
subscription_id
)
SELECT
'{{ properties }}',
'{{ etag }}',
'{{ resource_group_name }}',
'{{ workspace_name }}',
'{{ incident_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;

REPLACE examples

Creates or updates an incident.

REPLACE azure.security_insight.incidents
SET
properties = '{{ properties }}',
etag = '{{ etag }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND incident_id = '{{ incident_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
type;

DELETE examples

Deletes a given incident.

DELETE FROM azure.security_insight.incidents
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND workspace_name = '{{ workspace_name }}' --required
AND incident_id = '{{ incident_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Gets all alerts for an incident.

EXEC azure.security_insight.incidents.list_alerts 
@resource_group_name='{{ resource_group_name }}' --required,
@workspace_name='{{ workspace_name }}' --required,
@incident_id='{{ incident_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;