This repository contains docker file which can be used to run Azure CLI 2.0 on raspberry PI. At the moment of this repository was created, azure cli git-hub repository doesn't have proper build script support to build from source code hosted in raspberry Pi. Bug 6092 has been filed.
Easiest way i found to run Azure CLI on Raspberry PI is to modify original azure-cli docker file definition to have cli hosted in arm based docker image. You can run all cli commands inside docker container.
sudo apt-get install git
curl -sSL https://get.docker.com | sh
sudo git clone https://github.com/gtrifonov/raspberry-pi-alpine-azure-cli.git
cd .\raspberry-pi-alpine-azure-cli
sudo docker build . -t azure-cli
This will build docker image with title 'azure-cli'
sudo docker run -d -it --rm --name cli azure-cli
Docker container running as demon with bash shell opened
sudo docker ps
Output
CONTAINER ID | IMAGE | COMMAND | CREATED | STATUS | PORTS | NAMES |
---|---|---|---|---|---|---|
17c2e621f9b4 | azure-cli | "/usr/bin/entry.sh /…" | 49 seconds ago | Up 46 seconds | cli |
Since docker container is running and waiting any command to be executed you can use docker exec command. Command below will execute azure cli login.
sudo docker exec cli az login
Once you logged in please use Azure Cli command refference to see available commands and there parameters