diff --git a/internal/services/monitor/monitor_metric_alert_resource.go b/internal/services/monitor/monitor_metric_alert_resource.go index 22bff1e875e0..93c0919d7fa0 100644 --- a/internal/services/monitor/monitor_metric_alert_resource.go +++ b/internal/services/monitor/monitor_metric_alert_resource.go @@ -430,7 +430,7 @@ func resourceMonitorMetricAlertCreateUpdate(d *pluginsdk.ResourceData, meta inte if existing.Model == nil || existing.Model.Properties.Criteria == nil { return fmt.Errorf("unexpected nil properties of Monitor %s", id) } - _, isLegacy = existing.Model.Properties.Criteria.(metricalerts.MetricAlertMultipleResourceMultipleMetricCriteria) + _, isLegacy = existing.Model.Properties.Criteria.(metricalerts.MetricAlertSingleResourceMultipleMetricCriteria) }