Skip to main content

alert_definitions

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

Overview

Namealert_definitions
TypeResource
Idazure.authorization.alert_definitions

Fields

The following fields are returned by SELECT queries:

OK - Returns information about the alert definition.

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, alertDefinitionIdGet the specified alert definition.
list_for_scopeselectscopeGets alert definitions 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
alertDefinitionIdstringThe name of the alert definition to get.
scopestringThe scope of the alert definition.

SELECT examples

Get the specified alert definition.

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