-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support arm64 Linux builds #7368
Comments
@troydai could you clarify? |
I'll look into that. |
Thank you Troy. |
Hi Random User here, any update on this request? |
It threw me that the instructions at https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt install a version which includes an AMD64 python binary - if there isn't an ARM version then it just should refuse to install rather than install a broken version? |
Hello Team, Is this near a resolution by any chance?? I've recently bought Pi400 in bulk(10 units) and looking to install az cli, but failed. I understand it is to do the with arm architecture. sharing the response from my unit when I investigate the architecture. ~ dpkg --print-architecture |
I have tested installing Azure CLI on Directly installing
apt-get update
apt-get install --yes python3 python3-pip
# Optional steps
apt-get install --yes libsodium-dev
SODIUM_INSTALL=system pip install pynacl
pip install azure-cli |
Tested installing Azure CLI on |
*Moved ARM64 line into its own Note box for easier scanability *Added a recommendation for installing CLI on ARM64 based on conversations in Azure/azure-cli#7368 and MicrosoftDocs/azure-docs#80763
Are there any plans for an ARM version of the cli now? We are unable to use pip due to dependency conflicts |
We recommend installing in a virtual environment. See #20476. |
@jiasli confirming
I've confirmed these instructions work on Ubuntu arm64 in a qemu virtual machine on a Mac Mini M1 |
Hi there- Also a random user stumbling on this issue- I have some feedback for the package maintainers who build the azure-cli debian packages, which is that its not genuine to mark a debian package as "all" or "any" if said package ships a binary that is architecture dependent [1]. Interestingly enough the team is correctly marking the RPMs as being x86_64 architecture [2] but is not noted in your docs that [3] only EL7 and x86_64 are supported. [1] https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-architecture |
Update of PyNaCl to 1.5.0 would be beneficial as it provides wheels, now. |
Any update? As an M1 Mac user, this would be really helpful when running ubuntu based VMs. The workaround works great though but it would be nice if we could use native package managers instead of pip. |
Can the broken apt packages be removed whilst this is being fixed? I'm using Ansible to configure a number of linux workstations (including a Pi4 for testing) and this is breaking my workflow. If there is no suitable ARM64 package, then your package repo should not install anything on that architecture. |
Any update on this? I'd like to see a arm64 package also for Linux as this comes in handy to use in ubuntu based docker images running on top of macos m1/m2 systems. |
Azure should GA ARM64 VM in preview. Amazon already online arm64 awscliv2. It is confused that Microsoft Azure should abandon azure-cli arm64 with pip replacement or arm64 version development already on roadmap? Expect azure-cli arm64 should publish as soon as possible. |
This issue is closed as completed. You’ll see ARM64 version in 2.46. |
@bebound How would I install the latest version in an |
You could refer bellow python venv installation for your arm64 azure-cli. # pip with venv to install azure-cli (https://dev.to/paul8989/install-azure-cli-on-arm64-raspberry-pi-39mb)👍
$ docker run --name ubt_kinetic -itd ubuntu:kinetic bash # create a new container
$ docker exec -it ubt_kinetic bash # exec in docker
$ sudo apt update # update docker apt source
$ sudo apt install python3 python3-venv -y # install python3 and python3-venv in docker
$ python3 -m venv azure-cli-env # Create a virtual environment
$ azure-cli-env/bin/python -m pip install pip --upgrade # Update pip
$ azure-cli-env/bin/python -m pip install azure-cli # Install azure-cli
$ azure-cli-env/bin/az --version # Run any Azure CLI commands
$ rm -rf azure-cli-env # Delete the virtual environment
$ sudo ln -s azure-cli-env/bin/az /usr/local/bin/az # symbolic link az
# back to vm, and permanently set alias az at user .bashrc
$ cat <<EOF >> ~/.bashrc
# alias
alias az='docker exec -it ubt_kinetic az'
EOF
$ alias az='docker exec -it ubt_kinetic az' # valid tempary alias
$ az version
{
"azure-cli": "2.45.0",
"azure-cli-core": "2.45.0",
"azure-cli-telemetry": "1.0.8",
"extensions": {}
} |
The doc is not updated yet. You can follow the same installation guide to install arm64 version for Ubuntu >=20.04 and Debian. |
Is your feature request related to a problem? Please describe.
azure-cli is available for amd64 through Microsoft's official repos for Debian, Ubuntu, and OpenSUSE.
See Debian and Ubuntu repo at https://packages.microsoft.com/repos/azure-cli/dists/.
However, azure-cli is not available for arm64 on any of those systems.
Describe the solution you'd like
Add arm64 builds to Microsoft's official repos for Linux and WSL.
Describe alternatives you've considered
I have considered re-building each release for arm64 anew each time.
The text was updated successfully, but these errors were encountered: