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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
descriptionstringThe alert description.
displayNamestringThe alert display name.
howToPreventstringThe ways to prevent the alert.
isConfigurablebooleanTrue if the alert configuration can be configured; false, otherwise.
isRemediatablebooleanTrue if the alert can be remediated; false, otherwise.
mitigationStepsstringThe methods to mitigate the alert.
scopestringThe alert scope.
securityImpactstringSecurity impact of the alert.
severityLevelstringSeverity level of the alert. Known values are: "Low", "Medium", and "High". (Low, Medium, High)
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_definition_idGet 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
alert_definition_idstringThe name of the alert definition to get. Required.
scopestringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples​

Get the specified alert definition.

SELECT
id,
name,
description,
displayName,
howToPrevent,
isConfigurable,
isRemediatable,
mitigationSteps,
scope,
securityImpact,
severityLevel,
systemData,
type
FROM azure.authorization.alert_definitions
WHERE scope = '{{ scope }}' -- required
AND alert_definition_id = '{{ alert_definition_id }}' -- required
;