hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.64k forks source link

Support for RecoveryServicesVaults replicationAlertSettings #23409

Open viewegchris opened 1 year ago

viewegchris commented 1 year ago

Is there an existing issue for this?

Community Note

Description

Azure Seite Recovery Vault provides the possibility to add mail responders for replication alerts. It seems to be a sub resource of Microsoft.RecoveryServices and the resource will be created implicitly (empty) on creation time of the recovery vault itself. For this reason only HTTP PUT operations are supported on ARM Template site. HTTP DELETE or HTTP POST will result in a internal server error (500).

New or Affected Resource(s)/Data Source(s)

azurerm_recovery_services_vault_replication_alert

Potential Terraform Configuration

resource "azurerm_recovery_services_vault_replication_alert" "replication_alert" {
  name              = "defaultAlertSetting" #Name has to be "defaultAlertSetting" custom names are not yet supported
  recovery_vault_id = module.asr_recovery_vault.replication_recovery_vault_id

  custom_email_addresses = [
     "test@test.com", "test2@test.ch"
  ]

  locale         = "en-US"
  send_to_owners = false #Seems to be a Enum only DoNotSend/Send are possible
}

References

https://learn.microsoft.com/en-us/azure/templates/microsoft.recoveryservices/vaults/replicationalertsettings?pivots=deployment-language-arm-template

rcskosir commented 1 year ago

@viewegchris Thank you for taking the time to open this feature request!