Skip to content

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

@DevOpsCraftsman28

Description

@DevOpsCraftsman28

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 ...

    # <check_endpoint_Status>
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Machine Learningaz mlPossible-SolutionService AttentionThis issue is responsible by Azure service team.Similar-IssuebugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions