You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/mongodb/how-to-configure-capabilities.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how to configure your API for MongoDB account capabilities
4
4
author: gahl-levy
5
5
ms.service: cosmos-db
6
6
ms.topic: how-to
7
-
ms.date: 07/01/2022
7
+
ms.date: 09/06/2022
8
8
ms.author: gahllevy
9
9
---
10
10
@@ -32,6 +32,10 @@ Copy each of these capabilities. In this example, we have EnableMongo and Disabl
32
32
```powershell
33
33
az cosmosdb update -n <account_name> -g <azure_resource_group> --capabilities EnableMongo, DisableRateLimitingResponses
34
34
```
35
+
If you are using PowerShell and receive an error using the command above, try using a PowerShell array instead to list the capabilities:
36
+
```powershell
37
+
az cosmosdb update -n <account_name> -g <azure_resource_group> --capabilities @("EnableMongo","DisableRateLimitingResponses")
38
+
```
35
39
36
40
## Disable a capability
37
41
1. Retrieve your existing account capabilities:
@@ -55,6 +59,10 @@ Copy each of these capabilities. In this example, we have EnableMongo and Disabl
55
59
```powershell
56
60
az cosmosdb update -n <account_name> -g <azure_resource_group> --capabilities EnableMongo
57
61
```
62
+
If you are using PowerShell and receive an error using the command above, try using a PowerShell array instead to list the capabilities:
63
+
```powershell
64
+
az cosmosdb update -n <account_name> -g <azure_resource_group> --capabilities @("EnableMongo")
65
+
```
58
66
59
67
## Next steps
60
68
@@ -63,4 +71,4 @@ az cosmosdb update -n <account_name> -g <azure_resource_group> --capabilities En
63
71
- Explore MongoDB [samples](nodejs-console-app.md) with Azure Cosmos DB API for MongoDB.
64
72
- Trying to do capacity planning for a migration to Azure Cosmos DB? You can use information about your existing database cluster for capacity planning.
65
73
- If all you know is the number of vCores and servers in your existing database cluster, read about [estimating request units using vCores or vCPUs](../convert-vcore-to-request-unit.md).
66
-
- If you know typical request rates for your current database workload, read about [estimating request units using Azure Cosmos DB capacity planner](estimate-ru-capacity-planner.md).
74
+
- If you know typical request rates for your current database workload, read about [estimating request units using Azure Cosmos DB capacity planner](estimate-ru-capacity-planner.md).
0 commit comments