-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Recovery Services Vault notification preferences #5423
Comments
I'd also be interested in this feature, but support for it might be tricky. Based on configuring this in the Portal, the endpoint for backup notifications appears to be the following:
However, I'm unable to find any documentation on this endpoint in the API reference docs and no equivalent client in the azure-sdk-for-go. |
Could this be what we need? https://docs.microsoft.com/en-us/rest/api/site-recovery/replicationalertsettings/create |
That's specific for Azure Site Recovery replication alerts and doesn't cover backup. Configuring that is equivalent to setting "Email notifications" on "Site Recovery events" in the Portal. Backup notifications are set in the Portal at "Backup Alerts" > "Configure notifications" and use the seemingly undocumented endpoint I described above if you look in the browser network calls. Your initial issue sounded like you were wanting backup notifications specifically. Regardless, I would love it if Terraform supported both types. Building off your example, a potential configuration could be: resource "azurerm_recovery_services_vault" "rsv" {
name = "example-rsv"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
sku = "Standard"
replication_notifications = {
email_subscription_owner = true
custom_emails = [
"admin1@example.com",
"admin2@example.com"
]
locale = "en-US"
}
backup_notifications = {
recipient_emails = [
"admin2@example.com"
]
severities = [
"Critical",
"Warning",
"Information"
]
frequency = "Hourly" # or "Immediate"
}
} |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I agree that adding support for backup alerting settings is necessary. Due to the relationships between vaults, regions, and subscriptions, it's necessary to deploy multiple vaults to back up "one" organization. This results in a whole lot of manual configuration on a vault-by-vault basis. Similarly, enabling the setting of diagnostic logging in TF would be helpful. As it stands, we can only automate 80% of what's important to us about vault configuration due to these limitations. |
So my understanding is that the metrics alert is the way to go forward here, you can add them with tf already, a backup alert for failing backups should look something like this:
|
Community Note
Description
It's great that we have the resources to create Recovery Services Vaults, protection policies, and VM protection, however, arguably just as important as the backups themselves are the email notification preferences which let us know when backups aren't running or have been deleted.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: