Search code examples
azureazure-storage

azcopy sync failing with "409 Public access is not permitted on this storage account." on private container


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 ?


Solution

  • SAS key worked but access key failed for private blob container. So changing to SAS key was my solution.