Skip to content

Commit a482dc9

Browse files
authored
Merge pull request #9068 from kubernetes-sigs/doc/azure-cli
chore: install latest azure-cli in e2e test
2 parents a159d51 + af52c74 commit a482dc9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

hack/ensure-azcli.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@ set -o errexit
1818
set -o nounset
1919
set -o pipefail
2020

21-
# Store an Azure CLI version of choice
22-
AZ_VER=2.69.0
23-
24-
echo "installing Azure CLI $AZ_VER"
21+
echo "installing Azure CLI"
2522
apt-get update && apt-get install -y ca-certificates curl apt-transport-https lsb-release gnupg
2623
curl --retry 3 -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null
2724
AZ_DIST=$(lsb_release -cs)
2825
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ ${AZ_DIST} main" | tee /etc/apt/sources.list.d/azure-cli.list
2926
apt-get update
3027
# Install a specific version
31-
apt-get install azure-cli=${AZ_VER}-1~${AZ_DIST} -y --allow-downgrades
28+
apt-get install azure-cli -y

0 commit comments

Comments
 (0)