title: Use Azure Cosmos DB Migration Tool to export from Azure Table API to json
body: <p>I want to migrate the data from Cosmos Table API to a json file.</p>
  
  <p>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:</p>
  
  <pre><code>dt.exe /s:DocumentDB /s.ConnectionString:"PRIMARY CONNECTION STRING" /s.Collection:application /t:JsonFile
  </code></pre>
  
  <p>OR:</p>
  
  <pre><code>dt.exe /s:DocumentDB /s.ConnectionString:"PRIMARY CONNECTION STRING;Database=TablesDB" /s.Collection:application /t:JsonFile
  </code></pre>
  
  <p>and I receive this error:</p>
  
  <p><strong>Critical error: DocumentDB account end-point URL should be provided as part of the connection string</strong></p>
  
  <p>What am I missing?</p>