azure-cli-extensions icon indicating copy to clipboard operation
azure-cli-extensions copied to clipboard

ContainerApps - Update error message and help to indicate need to use --registry-server argument

Open charris-msft opened this issue 1 year ago • 2 comments

  • If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at Azure/azure-cli

Related command

containerapp create

Extension name (the extension in question)

containerapp

Description of issue (in as much detail as possible)

I’m trying to deploy Metabase to ACA. I pulled the docker image to my machine, tagged it and then pushed it to my ACR.

Unauthorized I ran into was getting authentication error when running containerapp create.

az containerapp create -n metabase -g $RESOURCE_GROUP --environment $CONTAINERAPPS_ENVIRONMENT --image metabaseacr.azurecr.io/metabase:latest --target-port 3000 --ingress 'external'

The following field(s) are either invalid or missing. Invalid value: "metabaseacr.azurecr.io/metabase:latest": GET https:?scope=repository%3Ametabase%3Apull&service=metabaseacr.azurecr.io: UNAUTHORIZED: authentication required, visit https://aka.ms/acr/authorization for more information.: template.containers.metabase.image.

I confirmed that the ACR is admin-enabled: image

After talking to one of the ACA PMs, I learned that I needed to specify the --registry-server argument. Both the help and the error message should be updated to make this clearer to the user.


charris-msft avatar Aug 15 '22 15:08 charris-msft

route to CXP team

yonzhan avatar Aug 15 '22 22:08 yonzhan

@anthonychu FYI.

@haroonf I believe this is an error from the API that is surfaced on the client, can you confirm. If not lets check if there is some change on the client side that can be done. Thanks!

panchagnula avatar Aug 15 '22 22:08 panchagnula

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @calvinsID.

Issue Details
  • If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at Azure/azure-cli

Related command

containerapp create

Extension name (the extension in question)

containerapp

Description of issue (in as much detail as possible)

I’m trying to deploy Metabase to ACA. I pulled the docker image to my machine, tagged it and then pushed it to my ACR.

Unauthorized I ran into was getting authentication error when running containerapp create.

az containerapp create -n metabase -g $RESOURCE_GROUP --environment $CONTAINERAPPS_ENVIRONMENT --image metabaseacr.azurecr.io/metabase:latest --target-port 3000 --ingress 'external'

The following field(s) are either invalid or missing. Invalid value: "metabaseacr.azurecr.io/metabase:latest": GET https:?scope=repository%3Ametabase%3Apull&service=metabaseacr.azurecr.io: UNAUTHORIZED: authentication required, visit https://aka.ms/acr/authorization for more information.: template.containers.metabase.image.

I confirmed that the ACR is admin-enabled: image

After talking to one of the ACA PMs, I learned that I needed to specify the --registry-server argument. Both the help and the error message should be updated to make this clearer to the user.


Author: charris-msft
Assignees: -
Labels:

Service Attention, Auto-Assign, ContainerApp

Milestone: -

ghost avatar Aug 18 '22 02:08 ghost

Adding Service team to look into this.

navba-MSFT avatar Aug 18 '22 02:08 navba-MSFT