How do I install an older version of the Azure CLI ml extension?

Anonymous
2023-02-23T18:43:54.88+00:00

I'm running CI/CD pipelines in Azure Dev Ops in order to deploy my machine learning workloads on components of a Azure Machine Learning Workspace (e.g. AzureML pipelines, endpoints, etc). I recently came across an issue in my pipelines and wanted to validate that the versions of the Azure CLI and Azure CLI ml extension didn't cause this issue.

Because the Azure CLI is a tool that is developed in python, it is relatively easy to install an older version of the cli. I can just run pip install azure-cli==2.44.1. However, I'm having trouble figuring out how to install a specific version of the ml extension. According to this documentation, all extensions are packaged as python wheels, so theoretically if I had the URL of the build wheel, I could just target that. But I'm having trouble finding where the ml extension code is hosted. I found the pypi package for v1 of the extension. Does anyone know where v2 is hosted?

The version of the extension I would like to install is 2.13.0.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,341 questions
{count} votes

Accepted answer
  1. romungi-MSFT 48,911 Reputation points Microsoft Employee Moderator
    2023-02-24T06:29:17.55+00:00

    Claire Salling You can install a specific version of Azure ML cli extension using these commands.

    Remove any existing extensions of azure-cli-ml(v1) or ml(v2)

    az extension remove -n azure-cli-ml
    az extension remove -n ml

    Add the required version:

    az extension add --name ml --version 2.13.0

    List the extension to confirm the version.

    az extension list

     {
        "experimental": false,
        "extensionType": "whl",
        "name": "ml",
        "path": "C:\\Users\\user\\.azure\\cliextensions\\ml",
        "preview": false,
        "version": "2.13.0"
      }
    

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.