Manages the subscription's Security Center Contact.
resource "azurerm_security_center_contact" "example" {
name = "contact"
email = "contact@example.com"
phone = "+1-555-555-5555"
alert_notifications = true
alerts_to_admins = true
}
The following arguments are supported:
alert_notifications
- (Required) Whether to send security alerts notifications to the security contact.
alerts_to_admins
- (Required) Whether to send security alerts notifications to subscription admins.
email
- (Required) The email of the Security Center Contact.
name
- (Optional) The name of the Security Center Contact. Defaults to default1
.
phone
- (Optional) The phone number of the Security Center Contact.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The Security Center Contact ID.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 60 minutes) Used when creating the Security Center Contact.update
- (Defaults to 60 minutes) Used when updating the Security Center Contact.read
- (Defaults to 5 minutes) Used when retrieving the Security Center Contact.delete
- (Defaults to 60 minutes) Used when deleting the Security Center Contact.The contact can be imported using the resource id
, e.g.
terraform import azurerm_security_center_contact.example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/securityContacts/default1