Error : Unable to load extension azure-cli-ml
See original GitHub issueDescribe 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
Issue Analytics
- State:
- Created 3 years ago
- Comments:15
Top Results From Across the Web
Azure MLv2 CLI extension not recognized in DevOps
The pipeline was working fine yesterday, but now results in an error saying that 'ml' is misspelled or not recognized.
Read more >az ml run - Microsoft Learn
This reference is part of the azure-cli-ml extension for the Azure CLI (version 2.0.28 or higher). The extension will automatically install the first...
Read more >Cannot Use the ML CLI v2 - Microsoft Q&A
I personally uninstalled older version of azure cli and installed the latest version of Azure cli and then installed the azure ml cli...
Read more >Release notes & updates – Azure CLI - Microsoft Learn
Learn about the latest Azure Command-Line Interface (CLI) release notes and updates for both the current and beta versions of the CLI.
Read more >Install the Azure CLI on Linux - Microsoft Learn
Since Windows Subsystem for Linux (WSL) is a system call translation layer on top of the Windows platform, you might experience an error...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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