File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
images/linux/scripts/installers Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 55# ###############################################################################
66
77# Install Azure CLI (instructions taken from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
8- curl -fsSL https://aka.ms/InstallAzureCLIDeb | sudo bash
8+ # temporary pin v2.25.0
9+ sudo mkdir -p /etc/apt/keyrings
10+ curl -sLS https://packages.microsoft.com/keys/microsoft.asc |
11+ gpg --dearmor |
12+ sudo tee /etc/apt/keyrings/microsoft.gpg > /dev/null
13+ sudo chmod go+r /etc/apt/keyrings/microsoft.gpg
14+ AZ_DIST=$( lsb_release -cs)
15+ 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
16+ sudo apt-get update
17+ AZ_VER=2.52.0
18+ sudo apt-get install azure-cli=$AZ_VER -1~$AZ_DIST
919echo " azure-cli https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt" >> $HELPER_SCRIPTS /apt-sources.txt
1020rm -f /etc/apt/sources.list.d/azure-cli.list
1121rm -f /etc/apt/sources.list.d/azure-cli.list.save
You can’t perform that action at this time.
0 commit comments