From e5f4386228ee9568bdd68852367a3f865537e520 Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Fri, 10 Jan 2025 20:21:23 +0800 Subject: [PATCH 1/2] update to latest azcopy download link with version 10.27.1 --- .../azure/cli/command_modules/storage/azcopy/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py b/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py index d39940196b7..0c94aac23f7 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py +++ b/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py @@ -22,7 +22,7 @@ STORAGE_RESOURCE_ENDPOINT = "https://storage.azure.com" SERVICES = {'blob', 'file'} -AZCOPY_VERSION = '10.13.0' +AZCOPY_VERSION = '10.27.1' class AzCopy: @@ -56,7 +56,8 @@ def install_azcopy(self, install_location): install_dir = os.path.dirname(install_location) if not os.path.exists(install_dir): os.makedirs(install_dir) - base_url = 'https://azcopyvnext.azureedge.net/release20211027/azcopy_{}_{}_{}.{}' + base_url = 'https://azcopyvnext-awgzd8g7aagqhzhe.b02.azurefd.net/releases/release-10.27.1-20241113/' \ + 'azcopy_{}_{}_{}.{}' if self.system == 'Windows': if platform.machine().endswith('64'): From e703bcd8bedec045f46038a3fd2e7a7ee354bd6b Mon Sep 17 00:00:00 2001 From: Zhiyi Huang <17182306+calvinhzy@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:50:55 +0800 Subject: [PATCH 2/2] latest version of azcopy has some memory leak issue, pin back to 10.13.0, if user requires a newer version, can follow the guide here https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10?tabs=dnf#download-the-azcopy-portable-binary --- .../azure/cli/command_modules/storage/azcopy/util.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py b/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py index 0c94aac23f7..d78b1a30fbe 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py +++ b/src/azure-cli/azure/cli/command_modules/storage/azcopy/util.py @@ -22,7 +22,7 @@ STORAGE_RESOURCE_ENDPOINT = "https://storage.azure.com" SERVICES = {'blob', 'file'} -AZCOPY_VERSION = '10.27.1' +AZCOPY_VERSION = '10.13.0' class AzCopy: @@ -56,9 +56,7 @@ def install_azcopy(self, install_location): install_dir = os.path.dirname(install_location) if not os.path.exists(install_dir): os.makedirs(install_dir) - base_url = 'https://azcopyvnext-awgzd8g7aagqhzhe.b02.azurefd.net/releases/release-10.27.1-20241113/' \ - 'azcopy_{}_{}_{}.{}' - + base_url = 'https://azcopyvnext-awgzd8g7aagqhzhe.b02.azurefd.net/release20211027/azcopy_{}_{}_{}.{}' if self.system == 'Windows': if platform.machine().endswith('64'): file_url = base_url.format('windows', 'amd64', AZCOPY_VERSION, 'zip')