From 4b27cb277f794ba842cfbf22bd72da115d42c99f Mon Sep 17 00:00:00 2001 From: Sarah Gibson Date: Wed, 12 Jun 2024 14:35:28 +0100 Subject: [PATCH] Don't change the name of the alert based on value as it forces a recreation --- terraform/azure/pagerduty.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terraform/azure/pagerduty.tf b/terraform/azure/pagerduty.tf index e6e44accd..45ae4bbff 100644 --- a/terraform/azure/pagerduty.tf +++ b/terraform/azure/pagerduty.tf @@ -20,7 +20,8 @@ resource "azurerm_monitor_action_group" "alerts" { } resource "azurerm_monitor_metric_alert" "disk_space_full_alert" { - name = "Used disk space greater than ${local.storage_threshold} GB on ${var.subscription_id}" + # Changing the name forces a recreation every time we apply + name = "Used disk space approaching capacity on Azure Subscription ${var.subscription_id}" resource_group_name = var.resourcegroup_name scopes = [azurerm_storage_account.homes.id] description = "Action will be triggered when used disk space is greater than ${local.storage_threshold} GB."