Skip to content

Support for setting msi_auth_for_monitoring_enabled in oms_agent #447

@admincasper

Description

@admincasper

Is there an existing issue for this?

  • I have searched the existing issues

Description

See https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster

I need this change to set data collection parameters in AKS following hashicorp/terraform-provider-azurerm#21406.

I appreciate the work you guys are doing!

New or Affected Resource(s)/Data Source(s)

azurerm_kubernetes_cluster

Potential Terraform Configuration

# module.aks main.tf   
  dynamic "oms_agent" {
    for_each = var.log_analytics_workspace_enabled ? ["oms_agent"] : []

    content {
      log_analytics_workspace_id      = local.log_analytics_workspace.id
      msi_auth_for_monitoring_enabled = var.msi_auth_for_monitoring_enabled
    }
  }

# variables.tf
variable "msi_auth_for_monitoring_enabled" {
  type        = bool
  default     = false
  description = "(Optional) Is managed identity authentication for monitoring enabled? Defaults to `false`"
}

References

See PR: #446

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions