Interview Prep/Azure/AKS and ACR Errors

`exec /usr/local/bin/python: exec format error` in pod logs right after deploying a new image.

BeginnerTroubleshootingAKS and ACR Errors
Answer

Likely causes → Image built for arm64 (on an Apple Silicon Mac) running on amd64 nodes, or the reverse.

Diagnose → docker buildx imagetools inspect acrshop.azurecr.io/shop/web:v3 shows the platforms.

Fix → Build for the node architecture: docker buildx build --platform linux/amd64 -t ... --push . or use az acr build (amd64 by default, --platform linux/arm64 for Arm pools).

Prevent → Build images in CI, not on laptops.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and ACR Errors