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.
More on AKS and ACR Errors
Pods show `ImagePullBackOff` with `failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://acrshop.azurecr.io/oauth2/token?...: 401 Unauthorized`.Beginner`Failed to pull image "acrshop.azurecr.io/shop/web:v3": ... manifest unknown` or `not found`.Beginner`ImagePullBackOff` with `dial tcp: lookup acrshop.azurecr.io on 168.63.129.16:53: no such host` or connection timeouts to the registry.Advanced`exec /usr/local/bin/python: exec format error` in pod logs right after deploying a new image.BeginnerPods are `Pending`: `0/3 nodes are available: 3 Insufficient cpu. preemption: 0/3 nodes are available: 3 No preemption victims found for incoming pod.`BeginnerCluster autoscaler events show `pod didn't trigger scale-up: 1 max node group size reached` or `NotTriggerScaleUp`.Intermediate