I tried to remove the ml extension in azure cloud shell and the CLI showed the following error: "Cannot remove system extension ml in Cloud Shell."

Jothi Thondiraj 20 Reputation points
2024-06-04T15:52:04.4933333+00:00

Hello guys,

I wanted to change the version of the ml extension from 2.26.0 to 2.25.0. For this purpose, I tried to remove the ml extension in azure cloud shell. I used the command: az extension remove -n ml. And I got the following error: "Cannot remove system extension ml in Cloud Shell."

Any answers to solve the error will be appreciated!

Thanks.

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

Accepted answer
  1. Gowtham CP 6,030 Reputation points Volunteer Moderator
    2024-06-04T17:53:36.0566667+00:00

    Hi Jothi Thondiraj ,

    Thank you for reaching out on Microsoft Q&A.

    Unfortunately, removing system extensions like ml isn't currently possible. Here are a couple of ways to achieve your goal:

    Direct Downgrade:

    This is the easiest option. Run the following command in your Cloud Shell session:

    az extension add --upgrade --name ml --version 2.25.0

    This command will downgrade the ml extension to version 2.25.0.

    Local Environment:

    If the direct downgrade doesn't work, consider setting up a local Azure CLI environment. This gives you more control over extensions. Here's a more detailed approach:

    1. Install Azure CLI: Follow the official guide.
    2. Remove any existing ml extension (if present): az extension remove -n ml
    3. Install the desired version: az extension add --name ml --version 2.25.0

    By following either of these approaches, you should be able to switch to the specific ml version you need.

    I hope this helps! If you have any further questions, feel free to ask.

    For more information on managing extensions, you can refer to the official documentation.

    If the information is useful, please accept the answer and upvote it to assist other community members.

    1 person found this answer helpful.

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.