Monitor and troubleshoot AKS and Container Apps
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing Developing AI Cloud Solutions on Azure premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- Two records: what the platform did, what your code said
- Read the pod's events before its logs
- Reading a CrashLoopBackOff to its root cause
- Which probe failed decides what you see
- Diagnosing a blocked call from inside the pod
- Container insights: evidence after the pod is gone
- Container Apps: streaming the two log types live
- Container Apps: querying the stored logs
- Exam-pattern recognition
The two records, and where each one lives per platform
| What you need | AKS | Azure Container Apps |
|---|---|---|
| Platform record, live | kubectl describe pod, kubectl get events | az containerapp logs show --type system; az containerapp env logs show |
| Container output, live | kubectl logs -f, kubectl logs --previous | az containerapp logs show --type console --follow |
| Platform record, stored | KubeEvents table (Container insights) | ContainerAppSystemLogs_CL table |
| Container output, stored | ContainerLogV2 table (Container insights) | ContainerAppConsoleLogs_CL table |
| Shell inside a running container | kubectl exec -it <pod> -- <command> | az containerapp exec |
| What storing requires | Container insights enabled on the cluster | A logs destination other than Don't save logs |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- Debug Running Pods
- Application logging in Azure Container Apps
- Pod Lifecycle
- Debug Pods
- Troubleshoot OOMKilled errors in AKS clusters
- Resource Management for Pods and Containers
- kubectl logs
- Liveness, Readiness, and Startup Probes
- Configure Liveness, Readiness and Startup Probes
- Health probes in Azure Container Apps
- Connect to a container console in Azure Container Apps
- Network Policies
- Secure pod traffic with network policies in AKS
- Monitor Azure Kubernetes Service (AKS)
- Query container logs in Azure Monitor
- View log streams in Azure Container Apps
- Log storage and monitoring options in Azure Container Apps
- Monitor logs in Azure Container Apps with Log Analytics