locked
Blob Storage command can't handle a '-' in the filename RRS feed

  • Question

  • I am running the following command in a unix BASH script:

    az storage blob download --container-name $BLOBContainer --name Myfiles/$FileName  --file ./$FileName

    The command errors out because the filename has a '-' (dash character) in it, and the command thinks it is a new parameter.

    How can I specify a filename stored on the BLOB that has a '-' character in it.  

    I can't rename or copy it because that has the same issue.  I tried enclosing the filename in quotes - that didn't work either.

    Tuesday, May 28, 2019 4:47 PM

All replies

  • Thanks for posting, Can you share the full error message you are receiving as well as which AZ CLI version currently used?
    Tuesday, May 28, 2019 6:18 PM
  • @peterbit Just checking in to see if you have had a chance to see the previous response. Could you share the above required information to understand/investigate this issue further?

    Monday, June 10, 2019 10:05 AM