diff --git a/modules/azure/logic_app_standard/main.tf b/modules/azure/logic_app_standard/main.tf index d2535d8a..35b04f8a 100644 --- a/modules/azure/logic_app_standard/main.tf +++ b/modules/azure/logic_app_standard/main.tf @@ -121,6 +121,8 @@ data "azurerm_monitor_diagnostic_categories" "diagnostic_categories" { } // Write logs and metrics to log analytics if specified +// Needs to be done once the deployment is finished, because updating Diagnostic Settings leads to a restart of the Logic App +// which causes the deployment to fail if it is not finished yet resource "azurerm_monitor_diagnostic_setting" "diagnostic_setting" { depends_on = [ null_resource.deploy