How can I use port in RegistryUri when I import container images from a non-Azure private container registry? RRS feed

  • Question

  • There was a error when I import from non-Azure private container registry.

    Invalid value <sourceUri>:<port> for property parameters.Source.RegistryUri for resource name myRegistry. Kindly refer to docs for expected value:

    And I entered is as follows

    az acr import --name myRegistry --source <sourceUri>:<port>/<image>:<tag> --image <image:tag> --username <username> --password <password>

    How can I use port in RegistryUri?

    Wednesday, September 4, 2019 2:34 AM

All replies

  • Hi,

    I tried in my subscription as well. 

    Rest API is not accepting when we give port along with the host name(<sourceUri>:<port>).

    I will check with the internal teams and let you know.

    Wednesday, September 4, 2019 5:25 AM
  • Hi Panyoung,

    I looked at the examples and checked with my team as well.

    Nowhere port is mentioned. If we specify port, Then the validation fails. Looks like importing with port is not supported. I raised an issue in the Azure cli github repo regarding this.

    I will follow up on the github issue and get that to a closure.

    Friday, September 13, 2019 10:11 AM