question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--source image:tag@sha256 is not accepted by az acr import

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug When --source parameter feed to az acr import in format image:tag@sha256, result of command complained invalid value. However if --source parameter comes with either image:tag or image@sha256, then az acr import run successfully.

To Reproduce

  • command az acr import image:tag@sha256 failed because of invalid value
az acr import --name xxx --source k8s.gcr.io/ingress-nginx/controller:v0.41.0@sha256:e6019e536cfb921afb99408d5292fa88b017c49dd29d05fc8dbc456aa770d590 -g xxx --subscription xxx
BadRequestError: Invalid value ingress-nginx/controller:v0.41.0@sha256:e6019e536cfb921afb99408d5292fa88b017c49dd29d05fc8dbc456aa770d590 for property parameters.Source.SourceImage for resource name viennaacrexport. Kindly refer to the docs: https://aka.ms/acr/import
  • command az acr import --source image:tag works

az acr import --name xxx --source k8s.gcr.io/ingress-nginx/controller:v0.41.0 -g xxx --subscription xxx

  • command az acr import --source image@sha256 works

az acr import --name xxx --source k8s.gcr.io/ingress-nginx/controller@sha256:e6019e536cfb921afb99408d5292fa88b017c49dd29d05fc8dbc456aa770d590 -g xxx --subscription xxx

Expected behavior

Environment summary

WSL 2.0 running on Windows 10

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:        20.04
Codename:       focal
az --version
azure-cli                         2.14.1 *

core                              2.14.1 *
telemetry                          1.0.6

Python location '/home/evan/bin/python3'
Extensions directory '/home/evan/.azure/cliextensions'

Python (Linux) 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0]

Legal docs and information: aka.ms/AzureCliLegal


You have 2 updates available. Consider updating your CLI installation with 'az upgrade'

Please let us know how we are doing: https://aka.ms/azureclihats
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy

Additional context

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
yugangw-msftcommented, Feb 4, 2021

This is not supported right now.

0reactions
zadiguscommented, Dec 21, 2022

Is something going to happen in this context or not at all?

Read more comments on GitHub >

github_iconTop Results From Across the Web

az acr import stuck - Microsoft Q&A
acr import command like: az acr import --name myacr --source ... cli.azure.cli.core.sdk.policies: This request has no body
Read more >
Using az acr import from DevOps - has stopped working
We have used Azure CLI tasks to execute "az acr import" from in a DevOps ... 2: The new version of acr import...
Read more >
Azure Container Registry ACR How to add tag to image?
You can use import command to import the image in the same repository: az acr import --name myacr --source myacr.azurecr.io/myimage:latest ...
Read more >
Pulse · Azure/azure-cli · GitHub
--source image:tag@sha256 is not accepted by az acr import. #16791 commented on in 10 hours • 1 new comment. Unexpected behaviour creating service...
Read more >
azure-cli-acr 2.2.9 - PyPI
Microsoft Azure Command-Line Tools ACR Command Module. ... Fix redundant sources in image import. ... Add '–no-wait' for 'az acr build' command.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found