azure-cli: Error : Unable to load extension azure-cli-ml

Describe the Bug

It was working a couple of days ago when I ran the CI for installing azure ml extension and create a resource group through Azure CLI in Azure DevOps. Now it errors out saying it can’t find the command.

  • Command Name

    az extension add -n azure-cli-ml az ml workspace create -g $(azureml.resourceGroup) -w $(azureml.workspaceName) -l $(azureml.location) --exist-ok --yes
  • Errors

    Unable to load extension 'azure-cli-ml: No module named 'azureml._cli_common''. ... az: 'ml' is not in the 'az' command group. See 'az --help'.

To Reproduce


Expected Behavior

Previously Azure CLI on Azure DevOps Build will add the extension for azure-cli-ml and enables Azure CLI to create workspace through az ml workspace create.

Environment Summary

Windows-10-10.0.17134 Build 17134
Python 3.6.8
Installer: MSI

azure-cli 2.10.1
extensions:
  azure-cli-ml 1.9.0

Additional Context


About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15

Most upvoted comments

I can’t repro this on my own DevOps pipeline.

In the past, I’ve seen compatibility issues due to a mismatch of packages (az extension add won’t warn for existing dependencies that are incompatible with the extension). This comes up often with DevOps pipelines because of custom docker images setting azureml packages to a certain version, and then a new version of the AzureML CLI is published. I haven’t seen it manifest itself in extension load errors before, but this is the only idea I have right now.

Thanks for the update. Re-opening the issue and assigning to @lostmygithubaccount . @lostmygithubaccount can you please take a look since this is still an issue

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureml-github.