azure-cli-extensions
azure-cli-extensions copied to clipboard
ContainerApps - Update error message and help to indicate need to use --registry-server argument
- 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:
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.
route to CXP team
@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!
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:
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: |
|
Milestone: | - |
Adding Service team to look into this.