AZU009 - 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" "bad_example" {
    addon_profile {}
}

Secure Example

The following example will pass the AZU009 check.

resource "azurerm_kubernetes_cluster" "good_example" {
    addon_profile {
		oms_agent {
			enabled = true
		}
	}
}