I have a VM and the Vnet of the VM is added on the Storage account('allow access from selected network' setting).
I run azcopy.exe sync
command from the VM and it works when the Blob container is public. When I make it private it fails with this error:
Code: PublicAccessNotPermitted
RESPONSE Status: 409 Public access is not permitted on this storage account.
So if public access is not allowed then sync will not work ?
SAS key worked but access key failed for private blob container. So changing to SAS key was my solution.