you can use the install script
https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=script
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
you can use the install script
https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=script
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!
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.