Error in AzCopy command error:The syntax of the command is incorrect. Error parsing the argument "copy": parameter name is required.

SaTechyv 6 Reputation points
2022-11-26T19:42:15.6+00:00

The following command throws error

----------------------------------------------

C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy>azcopy cp "<source folder>" "https://<storage acct>.blob.core.windows.net/?<sas key>" --include-path "file name"

error is
[ERROR] The syntax of the command is incorrect. Error parsing the argument "cp": parameter name is required.

---------------------------------------------

errored for "copy" commanf as well

---------------------------------------------

C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy>azcopy copy "<source folder>" "https://<storage acct>.blob.core.windows.net/?<sas key>" --include-path "file name"

error is
[ERROR] The syntax of the command is incorrect. Error parsing the argument "copy": parameter name is required.

pls help

Tks in adv

o

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,192 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. shiva patpi 13,366 Reputation points Microsoft Employee Moderator
    2022-11-26T20:31:23.477+00:00

    @SaTechyv ,
    I just tried the same command it went through successfully , which seems similar to your command.
    Can you try out couple of commands mentioned at https://learn.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-copy ?
    Start with copying a single file ...
    Also check the version of azcopy.
    Try with azcopy.exe (type whole executable name)
    Try to re-install the latest version (Myne is 10.6.0)

    264429-image.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.