Skip to content

Commit

Permalink
hotfix(ubuntu) correct azure-cli installation method to support packa…
Browse files Browse the repository at this point in the history
…ge increments (#826)

Signed-off-by: Damien Duportal <[email protected]>
  • Loading branch information
dduportal authored Sep 26, 2023
1 parent 9deda54 commit c3efbac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions provisioning/ubuntu-provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,10 @@ function install_azurecli() {
curl -sLS https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/keyrings/microsoft.gpg > /dev/null
chmod go+r /etc/apt/keyrings/microsoft.gpg
# Add the Azure CLI software repository
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" | tee /etc/apt/sources.list.d/azure-cli.list
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/azure-cli.list
# Update repository information and install the azure-cli package
apt-get update --quiet
apt-get install --yes --no-install-recommends azure-cli="${AZURECLI_VERSION}-1~${az_repo}"
apt-get install --yes --no-install-recommends azure-cli="${AZURECLI_VERSION}*"
}

## Ensure that the GitHub command line (`gh`) is installed
Expand Down

0 comments on commit c3efbac

Please sign in to comment.