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
This article explains the different ways to create a container in Azure Cosmos DB for Apache Cassandra. It shows how to create a container using Azure portal, Azure CLI, PowerShell, or supported SDKs. This article demonstrates how to create a container, specify the partition key, and provision throughput.
18
18
19
-
This article explains the different ways to create a container in Azure Cosmos DB for Apache Cassandra. If you are using a different API, see [API for MongoDB](../mongodb/how-to-create-container.md), [API for Gremlin](../gremlin/how-to-create-container.md), [API for Table](../table/how-to-create-container.md), and [API for NoSQL](../how-to-create-container.md) articles to create the container.
19
+
This article explains the different ways to create a container in Azure Cosmos DB for Apache Cassandra. If you're using a different API, see [API for MongoDB](../mongodb/how-to-create-container.md), [API for Gremlin](../gremlin/how-to-create-container.md), [API for Table](../table/how-to-create-container.md), and [API for NoSQL](../how-to-create-container.md) articles to create the container.
20
20
21
21
> [!NOTE]
22
-
> When creating containers, make sure you don’t create two containers with the same name but different casing. That’s because some parts of the Azure platform are not case-sensitive, and this can result in confusion/collision of telemetry and actions on containers with such names.
22
+
> When creating containers, make sure you don’t create two containers with the same name but different casing. That’s because some parts of the Azure platform aren't case-sensitive, and this can result in confusion/collision of telemetry and actions on containers with such names.
23
23
24
24
## <aid="portal-cassandra"></a>Create using Azure portal
25
25
@@ -29,7 +29,7 @@ This article explains the different ways to create a container in Azure Cosmos D
29
29
30
30
1. Open the **Data Explorer** pane, and select **New Table**. Next, provide the following details:
31
31
32
-
* Indicate whether you are creating a new keyspace, or using an existing one.
32
+
* Indicate whether you're creating a new keyspace, or using an existing one.
33
33
* Enter a table name.
34
34
* Enter the properties and specify a primary key.
35
35
* Enter a throughput to be provisioned (for example, 1000 RUs).
If you encounter timeout exception when creating a collection, do a read operation to validate if the collection was created successfully. The read operation throws an exception until the collection create operation is successful. For the list of status codes supported by the create operation see the [HTTP Status Codes for Azure Cosmos DB](/rest/api/cosmos-db/http-status-codes-for-cosmosdb) article.
54
54
55
-
## <aid="cli-mongodb"></a>Create using Azure CLI
56
-
57
-
[Create a Cassandra table with Azure CLI](../scripts/cli/cassandra/create.md). For a listing of all Azure CLI samples across all Azure Cosmos DB APIs see, [Azure CLI samples for Azure Cosmos DB](cli-samples.md).
58
-
59
-
## Create using PowerShell
60
-
61
-
[Create a Cassandra table with PowerShell](../scripts/powershell/cassandra/create.md). For a listing of all PowerShell samples across all Azure Cosmos DB APIs see, [PowerShell Samples](powershell-samples.md)
62
-
63
55
## Next steps
64
56
65
57
*[Partitioning in Azure Cosmos DB](../partitioning-overview.md)
This article explains the different ways to create a container in Azure Cosmos DB for Gremlin. It shows how to create a container using Azure portal, Azure CLI, PowerShell, or supported SDKs. This article demonstrates how to create a container, specify the partition key, and provision throughput.
17
+
This article explains the different ways to create a container in Azure Cosmos DB for Gremlin. It shows how to create a container using Azure portal, Azure CLI, PowerShell, or supported software development kits (SDKs). This article demonstrates how to create a container, specify the partition key, and provision throughput.
18
18
19
-
This article explains the different ways to create a container in Azure Cosmos DB for Gremlin. If you are using a different API, see [API for MongoDB](../mongodb/how-to-create-container.md), [API for Cassandra](../cassandra/how-to-create-container.md), [API for Table](../table/how-to-create-container.md), and [API for NoSQL](../how-to-create-container.md) articles to create the container.
19
+
This article explains the different ways to create a container in Azure Cosmos DB for Gremlin. If you're using a different API, see [API for MongoDB](../mongodb/how-to-create-container.md), [API for Cassandra](../cassandra/how-to-create-container.md), [API for Table](../table/how-to-create-container.md), and [API for NoSQL](../how-to-create-container.md) articles to create the container.
20
20
21
21
> [!NOTE]
22
-
> When creating containers, make sure you don’t create two containers with the same name but different casing. That’s because some parts of the Azure platform are not case-sensitive, and this can result in confusion/collision of telemetry and actions on containers with such names.
22
+
> When creating containers, make sure you don’t create two containers with the same name but different casing. That’s because some parts of the Azure platform aren't case-sensitive, and this can result in confusion/collision of telemetry and actions on containers with such names.
23
23
24
24
## <aid="portal-gremlin"></a>Create using Azure portal
25
25
@@ -29,7 +29,7 @@ This article explains the different ways to create a container in Azure Cosmos D
29
29
30
30
1. Open the **Data Explorer** pane, and select **New Graph**. Next, provide the following details:
31
31
32
-
* Indicate whether you are creating a new database, or using an existing one.
32
+
* Indicate whether you're creating a new database, or using an existing one.
[Create a Gremlin graph with Azure CLI](../scripts/cli/gremlin/create.md). For a listing of all Azure CLI samples across all Azure Cosmos DB APIs see, [Azure CLI samples for Azure Cosmos DB](cli-samples.md).
60
-
61
-
## Create using PowerShell
62
-
63
-
[Create a Gremlin graph with PowerShell](../scripts/powershell/gremlin/create.md). For a listing of all PowerShell samples across all Azure Cosmos DB APIs see, [PowerShell Samples](powershell-samples.md)
64
-
65
57
## Next steps
66
58
67
59
*[Partitioning in Azure Cosmos DB](../partitioning-overview.md)
This article explains the different ways to create a collection in Azure Cosmos DB for MongoDB. It shows how to create a collection using Azure portal, Azure CLI, PowerShell, or supported SDKs. This article demonstrates how to create a collection, specify the partition key, and provision throughput.
17
+
This article explains the different ways to create a collection in Azure Cosmos DB for MongoDB. It shows how to create a collection using Azure portal, Azure CLI, PowerShell, or supported software development kits (SDKs). This article demonstrates how to create a collection, specify the partition key, and provision throughput.
18
18
19
19
>[!NOTE]
20
20
> **Containers** and **collections** are similar to a table in a relational database. We refer to **containers** in the Azure Cosmos DB for NoSQL and throughout the Azure portal, while we use **collections** in the context of the Azure Cosmos DB for MongoDB to match the terminology used in MongoDB.
21
21
22
-
This article explains the different ways to create a collection in Azure Cosmos DB for MongoDB. If you are using a different API, see [API for NoSQL](../how-to-create-container.md), [API for Cassandra](../cassandra/how-to-create-container.md), [API for Gremlin](../gremlin/how-to-create-container.md), and [API for Table](../table/how-to-create-container.md) articles to create the collection.
22
+
This article explains the different ways to create a collection in Azure Cosmos DB for MongoDB. If you're using a different API, see [API for NoSQL](../how-to-create-container.md), [API for Cassandra](../cassandra/how-to-create-container.md), [API for Gremlin](../gremlin/how-to-create-container.md), and [API for Table](../table/how-to-create-container.md) articles to create the collection.
23
23
24
24
> [!NOTE]
25
-
> When creating collections, make sure you don’t create two collections with the same name but different casing. That’s because some parts of the Azure platform are not case-sensitive, and this can result in confusion/collision of telemetry and actions on collections with such names.
25
+
> When creating collections, make sure you don’t create two collections with the same name but different casing. That’s because some parts of the Azure platform aren't case-sensitive, and this can result in confusion/collision of telemetry and actions on collections with such names.
26
26
27
27
## <aid="portal-mongodb"></a>Create using Azure portal
28
28
@@ -32,7 +32,7 @@ This article explains the different ways to create a collection in Azure Cosmos
32
32
33
33
1. Open the **Data Explorer** pane, and select **New Container**. Next, provide the following details:
34
34
35
-
* Indicate whether you are creating a new database or using an existing one.
35
+
* Indicate whether you're creating a new database or using an existing one.
36
36
* Enter a container ID.
37
37
* Enter a shard key.
38
38
* Enter a throughput to be provisioned (for example, 1000 RUs).
@@ -57,14 +57,6 @@ db.RunCommand(shellCommand);
57
57
58
58
If you encounter timeout exception when creating a collection, do a read operation to validate if the collection was created successfully. The read operation throws an exception until the collection create operation is successful. For the list of status codes supported by the create operation see the [HTTP Status Codes for Azure Cosmos DB](/rest/api/cosmos-db/http-status-codes-for-cosmosdb) article.
59
59
60
-
## <aid="cli-mongodb"></a>Create using Azure CLI
61
-
62
-
[Create a collection for Azure Cosmos DB for API for MongoDB with Azure CLI](../scripts/cli/mongodb/create.md). For a listing of all Azure CLI samples across all Azure Cosmos DB APIs see, [Azure CLI samples for Azure Cosmos DB](cli-samples.md).
63
-
64
-
## Create using PowerShell
65
-
66
-
[Create a collection for Azure Cosmos DB for API for MongoDB with PowerShell](../scripts/powershell/mongodb/create.md). For a listing of all PowerShell samples across all Azure Cosmos DB APIs see, [PowerShell Samples](powershell-samples.md)
67
-
68
60
## Create a collection using Azure Resource Manager templates
69
61
70
62
[Create a collection for Azure Cosmos DB for API for MongoDB with Resource Manager template](../manage-with-templates.md#azure-cosmos-account-with-standard-provisioned-throughput).
@@ -76,5 +68,5 @@ If you encounter timeout exception when creating a collection, do a read operati
76
68
*[Provision throughput on containers and databases](../set-throughput.md)
77
69
*[Work with Azure Cosmos DB account](../resource-model.md)
78
70
* Trying to do capacity planning for a migration to Azure Cosmos DB? You can use information about your existing database cluster for capacity planning.
79
-
* 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)
71
+
* 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)
80
72
* 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