Skip to main content

alert_rule_templates

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

Overview

Namealert_rule_templates
TypeResource
Idazure.security_insight.alert_rule_templates

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.
kindstringMetadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value. Required. Known values are: "Scheduled", "MicrosoftSecurityIncidentCreation", "Fusion", "MLBehaviorAnalytics", "ThreatIntelligence", and "NRT".
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
getselectresource_group_name, workspace_name, alert_rule_template_id, subscription_idGets the alert rule template.
listselectresource_group_name, workspace_name, subscription_idGets all alert rule templates.

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_rule_template_idstringAlert rule template ID. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the monitor workspace. Required.

SELECT examples

Gets the alert rule template.

SELECT
id,
name,
kind,
systemData,
type
FROM azure.security_insight.alert_rule_templates
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND alert_rule_template_id = '{{ alert_rule_template_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;