diff --git a/challenges/Module2-Migrating MongoDB Apps to Azure Cosmos DB(Mongo API).MD b/challenges/Module2-Migrating MongoDB Apps to Azure Cosmos DB(Mongo API).MD index da93b7b..bae607e 100644 --- a/challenges/Module2-Migrating MongoDB Apps to Azure Cosmos DB(Mongo API).MD +++ b/challenges/Module2-Migrating MongoDB Apps to Azure Cosmos DB(Mongo API).MD @@ -110,10 +110,17 @@ mongoimport --host : -u -p --ssl --sslAllowInv ### Update Application to use Cosmos DB -1. Go back to Visual Studio Code IDE in Jump VM and and paste the **URI** value against **DOCUMENT_DB_ENDPOINT**, **PRIMARY KEY** against **DOCUMENT_DB_PRIMARYKEY**,type **contosoairdb3** against **DOCUMENT_DB_DATABASE** and **Primary Connection String** Against **MONGO_DB_COONECTION_STRING**(add database name contosoairdb3 before question mark in primary connection string) as in the config.js.
- +1. Go back to Visual Studio Code IDE in Jump VM. In the file explorer under ContosoAir.Services find config.js and click on it. +Now paste the following values from the Connecting String information in the Azure Portal into your config.js file:
+* **DOCUMENT_DB_ENDPOINT** = **URI**
+* **DOCUMENT_DB_PRIMARYKEY** = **PRIMARY KEY**
+* **DOCUMENT_DB_DATABASE** = **contosoairdb3**
+* **MONGO_DB_COONECTION_STRING** = **Primary Connection String**
+ (add database name contosoairdb3 before question mark in primary connection string)
+ +Sample: ```bash -mongodb://cosmosdb12345:vMTETikja355VZjnJQGC3gwdLaR8xjNlpUq65loZVd4pLvmlG9PB25eqOb7V0EWFnvkqzd9GMp4vjiiDYGLahw==@cosmosdb12345.documents.azure.com:10255/**contosoairdb3**?ssl=true&replicaSet=globaldb +mongodb://cosmosdb12345:vMTETikja355VZjnJQGC3gwdLaR8xjNlpUq65loZVd4pLvmlG9PB25eqOb7V0EWFnvkqzd9GMp4vjiiDYGLahw==@cosmosdb12345.documents.azure.com:10255/contosoairdb3?ssl=true&replicaSet=globaldb ``` 2. Navigate back to the **Azure Portal** Resource groups option present in the favourites menu on the left side panel and select the resource group "" and click on **Azure Cosmos DB Account** then, click on **Replicate data globally** option present under **SETTINGS** section in Cosmos DB Account blade.