Skip to main content

automation_rules

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

Overview

Nameautomation_rules
TypeResource
Idazure.sentinel.automation_rules

Fields

NameDatatypeDescription
actionstextfield from the properties object
automationRuleIdtextfield from the properties object
created_bytextfield from the properties object
created_time_utctextfield from the properties object
display_nametextfield from the properties object
etagtextEtag of the azure resource
last_modified_bytextfield from the properties object
last_modified_time_utctextfield from the properties object
ordertextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
triggering_logictextfield from the properties object
workspaceNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationRuleId, resourceGroupName, subscriptionId, workspaceNameGets the automation rule.
listSELECTresourceGroupName, subscriptionId, workspaceNameGets all automation rules.
create_or_updateINSERTautomationRuleId, resourceGroupName, subscriptionId, workspaceName, data__propertiesCreates or updates the automation rule.
deleteDELETEautomationRuleId, resourceGroupName, subscriptionId, workspaceNameDelete the automation rule.

SELECT examples

Gets all automation rules.

SELECT
actions,
automationRuleId,
created_by,
created_time_utc,
display_name,
etag,
last_modified_by,
last_modified_time_utc,
order,
resourceGroupName,
subscriptionId,
triggering_logic,
workspaceName
FROM azure.sentinel.vw_automation_rules
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';

INSERT example

Use the following StackQL query and manifest file to create a new automation_rules resource.

/*+ create */
INSERT INTO azure.sentinel.automation_rules (
automationRuleId,
resourceGroupName,
subscriptionId,
workspaceName,
data__properties,
etag,
properties
)
SELECT
'{{ automationRuleId }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ workspaceName }}',
'{{ data__properties }}',
'{{ etag }}',
'{{ properties }}'
;

DELETE example

Deletes the specified automation_rules resource.

/*+ delete */
DELETE FROM azure.sentinel.automation_rules
WHERE automationRuleId = '{{ automationRuleId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceName = '{{ workspaceName }}';