`az aks get-credentials` works but `kubectl` hangs then fails with `Unable to connect to the server: dial tcp 10.x.x.x:443: i/o timeout`.
IntermediateTroubleshootingAKS and ACR Errors
Answer
Likely causes → Private cluster; your machine has no network path to the private API endpoint (or DNS resolves to the private IP from outside).
Diagnose → az aks show -g rg -n aks --query apiServerAccessProfile
Fix → Connect from a VNet-connected machine (VPN, Bastion jump box, private agent) or use az aks command invoke -g rg -n aks --command "kubectl get nodes".
Prevent → Document access paths for private clusters; private CI agents.
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