Interview Prep/Azure/AKS and ACR Errors

`az acr build` fails with `denied: client with IP '20.x.x.x' is not allowed access`.

IntermediateTroubleshootingAKS and ACR Errors
Answer

Likely causes → ACR firewall/public access restrictions; ACR Tasks agents run outside your network.

Diagnose → az acr show -n acrshop --query "{public:publicNetworkAccess, rules:networkRuleSet, bypass:networkRuleBypassOptions}"

Fix →

  1. Allow trusted services (--allow-trusted-services true) and run tasks with a system identity, or use a dedicated agent pool in your VNet (az acr agentpool create --subnet-id ..., Premium)
  2. Or build on private agents with docker build and push via the private endpoint

Prevent → Decide build location when locking down registries.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on AKS and ACR Errors