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 266153bd06f..3524b647827 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 @@ -23,7 +23,7 @@ STORAGE_RESOURCE_ENDPOINT = "https://storage.azure.com" SERVICES = {'blob', 'file'} -AZCOPY_VERSION = '10.5.0' +AZCOPY_VERSION = '10.8.0' class AzCopy: @@ -39,7 +39,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.azureedge.net/release20200709/azcopy_{}_{}_{}.{}' + base_url = 'https://azcopyvnext.azureedge.net/release20201211/azcopy_{}_{}_{}.{}' if self.system == 'Windows': if platform.machine().endswith('64'): @@ -53,11 +53,12 @@ def install_azcopy(self, install_location): else: raise CLIError('Azcopy ({}) does not exist.'.format(self.system)) try: - _urlretrieve(file_url, install_location) os.chmod(install_location, os.stat(install_location).st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH) + _urlretrieve(file_url, install_location) except IOError as err: - raise CLIError('Connection error while attempting to download azcopy ({})'.format(err)) + raise CLIError('Connection error while attempting to download azcopy {}. You could also install the ' + 'specified azcopy version to {} manually. ({})'.format(AZCOPY_VERSION, install_dir, err)) def check_version(self): try: