Este producto no es compatible con el sitio Datadog seleccionado. ().
Esta página aún no está disponible en español. Estamos trabajando en su traducción.
Si tienes alguna pregunta o comentario sobre nuestro actual proyecto de traducción, no dudes en ponerte en contacto con nosotros.

Metadata

Id: 34664094-59e0-4524-b69f-deaa1a68cce3

Cloud Provider: azure

Framework: Terraform

Severity: Medium

Category: Best Practices

Learn More

Description

Defining a security contact email in the azurerm_security_center_contact resource is essential for ensuring that security alerts and notifications from Azure are sent to the correct personnel. If the email attribute is omitted, as shown below, important security incidents may go unnoticed, increasing the risk of delayed responses to threats:

resource "azurerm_security_center_contact" "insecure" {
  phone = "+1-555-555-5555"
  alert_notifications = true
  alerts_to_admins    = true
}

To address this, always specify the email attribute to ensure security alerts reach a monitored mailbox:

resource "azurerm_security_center_contact" "secure" {
  email = "contact@example.com"
  phone = "+1-555-555-5555"
  alert_notifications = true
  alerts_to_admins    = true
}

Compliant Code Examples

resource "azurerm_security_center_contact" "negative" {
  email = "contact@example.com"
  phone = "+1-555-555-5555"

  alert_notifications = true
  alerts_to_admins    = true
}

Non-Compliant Code Examples

resource "azurerm_security_center_contact" "positive" {
  phone = "+1-555-555-5555"

  alert_notifications = true
  alerts_to_admins    = true
}