Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azd deploy fails to access container registry in private network #4453

Open
shankersumit opened this issue Oct 17, 2024 · 1 comment
Open
Assignees
Labels
acr Azure Container Registry customer-reported identify a customer issue needs-team-attention Issues out of a milestone question

Comments

@shankersumit
Copy link

i am unable to deploy the microservice in container apps as "azd deploy" fails to access container registry in private network.
Our infra is hosted in secure landing zone and mms standards doesnt allow us to keep the acr resource in public network.

ERROR: failed deploying service 'TradeService': remote build failed: 2024/10/17 11:46:31 Downloading source code...
2024/10/17 11:46:32 Finished downloading source code
2024/10/17 11:46:32 Using acb_vol_21368d0d-ab76-426f-8525-fc8abc186630 as the home volume
2024/10/17 11:46:32 Setting up Docker configuration...
2024/10/17 11:46:33 Successfully set up Docker configuration
2024/10/17 11:46:33 Logging in to registry: dmpdevwecontainerregistry.azurecr.io
failed to login, ran out of retries: failed to set docker credentials: Error response from daemon: Get "https://dmpdevwecontainerregistry.azurecr.io/v2/": denied: client with IP '13.69.110.34' is not allowed access. Refer https://aka.ms/acr/firewall to grant access.
: exit status 1
Run ID: cb9 failed after 7s. Error: failed during run, err: exit status 1

client with IP '13.69.110.34' seems to be from microsoft backbone network.

@vhvb1989
Copy link
Member

It looks like you are trying to use remote build. Have you tried local build? IIRC, local build would use docker authentication to log in to the ACR, so as long as you can login docker to it, then azd should be able to.

@ellismg , is there anything we can do for remote build here? Would a proxy work?

@vhvb1989 vhvb1989 added needs-triage For new issues needs-team-attention Issues out of a milestone acr Azure Container Registry labels Oct 25, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-triage For new issues label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acr Azure Container Registry customer-reported identify a customer issue needs-team-attention Issues out of a milestone question
Projects
None yet
Development

No branches or pull requests

3 participants