azure-cli: ML Extension 2.30.0 responds with: `'ml' is misspelled or not recognized by the system` when triggered.

Describe the bug

ML Extension 2.30.0 responds with: 'ml' is misspelled or not recognized by the system when triggered.

Related command

$ az ml --help

Errors

'ml' is misspelled or not recognized by the system.

Issue script & Debug output

$ az extension add --name ml
Default enabled including preview versions for extension installation now. Disabled in May 2024. Use '--allow-preview true' to enable it specifically if needed. Use '--allow-preview false' to install stable version only. 
 - Searching ..
Extension 'ml' 2.29.0 is already installed.
$ az extension update --name ml
Default enabled including preview versions for extension installation now. Disabled in May 2024. Use '--allow-preview true' to enable it specifically if needed. Use '--allow-preview false' to install stable version only. 
 - Installing ..

$ az version
cannot import name 'AccessTokenInfo' from 'azure.core.credentials' (/opt/homebrew/Cellar/azure-cli/2.60.0/libexec/lib/python3.11/site-packages/azure/core/credentials.py)
{
  "azure-cli": "2.60.0",
  "azure-cli-core": "2.60.0",
  "azure-cli-telemetry": "1.1.0",
  "extensions": {
    "ml": "2.30.0",
    "storage-preview": "1.0.0b1"
  }
}
$ az ml --help
cannot import name 'AccessTokenInfo' from 'azure.core.credentials' (/opt/homebrew/Cellar/azure-cli/2.60.0/libexec/lib/python3.11/site-packages/azure/core/credentials.py)
'ml' is misspelled or not recognized by the system.

Expected behavior

It should return the error message.

Environment Summary

{
  "azure-cli": "2.60.0",
  "azure-cli-core": "2.60.0",
  "azure-cli-telemetry": "1.1.0",
  "extensions": {
    "ml": "2.30.0",
    "storage-preview": "1.0.0b1"
  }
}

I am using this in mac os. M3 machine

Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 7
  • Comments: 19 (4 by maintainers)

Most upvoted comments

looks like similar issues happen on new release of ml extension: https://github.com/Azure/azure-cli/issues/30615

Since today we have started seeing the same issues. Both on windows machines and in our devops pipelines.

Started to see same error since yesterday, even with older versions (2.23.0).

Created this ticket in azure-sdk-for-python (although it should probably have been created in this repo). Cross sharing for awareness: https://github.com/Azure/azure-sdk-for-python/issues/37491

Hi @yogeshg,

2.60.0 is not the latest Azure CLI(2.64.0).

If you haven’t already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.