Home › Studies › AI-200 › Containers › AKS Deployments & Troubleshooting

AKS Deployments & Troubleshooting

Manifests with kubectl apply · node pools · Services and ingress · ACR pull · scaling · events and logs · egress and Container Apps troubleshooting

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Deploy with manifest files

A Kubernetes manifest file defines a cluster's desired state, such as which container images to run. You deploy it with kubectl apply and the name of your YAML manifest.

StepCommand or setting
Download credentials and configure kubectlaz aks get-credentials --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME
Add a user mode node poolaz aks nodepool add with --mode User
Deploy the manifestkubectl apply -f aks-store-quickstart.yaml
Select the user node pool in the pod templatekubernetes.azure.com/mode: user in the nodeSelector
Check where the pods runkubectl get pods -o wide
Watch a Service get its public IPkubectl get service store-front --watch

Cluster building blocks

ItemWhat the page says
System node poolHosts critical system pods, such as CoreDNS and konnectivity-agent
User node poolHosts your application pods
PodA group of one or more containers that share the same network and storage resources
default namespaceLets you start using cluster resources without creating a new namespace
kube-system namespaceUsed by Kubernetes to manage cluster resources; Microsoft doesn't recommend deploying your own applications to it
Control plane (Azure-managed)kube-apiserver, etcd, kube-scheduler, kube-controller-manager, cloud-controller-manager
On every nodekubelet, kube-proxy or Cilium, and a container runtime
Pricing tierNodesNote
FreeUp to 1,000No financially backed uptime SLA
StandardUp to 5,000Uptime SLA enabled by default
Premium-Adds Microsoft maintenance beyond community support

Linux node pools use containerd on Kubernetes version 1.19 and higher.

Services and ingress

Service typeWhat it creates
ClusterIPAn internal IP address for use within the cluster; the default when you don't specify a type
NodePortA port mapping on the underlying node, reached with the node IP address and port
LoadBalancerAn Azure load balancer resource with an external IP address, connected to the pods through the backend pool
ExternalNameA specific DNS entry for easier application access

Pull images and scale

Logs, events and node health

NeedUse
All events in the clusterkubectl get events
Events in one namespacekubectl get events --namespace default
Events of one podkubectl describe pod with the pod name
Conditions and events of a nodekubectl describe node
Events in the portalKubernetes resources > Events
Events for more than one hourEnable Container insights
Container logs, events and pod metrics in real timeLive data in Container insights (needs Container insights enabled and uses direct Kubernetes API access)
Container logs on the node/var/log/containers

Connectivity and Container Apps troubleshooting

Traffic that starts in a pod or a worker node is outbound traffic from the cluster. For a destination on the internet, the default method is to send the traffic through the Azure Load Balancer. Microsoft's egress checklist includes these steps in this order:

  1. Check whether Azure network resources block the traffic with Azure Virtual Network Verifier (Preview).
  2. Check that DNS resolution for the endpoint works correctly.
  3. Make sure that you can reach the endpoint through an IP address.
  4. Make sure that you can reach the endpoint from another source.
  5. Make sure that the endpoint is working.
  6. Check whether the cluster can reach any other external endpoint.
  7. Check whether a network policy is blocking the traffic.
  8. Check whether an NSG is blocking the traffic.
  9. Check whether a firewall or proxy is blocking the traffic.
  10. Check whether the AKS service principal or managed identity has the required AKS service permissions to make the network changes to Azure resources.
Container Apps symptomAction in the troubleshooting guide
Revision takes more than 10 minutes and ends Degraded (Deployment Progress Deadline Exceeded)Verify health probes are configured correctly
Error deploying a new revisionVerify Container Apps can pull your container image
Endpoint doesn't respond to requestsReview ingress configuration
Requests return status 403Verify networking configuration is correct
Missing parameters error in az containerappVerify the latest version of the Azure Container Apps extension is installed
Container Apps log typeSourceTable or note
Console logsYour application (stdout and stderr)ContainerAppConsoleLogs_CL
System logsThe Container Apps serviceContainerAppSystemLogs_CL
HTTP logsThe ingress layer, when HTTP logging is enabled through diagnostic settingsContainerAppHTTPLogs schema

In the portal, open Monitoring > Log stream (not Logs). If it says the revision is scaled to zero, deploy a new revision scaled to a minimum replica count of 1.

CLI and PowerShell

TaskAzure CLIPowerShell
Download credentials and configure kubectlaz aks get-credentials --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME-
Add a user mode node poolaz aks nodepool add --resource-group $RESOURCE_GROUP --cluster-name $CLUSTER_NAME --name $USER_NP --node-count 1 --mode User-
Deploy a manifestkubectl apply -f aks-store-quickstart.yaml-
Verify pods run on a user node poolkubectl get pods -o wide-
Scale pods manuallykubectl scale --replicas=5 deployment.apps/store-front-
Scale nodes manuallyaz aks scale --resource-group myResourceGroup --name myAKSCluster --node-count 5-
Check the autoscalerkubectl get hpa-
List all eventskubectl get events-
List events in one namespacekubectl get events --namespace default-
Check node conditions and eventskubectl describe node my-aks-node-

Exam Tips

Tick each tip once you can answer it without looking.

“Create the objects that a YAML manifest describes” → kubectl apply -f <manifest>.yaml. Trap: kubectl scale only changes replicas; az aks get-credentials only configures kubectl.

“Application pods must run on a user node pool” → nodeSelector kubernetes.azure.com/mode: user. Trap: System node pools host critical system pods such as CoreDNS.

“Service type when none is specified” → ClusterIP (internal IP, inside the cluster). Trap: LoadBalancer gets an external IP and an Azure load balancer; it is not the default.

“Service that creates an Azure load balancer with an external IP” → LoadBalancer. Trap: NodePort maps a port on the node IP; ExternalName only creates a DNS entry.

“Route to different microservices by URL path” → An ingress controller (layer 7). Trap: A LoadBalancer Service is layer 4 and can't implement complex routing rules.

“Let AKS pull from your Azure Container Registry” → --attach-acr: grants AcrPull to the agent pool managed identity. Trap: A private external registry needs an image pull secret instead.

“Pods must pull from a private non-ACR registry” → Image pull secret. Trap: --attach-acr covers only the AKS to ACR integration.

“Horizontal pod autoscaler does not scale” → Check that every container defines CPU requests and limits and that pods have requests. Trap: The tutorial states this as a requirement for using the horizontal pod autoscaler.

“Look at the events of one failing pod” → kubectl describe pod <pod-name>. Trap: kubectl get events lists the whole cluster.

“Keep Kubernetes events longer than one hour” → Enable Container insights. Trap: Events have no retention mechanism and are available for only one hour.

“Node shows a permanent problem” → Node Problem Detector node conditions; check with kubectl describe node. Trap: Node conditions are exposed by Node Problem Detector; check them with kubectl describe node.

“Outbound call from a pod fails” → Check DNS, then IP reachability, then another source, then network policy and NSG. Trap: Don't start with packet captures; they are for when other steps are inconclusive.

“Container Apps revision Degraded after more than 10 minutes” → Verify health probes. Trap: Ingress review is for endpoints that don't respond; 403 points to networking configuration.

“Query stdout and stderr of Container Apps containers” → ContainerAppConsoleLogs_CL. Trap: ContainerAppSystemLogs_CL holds service-level events from the platform.

“Container Apps Log stream says the revision is scaled to zero” → Deploy a new revision with a minimum replica count of 1. Trap: Open Log stream, not Logs.

Sources

Checked against Microsoft Learn on November 13, 2026.

← Container Apps & KEDAContainers overview →