Skip to content

Commit

Permalink
Merge pull request #1815 from gevraud/oms_agent
Browse files Browse the repository at this point in the history
Fix oms add-on
  • Loading branch information
arnaudlh authored Oct 10, 2023
2 parents 15a1ffc + 871766f commit 926372a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/compute/aks/aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ resource "azurerm_kubernetes_cluster" "aks" {
http_application_routing_enabled = can(var.settings.addon_profile.http_application_routing) || can(var.settings.http_application_routing_enabled) == false ? try(var.settings.addon_profile.http_application_routing.0.enabled, null) : var.settings.http_application_routing_enabled

dynamic "oms_agent" {
for_each = try(var.settings.oms_agent[*], var.settings.oms_agent[*], {})
for_each = try(var.settings.addon_profile.oms_agent[*], var.settings.oms_agent[*], {})

content {
log_analytics_workspace_id = can(oms_agent.value.log_analytics_workspace_id) ? oms_agent.value.log_analytics_workspace_id : var.diagnostics.log_analytics[oms_agent.value.log_analytics_key].id
Expand Down

0 comments on commit 926372a

Please sign in to comment.