Azure Sentinel Alert Rule Scheduled
This page shows how to write Terraform and Azure Resource Manager for Sentinel Alert Rule Scheduled and write them securely.
azurerm_sentinel_alert_rule_scheduled (Terraform)
The Alert Rule Scheduled in Sentinel can be configured in Terraform with the resource name azurerm_sentinel_alert_rule_scheduled. The following sections describe 1 example of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_sentinel_alert_rule_scheduled" "schedule_01" {
name = var.name
log_analytics_workspace_id = azurerm_log_analytics_solution.solution_sentine_01.workspace_resource_id
display_name = var.display_name
severity = var.severity
query = <<QUERY
Parameters
-
alert_rule_template_guidoptional - string -
descriptionoptional - string -
display_namerequired - string -
enabledoptional - bool -
idoptional computed - string -
log_analytics_workspace_idrequired - string -
namerequired - string -
queryrequired - string -
query_frequencyoptional - string -
query_periodoptional - string -
severityrequired - string -
suppression_durationoptional - string -
suppression_enabledoptional - bool -
tacticsoptional - set of string -
trigger_operatoroptional - string -
trigger_thresholdoptional - number -
event_groupinglist block-
aggregation_methodrequired - string
-
-
incident_configurationlist block-
create_incidentrequired - bool -
groupinglist block-
enabledoptional - bool -
entity_matching_methodoptional - string -
group_byoptional - set of string -
lookback_durationoptional - string -
reopen_closed_incidentsoptional - bool
-
-
-
timeoutssingle block
Explanation in Terraform Registry
Manages a Sentinel Scheduled Alert Rule.
Microsoft.OperationalInsights/workspaces (Azure Resource Manager)
The workspaces in Microsoft.OperationalInsights can be configured in Azure Resource Manager with the resource name Microsoft.OperationalInsights/workspaces. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookSourceId": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
{
"contentVersion": "1.0.0.0",
"parameters": {
"workbookDisplayName": {
"type": "string",
Parameters
apiVersionrequired - stringeTagoptional - stringThe ETag of the workspace.
locationrequired - stringThe geo-location where the resource lives
namerequired - stringThe name of the workspace.
propertiesrequiredfeaturesoptionaladditionalPropertiesoptional - objectUnmatched properties from the message are deserialized this collection
clusterResourceIdoptional - stringDedicated LA cluster resourceId that is linked to the workspaces.
disableLocalAuthoptional - booleanDisable Non-AAD based Auth.
enableDataExportoptional - booleanFlag that indicate if data should be exported.
enableLogAccessUsingOnlyResourcePermissionsoptional - booleanFlag that indicate which permission to use - resource or workspace or both.
immediatePurgeDataOn30Daysoptional - booleanFlag that describes if we want to remove the data after 30 days.
forceCmkForQueryoptional - booleanIndicates whether customer managed storage is mandatory for query management.
provisioningStateoptional - stringThe provisioning state of the workspace.
publicNetworkAccessForIngestionoptional - stringThe network access type for accessing Log Analytics ingestion.
publicNetworkAccessForQueryoptional - stringThe network access type for accessing Log Analytics query.
retentionInDaysoptional - integerThe workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details.
skuoptionalcapacityReservationLeveloptional - integerThe capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.
namerequired - stringThe name of the SKU.
workspaceCappingoptionaldailyQuotaGboptional - numberThe workspace daily quota for ingestion.
tagsoptional - stringResource tags.
typerequired - string
Frequently asked questions
What is Azure Sentinel Alert Rule Scheduled?
Azure Sentinel Alert Rule Scheduled is a resource for Sentinel of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Sentinel Alert Rule Scheduled?
For Terraform, the AnikG-Org/devops-practice source code example is useful. See the Terraform Example section for further details.
For Azure Resource Manager, the pkhabazi/sentineldevops, ObjectivityLtd/jmeter_simple_test and ObjectivityLtd/jmeter_simple_test source code examples are useful. See the Azure Resource Manager Example section for further details.