Skip to content

Commit 83f3fb0

Browse files
committed
Create 500 error alert
1 parent e74551f commit 83f3fb0

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

infrastructure/bootstrap/hub.bicep

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
targetScope = 'subscription'
2020

21-
// param devopsInfrastructureId string
2221
param devopsSubnetAddressPrefix string
2322
param privateEndpointSubnetAddressPrefix string
2423
param hubType string // live / nonlive

infrastructure/modules/container-apps/alerts.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resource "azurerm_monitor_scheduled_query_rules_alert_v2" "500_error_alert" {
1+
resource "azurerm_monitor_scheduled_query_rules_alert_v2" "five_hundred_error_alert" {
22
count = var.enable_alerting ? 1 : 0
33

44
auto_mitigation_enabled = false
@@ -8,7 +8,7 @@ resource "azurerm_monitor_scheduled_query_rules_alert_v2" "500_error_alert" {
88
location = var.region
99
name = "${var.app_short_name}-500-error-alert"
1010
resource_group_name = azurerm_resource_group.main.name
11-
scopes = [var.log_analytics_workspace_id]
11+
scopes = [var.action_group_id]
1212
severity = 2
1313
skip_query_validation = false
1414
window_duration = "PT5M"

0 commit comments

Comments
 (0)