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

modulemain.tf#L1
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

main.tf#L1
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 {
main.tf#L16
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 {
main.tf#L17
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 {

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

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.

risk-label

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.

Review your Azure Monitor settings

In addition to the above, there are other security points you should be aware of making sure that your .tf files are protected in Shisho Cloud.

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.