Skip to main content

alert_configurations

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

Overview

Namealert_configurations
TypeResource
Idazure.authorization.alert_configurations

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.
alertConfigurationTypestringThe alert configuration type. Required. Default value is None.
alertDefinitionobjectThe alert definition.
alertDefinitionIdstringThe alert definition ID.
isEnabledbooleanTrue if the alert is enabled, false will disable the scanning for the specific alert.
scopestringThe alert scope.
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_idGet the specified alert configuration.
list_for_scopeselectscopeGets alert configurations for a resource scope.
updateupdatescope, alert_idUpdate an alert configuration.

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 configuration to get. Required.
scopestringThe fully qualified Azure Resource manager identifier of the resource. Required.

SELECT examples

Get the specified alert configuration.

SELECT
id,
name,
alertConfigurationType,
alertDefinition,
alertDefinitionId,
isEnabled,
scope,
systemData,
type
FROM azure.authorization.alert_configurations
WHERE scope = '{{ scope }}' -- required
AND alert_id = '{{ alert_id }}' -- required
;

UPDATE examples

Update an alert configuration.

UPDATE azure.authorization.alert_configurations
SET
properties = '{{ properties }}'
WHERE
scope = '{{ scope }}' --required
AND alert_id = '{{ alert_id }}' --required;