st loadbatch
[This document supports a preliminary release of a software product that may be changed substantially prior to final commercial release. This document is provided for informational purposes only.]
Uploads an entity collection from an input file into the specified container.
st loadbatch <authorityid> <containerid> <payload-file>
<credentials>
[/REST | /SOAP]
[/parallel:<number>] [/verbose]
Examples
Example 1 Upload entities from a file
The following example uploads samples entities from the input file (MyLoadBatch.xml
) to a container, c1
, in myauth
authority.
cmdPrompt>st loadbatch myauth c1 MyLoadBatch.xml /host:data.database.windows.net /user:UserName
To test the command, save the following XML to (MyLoadBatch.xml).
<Book xmlns:s="https://schemas.microsoft.com/sitka/2008/03/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:x="http://www.w3.org/2001/XMLSchema">
<s:Id>e1000</s:Id>
<strProp xsi:type="x:string">Some Book 1</strProp>
</Book>
<Book xmlns:s="https://schemas.microsoft.com/sitka/2008/03/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:x="http://www.w3.org/2001/XMLSchema">
<s:Id>e1001</s:Id>
<strProp xsi:type="x:string">Some books 2</strProp>
</Book>
To verify, execute query against the container:
cmdPrompt>st query myauth c1 "from e in entities select e" /host:data.database.windows.net /user:UserName