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-custom-commands.md
+5-33Lines changed: 5 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,14 +156,11 @@ The create collection extension command creates a new MongoDB collection. The da
156
156
The following table describes the parameters within the command:
157
157
158
158
|**Field**|**Type**|**Required**|**Description**|
159
-
|---------|---------|---------|
160
-
| customAction | string | Required | Name of the custom command. Must be "CreateCollection". |
161
-
| collection | string | Required | Name of the collection. No special characters are allowed. |
162
-
| offerThroughput | int | Optional*| Provisioned Throughput to set on the database. If it isn't provided, it will default to the minimum, 400 RU/s. * To specify throughput beyong 10,000 RU/s, the `shardKey` parameter will be required. |
163
-
| shardKey | string | Optional | Shard Key path to create a sharded collection. If it is specified, all documents inserted will require this value. |
164
-
| autopilotTier | int | Optional*| The tier of Autopilot RU/s. Accepted values are 1 through 4, which map to each one of the [Autopilot tiers](https://docs.microsoft.com/azure/cosmos-db/provision-throughput-autopilot#autopilot-limits) respectively. Can't be specified alongside the `offerThroughput` parameter. Any value greater than 1 will require the `shardKey` parameter. |
165
-
| autopilotAutoUpgrade | boolean | Optional*| Ability to automatically increase the Autopilot tier. *It requires `autopilotTier` to be specified, as well as the `shardKey` parameter. |
166
-
159
+
|---------|---------|---------|---------|
160
+
| customAction | string | Required | Name of the custom command. Must be "CreateCollection".|
161
+
| collection | string | Required | Name of the collection. No special characters are allowed.|
162
+
| offerThroughput | int | Optional*| Provisioned Throughput to set on the database. If it isn't provided, it will default to the minimum, 400 RU/s. * To specify throughput beyong 10,000 RU/s, the `shardKey` parameter will be required.|
163
+
| shardKey | string | Optional*| Shard Key path to create a sharded collection. This parameter is required if you set more than 10,000 RU/s in `offerThroughput`. If it is specified, all documents inserted will require this value. |
To create a sharded Autopilot collection with name "testCollection" and with Autopilot Tier 3, which maps to 100,000 RUs, and a shardKey property "a.b", use the following command:
To create a sharded Autopilot collection with name "testCollection" and with Autopilot Tier 2, which maps to 20,000 RUs, a shardKey property "a.b", and the ability to auto increase the tier when needed, use the following command:
0 commit comments