Skip to content

Commit 5d758b4

Browse files
authored
Merge pull request #30339 from cBashTN/patch-1
Update import-data with hint to valid connection string
2 parents 658a167 + 71d6a67 commit 5d758b4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

articles/cosmos-db/import-data.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,20 @@ The JSON file source importer option allows you to import one or more single doc
8181

8282
![Screenshot of JSON file source options - Database migration tools](./media/import-data/jsonsource.png)
8383

84+
The connection string is in the following format:
85+
86+
`AccountEndpoint=<CosmosDB Endpoint>;AccountKey=<CosmosDB Key>;Database=<CosmosDB Database>`
87+
88+
* The `<CosmosDB Endpoint>` is the endpoint URI. You can get this value from the Azure portal. Navigate to your Azure Cosmos account. Open the **Overview** pane and copy the **URI** value.
89+
* The `<AccountKey>` is the "Password" or **PRIMARY KEY**. You can get this value from the Azure portal. Navigate to your Azure Cosmos account. Open the **Connection Strings** or **Keys** pane, and copy the "Password" or **PRIMARY KEY** value.
90+
* The `<CosmosDB Database>` is the CosmosDB database name.
91+
92+
Example:
93+
`AccountEndpoint=https://myCosmosDBName.documents.azure.com:443/;AccountKey=wJmFRYna6ttQ79ATmrTMKql8vPri84QBiHTt6oinFkZRvoe7Vv81x9sn6zlVlBY10bEPMgGM982wfYXpWXWB9w==;Database=myDatabaseName`
94+
95+
> [!NOTE]
96+
> Use the Verify command to ensure that the Cosmos DB account specified in the connection string field can be accessed.
97+
8498
Here are some command-line samples to import JSON files:
8599

86100
```console

0 commit comments

Comments
 (0)