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" }