Ensure AKS logging to Azure Monitoring is Configured
Explanation
Ensure AKS logging to Azure Monitoring is configured for containers to monitor the performance of workloads.
Insecure Example
The following example will fail the AZU009 check.
resource "azurerm_kubernetes_cluster" "my-aks-cluster" {
addon_profile {}
}
Secure Example
The following example will pass the AZU009 check.
resource "azurerm_kubernetes_cluster" "my-aks-cluster" {
addon_profile {
oms_agent {
enabled = true
}
}
}