Created
February 11, 2024 04:47
-
-
Save r3xakead0/66589570d5ec6f1d363bf1cbb91aab09 to your computer and use it in GitHub Desktop.
Install Azure Client on Linux Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get packages needed for the installation process | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg -y | |
# Download and install the Microsoft signing key | |
sudo mkdir -p /etc/apt/keyrings | |
curl -sLS https://packages.microsoft.com/keys/microsoft.asc | | |
gpg --dearmor | | |
sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null | |
sudo chmod go+r /etc/apt/keyrings/microsoft.gpg | |
# Add the Azure CLI software repository | |
AZ_DIST=$(lsb_release -cs) | |
echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $AZ_DIST main" | | |
sudo tee /etc/apt/sources.list.d/azure-cli.list | |
# Update repository information and install the azure-cli package | |
sudo apt-get update | |
sudo apt-get install azure-cli -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment