Skip to content

Commit

Permalink
fix: add mg diag settings location, fixes #939
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-FFFFFF committed Jun 7, 2024
1 parent 1a56469 commit 1c9f86c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources.management_groups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ resource "azurerm_management_group" "level_6" {
}

# This will deploy Diagnostic Settings for the Management Groups
# when the input variable deploy_diagnostics_for_mg is true
# when the input variable deploy_diagnostics_for_mg is true
resource "azapi_resource" "diag_settings" {
for_each = local.azapi_mg_diagnostics
type = "Microsoft.Insights/diagnosticSettings@2021-05-01-preview"
name = "toLA"
location = local.default_location
parent_id = each.key
body = jsonencode({
properties = {
Expand Down

0 comments on commit 1c9f86c

Please sign in to comment.