Latest version of azure-cli

Anonymous
2024-01-04T12:12:26.9266667+00:00

The latest version available in the openSUSE repository is 2.38.1 (https://packages.microsoft.com/yumrepos/azure-cli/Packages/a/), when installing through script (https://aka.ms/doc/InstallAzureCli ) I'm getting version 2.39.0. How can I get the latest version (2.55.0)?

This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Your current Azure CLI version is 2.39.0. Latest version available is 2.55.0.
Please check the release notes first: https://docs.microsoft.com/cli/azure/release-notes-azure-cli
Do you want to continue? (Y/n): Y
Not able to upgrade automatically. Instructions can be found at https://aka.ms/doc/InstallAzureCli
CLI upgrade failed or aborted.

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,447 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Sedat SALMAN 14,180 Reputation points MVP
    2024-01-04T13:04:28.51+00:00

  2. deherman-MSFT 38,021 Reputation points Microsoft Employee Moderator
    2024-01-04T22:18:52.14+00:00

    @Jonas Kvinge

    I got this working with a workaround. I will reach out to the repo maintainers about adding the latest azure-cli to the repo. Can you confirm the version of openSUSE you are using?

    Here is how I got this working from a fresh openSUSE Leap 15.4 image:

    sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
    sudo zypper addrepo --name 'RHEL8' --check https://packages.microsoft.com/rhel/8/prod rhel8
    sudo zypper refresh
    sudo zypper install --from rhel8 azure-cli
    

    azureuser@dehermanopensusetest:~> az --version azure-cli 2.55.0 core 2.55.0 telemetry 1.1.0 Dependencies: msal 1.24.0b2 azure-mgmt-resource 23.1.0b2 Python location '/usr/bin/python3.9' Extensions directory '/home/azureuser/.azure/cliextensions' Python (Linux) 3.9.18 (main, Sep 06 2023, 07:49:32) [GCC] Legal docs and information: aka.ms/AzureCliLegal Your CLI is up-to-date. azureuser@dehermanopensusetest:~> uname -a Linux dehermanopensusetest 5.14.21-150400.24.92-default #1 SMP PREEMPT_DYNAMIC Wed Oct 4 16:07:15 UTC 2023 (3731029) x86_64 x86_64 x86_64 GNU/Linux azureuser@dehermanopensusetest:~>

    Hope this works! Let me know if you still need assistance.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image


  3. Anonymous
    2024-01-05T08:32:41.6566667+00:00

    I think the main issue is that openSUSE Leap 15.5 uses Python 3.6 which is end of life.

    https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=zypper seem to use pip to install it.

    But one of the azure-cli packages requires a higher version of Python.

    0 comments No comments

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.