Skip to content

fix: remove redundant --registry flag from az acr import#1083

Merged
BenjaminMichaelis merged 1 commit into
mainfrom
fix/acr-import-redundant-registry
May 13, 2026
Merged

fix: remove redundant --registry flag from az acr import#1083
BenjaminMichaelis merged 1 commit into
mainfrom
fix/acr-import-redundant-registry

Conversation

@BenjaminMichaelis

Copy link
Copy Markdown
Member

Problem

az acr import was being called with both --source <registry>/<image>:<tag> (which includes the full hostname) and --registry <name>, causing this warning on every prod deploy:

WARNING: The login server name of "ecsdevacr.azurecr.io" in the "--source" argument will be ignored as "--registry" already supplies the same information

--registry is only needed when --source omits the registry hostname. Since our --source already contains the full azurecr.io hostname, --registry is redundant.

Fix

Drop the --registry flag from the az acr import call in deploy-production.

When --source already contains the full registry hostname (e.g.
ecsdevacr.azurecr.io/image:tag), the --registry flag is redundant
and az acr import emits a WARNING that it will be ignored.

Drop --registry to eliminate the noise.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 13, 2026 04:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes a redundant --registry flag from the az acr import call in the production deploy workflow. The --source argument already includes the full azurecr.io hostname, so --registry was producing a warning on every production deploy.

Changes:

  • Drop --registry "${DEV_ACR%.azurecr.io}" from the az acr import invocation in the deploy-production job.

@BenjaminMichaelis BenjaminMichaelis merged commit 295de40 into main May 13, 2026
11 checks passed
@BenjaminMichaelis BenjaminMichaelis deleted the fix/acr-import-redundant-registry branch May 13, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants