Azcopy 409 Public access is not permitted on this storage account

Lyes Benchoubane 36 Reputation points


I try to copy file from Linux virtual machine on Azure (in a virtual network) to an account storage.

With Azcopy login It's working but I want to make it with SAS token.

I add my virtual network in "Networking".


And I generate a SAS key in "Shared acces signature"


On my linux virtual machine I have ip adress.


    sudo  azcopy cp ./myFile<mySASKey>  


In my log I have this:


I dont know where is the problem because when I try the same thing with oAuth2 connexion with azcopy login it's working.

Thanks for your help !

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,671 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,419 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,136 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 33,141 Reputation points Microsoft Employee

    I see you have already received an answer for this issue, adding double quotes to the URL resolved your issue.

    0 comments No comments