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.

Quickstart image

Django MongoDB Backend Quickstart! A Step-by-Step Tutorial

Get up and running with the new Django MongoDB Backend Python library! This tutorial covers creating a Django application, connecting it to MongoDB Atlas, performing CRUD operations, and configuring the Django admin for MongoDB.

Watch full video →

Top comments (0)

AWS Security LIVE! Stream

Go beyond the firewall

There's more to security than code. Explore solutions, strategies, and the full story on AWS Security LIVE!

Learn More

👋 Kindness is contagious

Value this insightful article and join the thriving DEV Community. Developers of every skill level are encouraged to contribute and expand our collective knowledge.

A simple “thank you” can uplift someone’s spirits. Leave your appreciation in the comments!

On DEV, exchanging expertise lightens our path and reinforces our bonds. Enjoyed the read? A quick note of thanks to the author means a lot.

Okay