AzCopy 10.0.7-Preview
Windows
azcopy login
azcopy copy 'https://[account1].blob.core.windows.net/[container1]/log.txt' 'https://[account2].blob.core.windows.net/[container2]/log.txt'
This gives the error:
Scanning...
Using OAuth token for authentication.
failed to perform copy command due to error: cannot start job due to error: cannot copy the entire container or directory without recursive flag. Please use --recursive flag.
--recursive is not relevant in this case, and if I add the flag I get a 404 The specified resource does not exist. which is a typical error if you are not authenticated too. Adding SAS exclusively to the source works:
azcopy copy 'https://[account1].blob.core.windows.net/[container1]/log.txt?[SAS]' 'https://[account2].blob.core.windows.net/[container2]/log.txt'
But adding SAS to the destination does not:
azcopy copy 'https://[account1].blob.core.windows.net/[container1]/log.txt' 'https://[account2].blob.core.windows.net/[container2]/log.txt?[SAS]'
It would be nice if the Azure Block Blob (OAuth ) <-> Azure Block Blob (OAuth) pair could be supported.
Setup 2 blobs that both require OAuth and transfer between them.
Hi @Mmdixon, thanks for reaching out!
The actual copy is done by the service, which means that the service (destination account) must be able to read your source blob. It wouldn't be safe to give the service your OAuth token, so we require the source to have a SAS. However, there will be a new feature soon that would enable your suggestion. Please stay tuned. 馃槃
@jiacfan We should definitely improve the error message.
We are running into this issue, too.
@zezha-msft wrote on 2/14/2019: "However, there will be a new feature soon that would enable your suggestion." Is there any progress on this issue?
@mattiasmoser8451 thanks for the feedbacks! A PR was raised but it needs to be reworked a bit. We'll try to fit it in a future release very soon.
Most helpful comment
Hi @Mmdixon, thanks for reaching out!
The actual copy is done by the service, which means that the service (destination account) must be able to read your source blob. It wouldn't be safe to give the service your OAuth token, so we require the source to have a SAS. However, there will be a new feature soon that would enable your suggestion. Please stay tuned. 馃槃
@jiacfan We should definitely improve the error message.