Angela
Angela

Reputation: 507

Use Azure Cosmos DB Migration Tool to export from Azure Table API to json

I want to migrate the data from Cosmos Table API to a json file.

I have copied the PRIMARY CONNECTION STRING from the portal and this is the command I am trying to run from using the migration tool:

dt.exe /s:DocumentDB /s.ConnectionString:"PRIMARY CONNECTION STRING" /s.Collection:application /t:JsonFile

OR:

dt.exe /s:DocumentDB /s.ConnectionString:"PRIMARY CONNECTION STRING;Database=TablesDB" /s.Collection:application /t:JsonFile

and I receive this error:

Critical error: DocumentDB account end-point URL should be provided as part of the connection string

What am I missing?

Upvotes: 0

Views: 1521

Answers (1)

Jay Gong
Jay Gong

Reputation: 23782

Critical error: DocumentDB account end-point URL should be provided as part of the connection string

Based on this error,the account url is lack in the connection string.You could follow the example from this link:

dt.exe /s:JsonFile /s.Files:.\Sessions.json /t:DocumentDBBulk /t.ConnectionString:"AccountEndpoint=;AccountKey=;Database=;"

Please check the AccountEndpoint= in your connection string and try again.

Upvotes: 0

Related Questions