зеркало из https://github.com/microsoft/AzureTRE.git
21 строка
697 B
Bash
Executable File
21 строка
697 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o pipefail
|
|
set -o nounset
|
|
# Uncomment this line to see each command for debugging (careful: this will show secrets!)
|
|
# set -o xtrace
|
|
|
|
# Install Azure CLI
|
|
apt-get update
|
|
apt-get -y install ca-certificates curl apt-transport-https lsb-release gnupg
|
|
curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
|
|
AZ_REPO="$(lsb_release -cs)"
|
|
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | tee /etc/apt/sources.list.d/azure-cli.list
|
|
apt-get update
|
|
apt-get -y install azure-cli="${AZURE_CLI_VERSION}"
|
|
|
|
# apt cleanup
|
|
apt-get clean -y
|
|
rm -rf /var/lib/apt/lists/*
|