Solvedazure docs can't download a file, thinks it's a directory

I did a azcopy login --tenant-id=<mytenantid>
that was successful
So then I tried copying a file out of a storage account blob. I do .\azcopy copy "https:\mystoraccount.blob.core.windows.net/mycontainer/blahblah.bak" "c:\temp\blahblah.bak"
but when I run that, it get failed to perform copy due to error: cannot use directory as source without --recursive.
but my bak file isn't a directory. it's a 'block blob (looking at the file I'm trying to download in my storage account, I see it's of type Block blob'. I tried to download a small log file, and get the same error (it too is a block blob). I'm running azcopy windows 64bit version 10.3.1.

if I add the --recursive, I get cannot start job due to error: cannot list blobs.

I can easily download the log file using Get-AzStorageBlobContent, and I inconsistently timeout downloading the bak file (no matter how big I set ServerTimeoutPerRequest/ClientTieoutPerRequest) (mostly it times out, occasionally it actually finishes)


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

22 Answers

✔️Accepted Answer

Seeing the same exact issue as @Plasma

azcopy copy 'https://asdf.blob.core.windows.net/asdf/filename.xlsx' '/asdf/filename.xlsx'

Related Issues:

25
azure docs Error deleting a network profile
The workaround that worked for me is to update the containerNetworkInterfaceConfigurations property ...
11
azure docs RBAC failing on AKS
I found that: Was enough in my case Thank you very much I walked through the steps here (https://doc...
9
azure docs can't download a file, thinks it's a directory
Seeing the same exact issue as @Plasma azcopy copy 'https://asdf.blob.core.windows.net/asdf/filename...