Azure / Azure/azure-cli

az ml command not working as expected after 08/23/2025 - ERROR: 'ml' is misspelled or not recognized by the system

Open
#32,014 4 comments 1 reaction 2 assignees Claimed by @a0x1ab View on GitHub
act-codegen-extensibility-squad bug Machine Learning 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

Hi,

The original script as shown below:

inlineScript: |
set -x
az extension add -n ml

echo Creating endpoint ...
cat endpoint.yml
az ml online-endpoint create --file endpoint.yml --resource-group $(workspaceResourceGroup) --workspace-name $(workspaceName)
echo Deploying managed online endpoint ...

#
endpoint_status=`az ml online-endpoint show -n $MANAGEDENDPOINTNAME --resource-group $(workspaceResourceGroup) --workspace-name $(workspaceName) --query "provisioning_state" -o tsv`

In the ado pipeline log:

WARNING: Preview version of extension is disabled by default for extension installation, enabled for modules without stable versions.
WARNING: Please run 'az config set extension.dynamic_install_allow_preview=true or false' to config it specifically.
ERROR: 'ml' is misspelled or not recognized by the system.

Examples from AI knowledge base:
az extension add --name anextension
Add extension by name

az extension list-available
List all publicly available extensions

Everything was fine on the previous day 08/22/2025.

When I debug with
az extension add -n ml --system -y
az extension list

cannot import name 'AzureOpenAIDeployment' from 'azure.ai.ml.entities' (/usr/local/miniconda/lib/python3.10/site-packages/azure/ai/ml/entities/__init__.py)
[
{
"experimental": false,
"extensionType": "whl",
"name": "ml",
"path": "/usr/local/miniconda/lib/python3.10/site-packages/azure-cli-extensions/ml",
"preview": false,
"version": "2.38.1"
}
]

Notes: the python package version for azure-ai-ml is 1.14.0

Any suggestions I can try to resolve the issues with "az ml" command?

Thanks!

### Related command

az ml

### Errors

WARNING: Preview version of extension is disabled by default for extension installation, enabled for modules without stable versions.
WARNING: Please run 'az config set extension.dynamic_install_allow_preview=true or false' to config it specifically.
ERROR: 'ml' is misspelled or not recognized by the system.

Examples from AI knowledge base:
az extension add --name anextension
Add extension by name

az extension list-available
List all publicly available extensions

### Issue script & Debug output

az ml

### Expected behavior

it should execute the az ml command without any errors

### Environment Summary

az/usr/local/miniconda/bin/az --version
azure-cli 2.76.0

core 2.76.0
telemetry 1.1.0

Extensions:
azure-devops 1.0.2
ml 2.38.0
xsignextension 0.48

Dependencies:
msal 1.33.0b1
azure-mgmt-resource 23.3.0

Python location '/usr/local/miniconda/bin/python'
Config directory '/root/.azure'
Extensions directory '/root/.azure/cliextensions'

Python (Linux) 3.10.16 (main, Dec 11 2024, 16:24:50) [GCC 11.2.0]

Legal docs and information: aka.ms/AzureCliLegal

### Additional context

_No response_

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.