Skip to content

Commit 42beef9

Browse files
authored
Merge pull request #216561 from vmagelo/python-qs
Refresh quickstart for MongoDb and Python
2 parents b0f0902 + 4fb8076 commit 42beef9

6 files changed

+227
-101
lines changed

.openpublishing.publish.config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,12 @@
883883
"url": "https://github.com/MicrosoftDocs/reusable-content",
884884
"branch": "main",
885885
"branch_mapping": {}
886+
},
887+
{
888+
"path_to_root": "azure-cosmos-db-mongodb-python-getting-started",
889+
"url": "https://github.com/Azure-Samples/azure-cosmos-db-mongodb-python-getting-started",
890+
"branch": "main",
891+
"branch_mapping": {}
886892
}
887893
],
888894
"branch_target_mapping": {

articles/cosmos-db/mongodb/includes/azure-cli-get-connection-string.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ ms.service: cosmos-db
44
ms.subservice: mongodb
55
ms.custom: ignite-2022
66
ms.topic: include
7-
ms.date: 06/13/2019
7+
ms.date: 10/31/2022
88
ms.author: diberry
99
---
10-
1. Find the API for MongoDB **connection string** from the list of connection strings for the account with the [``az cosmosdb list-connection-strings``](/cli/azure/cosmosdb#az-cosmosdb-list-connection-strings) command.
10+
1. Find the API for MongoDB **connection string** from the list of connection strings for the account with the [``az cosmosdb keys list``](/cli/azure/cosmosdb/keys#az-cosmosdb-keys-list) command.
1111

1212
```azurecli-interactive
13-
az cosmosdb list-connection-strings \
13+
cosmosdb keys list --type connection-strings \
1414
--resource-group $resourceGroupName \
1515
--name $accountName
1616
```

articles/cosmos-db/mongodb/includes/environment-variables-connection-string.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.topic: include
77
ms.date: 06/13/2019
88
ms.author: diberry
99
---
10-
To use the **CONNECTION STRING** values within your code, set this value on the local machine running the application. To set the environment variable, use your preferred terminal to run the following commands:
10+
To use the **CONNECTION STRING** values within your code, set this value in the local environment running the application. To set the environment variable, use your preferred terminal to run the following commands:
1111

1212
#### [Windows](#tab/windows)
1313

articles/cosmos-db/mongodb/includes/powershell-create-resource-group-and-resource.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ms.service: cosmos-db
44
ms.subservice: mongodb
55
ms.custom: ignite-2022
66
ms.topic: include
7-
ms.date: 06/13/2019
7+
ms.date: 10/31/2022
88
ms.author: diberry
99
---
1010
1. Create shell variables for *ACCOUNT_NAME*, *RESOURCE_GROUP_NAME*, and **LOCATION**.
@@ -38,7 +38,7 @@ ms.author: diberry
3838
ResourceGroupName = $RESOURCE_GROUP_NAME
3939
Name = $ACCOUNT_NAME
4040
Location = $LOCATION
41-
Kind = "MongoDB"
41+
ApiKind = "MongoDB"
4242
}
4343
New-AzCosmosDBAccount @parameters
4444
```

0 commit comments

Comments
 (0)