Skip to main content

alert_incidents

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

Overview

Namealert_incidents
TypeResource
Idazure.authorization.alert_incidents

Fields

The following fields are returned by SELECT queries:

OK - Returns information about the alert incident.

NameDatatypeDescription
idstringThe alert incident ID.
namestringThe alert incident name.
propertiesobjectAlert incident properties.
typestringThe alert incident type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, alertId, alertIncidentIdGet the specified alert incident.
list_for_scopeselectscope, alertIdGets alert incidents for a resource scope.
remediateexecscope, alertId, alertIncidentIdRemediate an alert 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
alertIdstringThe name of the alert.
alertIncidentIdstringThe name of the alert incident to remediate.
scopestringThe scope of the alert incident.

SELECT examples

Get the specified alert incident.

SELECT
id,
name,
properties,
type
FROM azure.authorization.alert_incidents
WHERE scope = '{{ scope }}' -- required
AND alertId = '{{ alertId }}' -- required
AND alertIncidentId = '{{ alertIncidentId }}' -- required
;

Lifecycle Methods

Remediate an alert incident.

EXEC azure.authorization.alert_incidents.remediate 
@scope='{{ scope }}' --required,
@alertId='{{ alertId }}' --required,
@alertIncidentId='{{ alertIncidentId }}' --required
;