locked
AzCopy to download RRS feed

  • Question

  • I used azcopy uploaded successfully a 10GB of file to my storage container. However having trouble to download it onto another computer.

    I used "azcopy.exe login" with my tenant ID which I logged in successfully. Then I ran the following command:

    azcopy.exe cp 'https://storageaccount.blob.core.windows.net/container1/xxx.iso' F:\xxx.iso

    It failed in a few seconds. When looked into the log, it showed the following error:

    "File Creation Error mkdir \\?: The filename, directory name, or volume label syntax is incorrect. Dst: %5%5C?\f:\xxx.iso....."

    So it seems there error is from the local access to the drive F:, but I verified with my credential I can create and delete files manually on drive F:. And also there is enough space left to save the file.

    I also tried to use the SAS of the container1 and tried to download but also errored out.

    I'm using the latest version of azcopy.

    Any inside or suggestions?? Thanks.

    Tuesday, November 5, 2019 11:43 PM

Answers

  • Made it work here. 

    Just in case anybody experiences the same issue. Here is what was discovered:

    the destination had to be in a folder rather than at the root of a drive. So instead of 

    azcopy.exe cp 'https://storageaccount.blob.core.windows.net/container1/xxx.iso' F:\xxx.iso

    it should be:

    azcopy.exe cp 'https://storageaccount.blob.core.windows.net/container1/xxx.iso' F:\ISO\xxx.iso

    I thought it was due to the local permission issue, but my drive F: has NTFS ACLs all inherited down. So not sure if this is a bug of azcopy. But in case anybody's experiencing the same issue, that was the trick.

    Wednesday, November 6, 2019 12:20 AM

All replies

  • Made it work here. 

    Just in case anybody experiences the same issue. Here is what was discovered:

    the destination had to be in a folder rather than at the root of a drive. So instead of 

    azcopy.exe cp 'https://storageaccount.blob.core.windows.net/container1/xxx.iso' F:\xxx.iso

    it should be:

    azcopy.exe cp 'https://storageaccount.blob.core.windows.net/container1/xxx.iso' F:\ISO\xxx.iso

    I thought it was due to the local permission issue, but my drive F: has NTFS ACLs all inherited down. So not sure if this is a bug of azcopy. But in case anybody's experiencing the same issue, that was the trick.

    Wednesday, November 6, 2019 12:20 AM
  • Great. Please mark your own reply as answer to close the thread.


    Regards,
    Vaibhav

    Wednesday, November 6, 2019 4:54 AM