This is a cache of https://discuss.96boards.org/t/install-azure-cli-2-0/4183. It is a snapshot of the page at 2024-09-20T07:50:15.195+0000.
Install Azure CLI 2.0 - DragonBoard410c - 96Boards <strong>f</strong>orum

Install Azure CLI 2.0

Install Azure CLI 2.0
Targeting Linaro Release 17.09 (283) till Debian Baster is released.
Using

  • Windows 10 Pro x64

Prerequisites: Setup GUI Development Environment (eMMC Boot)

Connect to DB410c with Putty with [User Name]@[IP address]

sudo su

Add temporary environment variable to simplify installation
Distro=$(lsb_release -is)
Codename=$(lsb_release -cs)
Channel=edge
Arch="$(dpkg --print-architecture | awk -f- '{ print $Nf }')"

Add Azure CLI 2.0 Source List
echo "deb [arch=$Arch] https://packages.microsoft.com/repos/azure-cli/ $Codename main" | sudo tee /etc/apt/sources.list.d/azure-cli.list

apt update

Add GPG keys
apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16f86fEE04B979B07E28DB02C46Df417A0893
apt-key adv --keyserver packages.microsoft.com --recv-keys EB3E94ADBE1229Cf

Add Azure CLI 2.0 package
apt-get update && sudo apt-get install azure-cli -y

exit

List Azure CLI Extension
az extension list

Install Azure IoT CLI Azure CLI Extension
az extension add -n azure-cli-iot-ext

Install Extended Batch Azure CLI Extension
az extension add -n azure-batch-cli-extensions

Install Event Hubs Azure CLI Extension
az extension add -n eventhubs

Install Event Image Copy Azure CLI Extension
az extension add -n image-copy-extension

Install Event ServiceBus Azure CLI Extension
az extension add -n servicebus

Install Event Subscription Azure CLI Extension
az extension add -n subscription

Install App Service Azure CLI Extension
az extension add -n webapp

Upgrade Azure CLI
sudo apt-get update && sudo apt-get install --only-upgrade -y azure-cli

Uninstall with apt-get remove.
sudo apt-get remove -y azure-cli

Remove the Azure CLI repository information (if not needed in the future)
sudo rm /etc/apt/sources.list.d/azure-cli.list

Remove any unneeded packages.
sudo apt autoremove

2 Likes