DEV Community

Lord Jake
Lord Jake

Posted on

Install Azure CLI on arm64 Raspberry pi

According to Microsoft documentations currently arm64 is not supported for Azure CLI.

The only work around is to install via pip.

The below worked for me, in RPi 4B, Ubuntu 20.04

Install
First make sure python3 and its related packages are installed:

Ubuntu/Debian

sudo apt install python3 python3-venv --yes

# Create a virtual environment
python3 -m venv azure-cli-env

# Update pip
azure-cli-env/bin/python -m pip install --upgrade pip

# Install azure-cli
azure-cli-env/bin/python -m pip install azure-cli

# Run any Azure CLI commands
azure-cli-env/bin/az --version 
Enter fullscreen mode Exit fullscreen mode

Uninstall
Delete the virtual environment:
rm -rf azure-cli-env

References:
https://github.com/Azure/azure-cli/issues/20476
https://www.frakkingsweet.com/installing-azure-cli-on-arm64/ - I am just posting this particular link for future reference, I haven't tried this.

Top comments (0)