Skip to main content

alert_rule_templates

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

Overview

Namealert_rule_templates
TypeResource
Idazure.sentinel.alert_rule_templates

Fields

NameDatatypeDescription
idstringFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
namestringThe name of the resource
kindstringThe kind of the alert rule
systemDataobjectMetadata pertaining to creation and last modification of the resource.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTalertRuleTemplateId, resourceGroupName, subscriptionId, workspaceNameGets the alert rule template.
listSELECTresourceGroupName, subscriptionId, workspaceNameGets all alert rule templates.

SELECT examples

Gets all alert rule templates.

SELECT
id,
name,
kind,
systemData,
type
FROM azure.sentinel.alert_rule_templates
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';