From 76d6f0f574463aa5a748dc0bbf3189a41f23ba3f Mon Sep 17 00:00:00 2001 From: Alexey-Ayupov <116575425+Alexey-Ayupov@users.noreply.github.com> Date: Mon, 11 Dec 2023 13:07:50 +0100 Subject: [PATCH] [Ubuntu] Temporary pin the AzCopy version (#8982) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alexey Ayupov <“alexey.ayupov@akvelon.com”> --- images/ubuntu/scripts/build/install-azcopy.sh | 3 ++- images/ubuntu/scripts/docs-gen/SoftwareReport.Tools.psm1 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/images/ubuntu/scripts/build/install-azcopy.sh b/images/ubuntu/scripts/build/install-azcopy.sh index a93d663d1..83132cc46 100644 --- a/images/ubuntu/scripts/build/install-azcopy.sh +++ b/images/ubuntu/scripts/build/install-azcopy.sh @@ -7,7 +7,8 @@ source $HELPER_SCRIPTS/install.sh # Install AzCopy10 -archive_path=$(download_with_retry "https://aka.ms/downloadazcopy-v10-linux") +# Temporary pin 10.21.2 version of AzCopy until 10.22.0 is fixed +archive_path=$(download_with_retry "https://azcopyvnext.azureedge.net/releases/release-10.21.2-20231106/azcopy_linux_amd64_10.21.2.tar.gz") tar xzf "$archive_path" --strip-components=1 -C /tmp install /tmp/azcopy /usr/local/bin/azcopy # Create azcopy 10 alias for backward compatibility diff --git a/images/ubuntu/scripts/docs-gen/SoftwareReport.Tools.psm1 b/images/ubuntu/scripts/docs-gen/SoftwareReport.Tools.psm1 index 6ed4470d2..7f1dffb65 100644 --- a/images/ubuntu/scripts/docs-gen/SoftwareReport.Tools.psm1 +++ b/images/ubuntu/scripts/docs-gen/SoftwareReport.Tools.psm1 @@ -10,7 +10,7 @@ function Get-AptFastVersion { } function Get-AzCopyVersion { - $azcopyVersion = azcopy --version | Get-StringPart -Part 2 + $azcopyVersion = [string]$(azcopy --version) | Get-StringPart -Part 2 return "$azcopyVersion - available by ``azcopy`` and ``azcopy10`` aliases" }