Azcopy 7.3.0 to copy tables from table storage using GitHub Actions

Samael 1 Reputation point
2022-10-04T07:30:32.79+00:00

I'm trying to copy tables from "table storage" using GitHub Actions , but with version 7.3.0 of azcopy shows the following error message :

[2022/09/27 17:13:45.525+00:00][VERBOSE] 7.3.0 : azcopy --source https://sourcestorage.table.core.windows.net/TestTable1 --destination /home/runner/tableexport/ --source-key ****** --verbose    

Error: 9/27 17:13:45][ERROR] The syntax of the command is incorrect. The source azure storage location type can not be inferred. Use --source-type <blob|file> to specify the location type explicitly.    

The source type is not blob or file , and I think that using domain table.core.windows.net the command should detect that the source is table storage. Can you help me with this problem?. Thanks in advance.

Best Regards

Azure Table Storage
Azure Table Storage
An Azure service that stores structured NoSQL data in the cloud.
156 questions
{count} votes

2 answers

Sort by: Most helpful
  1. ShaktiSingh-MSFT 13,271 Reputation points Microsoft Employee
    2022-10-04T10:06:50.277+00:00

    Hi @Samael ,

    Welcome to Microsoft Q&A portal and thanks for using Azure Services.

    Regarding the syntax error received as mentioned in the question, could you please try below mentioned command:

    AzCopy /Source:https://myaccount.table.core.windows.net/myTable/ /Dest:C:\myfolder\ /SourceKey:key

    Reference link: Export data from Table storage-azcopy

    Hope this will help. Please let us know if any further queries.

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

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you.
      Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a [notification][40]

  2. Samael 1 Reputation point
    2022-10-13T05:58:09.603+00:00

    Hi,

    Could you please refer to this post's discussions and see if it helps.

    I think that is not my problem because in my case I get only 2 files into directory .

    Directory: D:\a\MDTest\MDTest\tableexport  
    

    Mode LastWriteTime Length Name


    -a--- 10/12/2022 10:33 PM 330 testlakestorage_TestTable1_20221012T223342.3016262Z_0_0_D5681845FB3D
    82AB.json
    -a--- 10/12/2022 10:33 PM 202 testlakestorage_TestTable1_20221012T223342.3016262Z.manifest

    Showing manifest with type command :

    "Version":2,"PayloadFormat":"Json","Checksum":15377567616503481003,"AccountName":"testlakestorage","TableName":"TestTable1","Timestamp":"2022-10-12T22:33:42.3016262Z","SplitSize":0,"TotalDataFiles":1

    I can't watch where is the ':' that is generating the problem. The document appears well formed.

    Best Regards