0
votes

Trying to send files using a remote on-premises server and azcopy from one ADLS storage account to another storage account(weird requirement but needed).

azcopy cp 'https://mysourceaccount.dfs.core.windows.net/mycontainer?sxxxxxx' 'https://mydestinationaccount.dfs.core.windows.net/mycontainer' --recursive

throws an error saying below:

enter image description here

1
Please edit your question to include formatted text for your error output, not images of text. This meta post lists many reasons why this is important. - David Makogon

1 Answers

1
votes

I tested in my environment and it is working for me Please use the below formatted command (You were missing SAS token for second container and –recursive=true)

azcopy copy "https://tstadlsstorage1.dfs.core.windows.net/testcontainer?SAS_token_for_container_in_source_storageaccount" "https://tstadlsstorage2.dfs.core.windows.net/testcontainer2?SAS_token_for_container_in_destination_storageaccount"
--recursive=true

enter image description here

Output--

enter image description here

enter image description here