Azure / acr

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

Cannot connect to ACR #691

Closed yargolan closed 1 year ago

yargolan commented 1 year ago

Describe the bug I have a 'contributor' access over the relevant subscription. However, when I try to get the list of the repositories in the ACR, I get the following error message: Could not connect to the registry login server 'MY_ACR_NAME.azurecr.io'. Please verify that the registry exists and the URL 'https://MY_ACR_NAME.azurecr.io/v2/' is reachable from your environment.

To Reproduce Steps to reproduce the behavior:

  1. az login
  2. az account set --subscription MY_SUB_ID
  3. az acr repository list --name MY_ACR_NAME

Expected behavior A json holding the names of the repositories under the relevant ACR

Any relevant environment information

Additional context Add any other context about the problem here.

If any information is a concern to post here, you can create a support ticket or send an email to acrsup@microsoft.com.

yargolan commented 1 year ago

The same works from the Azure portal. Fails only via CLI, so I am guessing that this is not related to permissions.

trisavo commented 1 year ago

What does the command az acr list -o table result in?

yargolan commented 1 year ago

Update: The command runs flawlessly from the CLI. When I try to run the same command from PyCharm using subprocess library it fails. When running the python code from CLI, it runs as needed as well. I figured out that the issue is based in the PyCharm.

You may close the ticket.