Azure / Azure/azure-cli

az acr login fails with ValueError on az-cli 2.75.0

Open
#32,003 9 comments 1 reaction 2 assignees Claimed by @a0x1ab View on GitHub
Auto-Assign Auto-Resolve bug customer-reported Machine Learning Compute Possible-Solution Service Attention Similar-Issue
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

When using the latest Azure CLI (az-cli==2.75.0) on a newly deployed Linux Azure Machine Learning Workspace Compute Instance (25.07.12) to log in to Azure Container Registry, the following error occurs:

`ValueError: API version 2025-03-01-preview does not have operation group 'registries'`

### Related command

`az acr login --name `

### Errors

`ValueError: API version 2025-03-01-preview does not have operation group 'registries'`

### Issue script & Debug output

NA

### Expected behavior

Login to ACR should succeed without errors.

### Environment Summary

azure-cli 2.75.0

core 2.75.0
telemetry 1.1.0

Extensions:
azure-cli-ml 1.41.0
ml 2.38.0

Dependencies:
msal 1.33.0b1
azure-mgmt-resource 23.3.0

Python location '/anaconda/envs/azureml_py38/bin/python'
Config directory '/home/azureuser/.azure'
Extensions directory '/opt/az/extensions'

Python (Linux) 3.10.11 (main, May 16 2023, 00:28:57) [GCC 11.2.0]

Legal docs and information: aka.ms/AzureCliLegal

### Additional context

The same workflow works on az-cli==2.64.0 in Compute Instance Linux 24.12.31
Likely related to dependency or SDK/API version mismatch in the 2.75.0 release.
Could be a breaking change introduced in the new CLI release.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.