Azure Monitor Action Rule Action Group
This page shows how to write Terraform and Azure Resource Manager for Monitor Action Rule Action Group and write them securely.
azurerm_monitor_action_rule_action_group (Terraform)
The Action Rule Action Group in Monitor can be configured in Terraform with the resource name azurerm_monitor_action_rule_action_group
. The following sections describe 4 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_monitor_action_rule_action_group" "marag" {
name = var.name
#resource_group_name = azurerm_resource_group.rg.name
resource_group_name = var.resource_group_name
action_group_id = var.action_group_id
resource "azurerm_monitor_action_rule_action_group" "example" {
name = var.name
resource_group_name = module.resource_group.azurerm_resource_group.example.name
action_group_id = module.action_group.azurerm_monitor_action_group.test.id
scope {
resource "azurerm_monitor_action_rule_action_group" "example" {
name = "example-amar"
resource_group_name = azurerm_resource_group.example.name
action_group_id = azurerm_monitor_action_group.example.id
scope {
resource "azurerm_monitor_action_rule_action_group" "psqlruleactiongrp" {
name = var.azurerm_monitor_action_rule_action_group_name
resource_group_name = var.resource_group_name
action_group_id = azurerm_monitor_action_group.psqlactiongrp.id
scope {
Parameters
-
action_group_id
required - string -
description
optional - string -
enabled
optional - bool -
id
optional computed - string -
name
required - string -
resource_group_name
required - string -
tags
optional - map from string to string -
condition
list block-
alert_context
list block -
alert_rule_id
list block -
description
list block -
monitor
list block -
monitor_service
list block -
severity
list block -
target_resource_type
list block
-
-
scope
list block-
resource_ids
required - set of string -
type
required - string
-
-
timeouts
single block
Explanation in Terraform Registry
Manages an Monitor Action Rule which type is action group.
Tips: Best Practices for The Other Azure Monitor Resources
In addition to the azurerm_monitor_log_profile, Azure Monitor has the other resources that should be configured for security reasons. Please check some examples of those resources and precautions.
azurerm_monitor_log_profile
Ensure to enable the activity retention log
It is better to enable the activity retention log to ensure that all the information required for an effective investigation is still available.
Microsoft.AlertsManagement/actionRules (Azure Resource Manager)
The actionRules in Microsoft.AlertsManagement can be configured in Azure Resource Manager with the resource name Microsoft.AlertsManagement/actionRules
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Frequently asked questions
What is Azure Monitor Action Rule Action Group?
Azure Monitor Action Rule Action Group is a resource for Monitor of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Monitor Action Rule Action Group?
For Terraform, the sweet-aus/hello-world, VentsislavDinev/en_sample and AlanCLo/play_terraform source code examples are useful. See the Terraform Example section for further details.