Source Information
Prepare data for assembling a connection string:
Grab the value of Azure Table Endpoint from Overview page, for example: https://name-of-your-cosmos-db-account.table.cosmos.azure.com:443/
Modify this URL, replacing table.cosmos.azure.com with documents.azure.com
Grab the value of PRIMARY KEY from Connection String page
Grab the name of the root node on the Data Explorer page, this will be your database name.
2. Assemble the connection string as follows:
AccountEndpoint=https://name-of-your-cosmos-db-account.documents.azure.com:443/;AccountKey=primary-key-goes-here;Database=Your-DB-Name
3. Expand the root node (Your-DB-Name) and take a note of a table you want to export, for example My-Table-Name
4. Fill in the form on the Source Information tab:
Import from: Azure Cosmos DB
Connection String: use connection string created in step 2. Click Verify button, it should work.
Collection: My-Table-Name
Other fields: leave them to defaults, or you can optionally specify a query to limit the export
5. Click Next button to configure Target Information
Target Information
Export To: JSON file
Choose Local File radio button option, specify path, optionally select Prettify JSON.
Click Next to complete the wizard and run through the export.
The JSON file should be saved in the directory you specified, or if you didn’t - in the folder you have started the data management tool from.
No comments:
Post a Comment