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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
alertIncidentTypestringThe alert incident type. Required. Default value is None.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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
getselectscope, alert_id, alert_incident_idGet the specified alert incident.
list_for_scopeselectscope, alert_idGets alert incidents for a resource scope.
remediateexecscope, alert_id, alert_incident_idRemediate 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
alert_idstringThe name of the alert to get. Required.
alert_incident_idstringThe name of the alert incident to get. Required.
scopestringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples

Get the specified alert incident.

SELECT
id,
name,
alertIncidentType,
systemData,
type
FROM azure.authorization.alert_incidents
WHERE scope = '{{ scope }}' -- required
AND alert_id = '{{ alert_id }}' -- required
AND alert_incident_id = '{{ alert_incident_id }}' -- required
;

Lifecycle Methods

Remediate an alert incident.

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