Skip to content

Commit

Permalink
[ubuntu] Remove apt sources used to install azure-cli only (actions#3274
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Sergey Dolin authored May 5, 2021
1 parent 0cca9be commit adf1f3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ function Get-JqVersion {

function Get-AzureCliVersion {
$azcliVersion = az -v | Select-String "azure-cli" | Take-OutputPart -Part -1
return "Azure CLI (azure-cli) $azcliVersion"
$aptSourceRepo = Get-AptSourceRepository -PackageName "azure-cli"
return "Azure CLI (azure-cli) $azcliVersion (installation method: $aptSourceRepo)"
}

function Get-AzureDevopsVersion {
Expand Down
5 changes: 4 additions & 1 deletion images/linux/scripts/installers/azure-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@

# Install Azure CLI (instructions taken from https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
echo "azure-cli https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt" >> $HELPER_SCRIPTS/apt-sources.txt
rm -f /etc/apt/sources.list.d/azure-cli.list
rm -f /etc/apt/sources.list.d/azure-cli.list.save

invoke_tests "CLI.Tools" "Azure CLI"
invoke_tests "CLI.Tools" "Azure CLI"

0 comments on commit adf1f3d

Please sign in to comment.