Interview Prep/Azure/AKS and ACR Errors

Container Insights shows no data for a new cluster.

AdvancedTroubleshootingAKS and ACR Errors
Answer

Likely causes → Monitoring add-on not enabled or DCR/DCR association missing (common with Terraform when msi_auth_for_monitoring_enabled = true but no DCR), ama-logs pods failing, or network blocked to Azure Monitor endpoints.

Diagnose →

kubectl -n kube-system get pods | grep ama-logs
kubectl -n kube-system logs -l rsName=ama-logs-rs --tail 50
az monitor data-collection rule association list --resource <aksId> -o table

Fix → Create the DCR with Microsoft-ContainerInsights-Group-Default stream and associate it with the cluster; allow egress to *.ods.opinsights.azure.com, *.ingest.monitor.azure.com or use AMPLS.

Prevent → Include DCR + association in the AKS module.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and ACR Errors