Azure / acr

Azure Container Registry samples, troubleshooting tips and references
https://aka.ms/acr
Other
162 stars 106 forks source link

ACR Login Issue #680

Closed kevinevans1 closed 10 months ago

kevinevans1 commented 1 year ago

Describe the bug Unable to login into azure container registry using the 'az acr login command'

To Reproduce Steps to reproduce the behavior:

  1. az login (success)
  2. running the az acr login command 'az acr login --name acrlab10'
  3. receive the following error 'Error saving credentials: error storing credentials - err: exit status 1, out: error getting credentials - err: exit status 1, out:no usernames for acrlab10.azurecr.io` Login failed.'

Expected behavior Should be able to login to azure container registry using azure AD RBAC

Screenshots screen shot attached

Any relevant environment information

kevinevans1 commented 1 year ago

resolved by installing the ACR helper https://github.com/Azure/acr-docker-credential-helper

sajayantony commented 1 year ago

@kevinevans1 - That credential helper is not being maintained and should not be required. Could you please open a support ticket so that we can follow up.

kevinevans1 commented 1 year ago

@sajayantony re-opened as requested

terencet-dev commented 10 months ago

Hi @kevinevans1,

Please open a [support ticket](https://azure.microsoft.com/support/create-ticket/) with our team to investigate as this board is primarily used to provide roadmap updates. Closing this issue here so we can track through the support ticket.

sumit-anantwar commented 7 months ago

Behaving the same for me. I was struggling for a few hours to login, finally succeeded using the helper. OS: Ubuntu 22.04.3 LTS az-cli version

$ az -v
azure-cli                         2.53.1

core                              2.53.1
telemetry                          1.1.0

Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2

Python location '/opt/az/bin/python3'
Extensions directory '/home/leo/.azure/cliextensions'

Python (Linux) 3.10.10 (main, Oct 24 2023, 06:10:14) [GCC 11.4.0]

Legal docs and information: aka.ms/AzureCliLegal