Skip to main content

alerts

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

Overview

Namealerts
TypeResource
Idazure.authorization.alerts

Fields

The following fields are returned by SELECT queries:

OK - Returns information about the alert.

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, alertIdGet the specified alert.
list_for_scopeselectscopeGets alerts for a resource scope.
updateupdatescope, alertIdUpdate an alert.
refreshexecscope, alertIdRefresh an alert.
refresh_allexecscopeRefresh all alerts for a resource scope.

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 to refresh.
scopestringThe scope of the alert.

SELECT examples

Get the specified alert.

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

UPDATE examples

Update an alert.

UPDATE azure.authorization.alerts
SET
data__properties = '{{ properties }}'
WHERE
scope = '{{ scope }}' --required
AND alertId = '{{ alertId }}' --required;

Lifecycle Methods

Refresh an alert.

EXEC azure.authorization.alerts.refresh 
@scope='{{ scope }}' --required,
@alertId='{{ alertId }}' --required
;