-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Azure CLI ignores locally installed azcopy if version is 10.31.0~preview.1 #32363
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamStorageaz storageaz storageUpgradeaz upgradeaz upgradeact-codegen-extensibility-squadact-platform-engineering-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Labels
Auto-AssignAuto assign by botAuto assign by botAuto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamStorageaz storageaz storageUpgradeaz upgradeaz upgradeact-codegen-extensibility-squadact-platform-engineering-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
I have installed Azure CLI 2.71.0 and azcopy
10.31.0~preview.1. When I run the sync command I see Azure CLI ignores locally installed azcopy with version10.31.0~preview.1and downloads the old one10.13, which doesn't have argument--compare-hash.Related command
Errors
Issue script & Debug output
Looks like the used "packaging.version" package used in this code block doesn't support this version format
10.31.0~preview.1:Expected behavior
Version (even preview) is correctly resolved, and locally installed azcopy is used instead of downloading the new one (older version).
Environment Summary
azure-cli 2.71.0 *
core 2.71.0 *
telemetry 1.1.0
Dependencies:
msal 1.31.2b1
azure-mgmt-resource 23.1.1
Python location '/opt/az/bin/python3'
Config directory '/home/admin/.azure'
Extensions directory '/home/admin/.azure/cliextensions'
Python (Linux) 3.12.8 (main, Mar 25 2025, 10:55:23) [GCC 13.3.0]
Additional context
No response