I want to share my case to help those who might encounter a similar error.
My case
My storage was only accessible from a limited set of public IPs. I could run the AzCopy commands from my house without any issues, but running the same command from a VM in Azure generated an error. To make things worse, I could run AzCopy Sync
successfully as long as the blobs were the same or in --dry-run
mode, but I could not copy them.
Investigation
The public IPs of the VMs were in the allow list.
<br>However some transactions were done with non-routable IPs, I could not add the private IP 10.x.x.x/16
to that list.
Solution
After reviewing the logs, I noticed that a new and unknown public IP from Microsoft was also attempting to do the copy. Once that IP was added to the allow list, the error was resolved.