An Azure service that provides a registry of Docker and Open Container Initiative images.
Hello Durga,
We wanted to follow up as promised and confirm that we have successfully resolved the az acr build firewall issue. Your guidance was instrumental in our success.
The GitHub issue you linked (acr/issues/762) was the key. It correctly confirmed we were dealing with a platform-level behavior and not a simple configuration error on our part.
For the benefit of anyone else who finds this thread, we discovered the definitive root cause was a rule precedence conflict on the ACR firewall. Because our ACR has a private endpoint, the master publicNetworkAccess property was set to Disabled. This Disabled state was overriding all other firewall rules, including our attempts to set the defaultAction to Allow.
The final, successful workaround was a three-step process:
Force the firewall completely open with a single, atomic command: az acr update --name <our-acr> --public-network-enabled true --default-action Allow
Run the az acr build ... command, which now succeeded.
Immediately restore the maximum security posture: az acr update --name <our-acr> --public-network-enabled false --default-action Deny
We wouldn't have reached this correct, nuanced solution without your help pointing us in the right direction. Thank you again!
Andrew