diff --git a/octopus-samples-instances/shared-workers-terraform/configure-tentacle.sh b/octopus-samples-instances/shared-workers-terraform/configure-tentacle.sh index 8823200..03fa274 100644 --- a/octopus-samples-instances/shared-workers-terraform/configure-tentacle.sh +++ b/octopus-samples-instances/shared-workers-terraform/configure-tentacle.sh @@ -57,6 +57,23 @@ sudo apt-get install awscli -y # Install .NET 6 sudo apt-get install dotnet-sdk-6.0 -y +# Install az CLI +sudo apt-get update +sudo apt-get install ca-certificates curl apt-transport-https lsb-release gnupg + +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 + +AZ_REPO=$(lsb_release -cs) +echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | + sudo tee /etc/apt/sources.list.d/azure-cli.list + +sudo apt-get update +sudo apt-get install azure-cli + # Pull worker tools image sudo docker pull #{Project.Docker.WorkerToolImage}:#{Project.Docker.WorkerToolImageTag}