Skip to content

Commit 0fe7a11

Browse files
authored
Merge pull request #1880 from MicrosoftDocs/main
4/8/2025 AM Publish
2 parents 96bed0d + 479a6d1 commit 0fe7a11

17 files changed

Lines changed: 182 additions & 208 deletions

articles/cosmos-db/.openpublishing.redirection.cosmos-db.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,16 @@
450450
"redirect_url": "/azure/cosmos-db/create-sql-api-dotnet",
451451
"redirect_document_id": true
452452
},
453+
{
454+
"source_path_from_root": "/articles/cosmos-db/nosql/cli-samples.md",
455+
"redirect_url": "/azure/cosmos-db/nosql/samples-cli",
456+
"redirect_document_id": true
457+
},
458+
{
459+
"source_path_from_root": "/articles/cosmos-db/nosql/powershell-samples.md",
460+
"redirect_url": "/azure/cosmos-db/nosql/samples-powershell",
461+
"redirect_document_id": true
462+
},
453463
{
454464
"source_path_from_root": "/articles/cosmos-db/create-sql-api-dotnet-preview.md",
455465
"redirect_url": "/azure/cosmos-db/create-sql-api-dotnet",

articles/cosmos-db/cassandra/how-to-create-container.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ ms.custom: devx-track-csharp, devx-track-azurecli, devx-track-dotnet, devx-track
1616

1717
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.
1818

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.
2020

2121
> [!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.
2323
2424
## <a id="portal-cassandra"></a>Create using Azure portal
2525

@@ -29,7 +29,7 @@ This article explains the different ways to create a container in Azure Cosmos D
2929

3030
1. Open the **Data Explorer** pane, and select **New Table**. Next, provide the following details:
3131

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.
3333
* Enter a table name.
3434
* Enter the properties and specify a primary key.
3535
* Enter a throughput to be provisioned (for example, 1000 RUs).
@@ -52,14 +52,6 @@ session.Execute(CREATE TABLE myKeySpace.myTable(
5252

5353
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.
5454

55-
## <a id="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-
6355
## Next steps
6456

6557
* [Partitioning in Azure Cosmos DB](../partitioning-overview.md)

articles/cosmos-db/gremlin/how-to-create-container.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Create a container in Azure Cosmos DB for Gremlin
3-
description: Learn how to create a container in Azure Cosmos DB for Gremlin by using Azure portal, .NET and other SDKs.
3+
description: Learn how to create a container in Azure Cosmos DB for Gremlin by using Azure portal, .NET, and other SDKs.
44
ms.service: azure-cosmos-db
55
ms.subservice: apache-gremlin
66
ms.topic: how-to
@@ -14,12 +14,12 @@ ms.custom: devx-track-csharp, devx-track-azurecli, devx-track-dotnet
1414
# Create a container in Azure Cosmos DB for Gremlin
1515
[!INCLUDE[Gremlin](../includes/appliesto-gremlin.md)]
1616

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 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.
1818

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.
2020

2121
> [!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.
2323
2424
## <a id="portal-gremlin"></a>Create using Azure portal
2525

@@ -29,7 +29,7 @@ This article explains the different ways to create a container in Azure Cosmos D
2929

3030
1. Open the **Data Explorer** pane, and select **New Graph**. Next, provide the following details:
3131

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.
3333
* Enter a Graph ID.
3434
* Select **Unlimited** storage capacity.
3535
* Enter a partition key for vertices.
@@ -54,14 +54,6 @@ await client.CreateDocumentCollectionAsync(
5454
new RequestOptions { OfferThroughput = 1000 });
5555
```
5656

57-
## <a id="cli-mongodb"></a>Create using Azure CLI
58-
59-
[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-
6557
## Next steps
6658

6759
* [Partitioning in Azure Cosmos DB](../partitioning-overview.md)

articles/cosmos-db/mongodb/how-to-create-container.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ ms.custom: devx-track-csharp, devx-track-azurecli, devx-track-arm-template, devx
1414
# Create a collection in Azure Cosmos DB for MongoDB
1515
[!INCLUDE[MongoDB](~/reusable-content/ce-skilling/azure/includes/cosmos-db/includes/appliesto-mongodb.md)]
1616

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 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.
1818

1919
>[!NOTE]
2020
> **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.
2121
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.
2323

2424
> [!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.
2626
2727
## <a id="portal-mongodb"></a>Create using Azure portal
2828

@@ -32,7 +32,7 @@ This article explains the different ways to create a collection in Azure Cosmos
3232

3333
1. Open the **Data Explorer** pane, and select **New Container**. Next, provide the following details:
3434

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.
3636
* Enter a container ID.
3737
* Enter a shard key.
3838
* Enter a throughput to be provisioned (for example, 1000 RUs).
@@ -57,14 +57,6 @@ db.RunCommand(shellCommand);
5757

5858
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.
5959

60-
## <a id="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-
6860
## Create a collection using Azure Resource Manager templates
6961

7062
[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
7668
* [Provision throughput on containers and databases](../set-throughput.md)
7769
* [Work with Azure Cosmos DB account](../resource-model.md)
7870
* 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)
8072
* 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)

articles/cosmos-db/nosql/TOC.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,12 +1070,12 @@
10701070
href: samples-python.md
10711071
- name: Go
10721072
href: samples-go.md
1073-
- name: PowerShell
1074-
href: powershell-samples.md
1073+
- name: Azure CLI
1074+
href: samples-cli.yml
1075+
- name: Azure PowerShell
1076+
href: samples-powershell.yml
10751077
- name: Azure CLI
10761078
items:
1077-
- name: Overview
1078-
href: cli-samples.md
10791079
- name: Create account, database, and container
10801080
href: ../scripts/cli/nosql/create.md?context=/azure/cosmos-db/nosql/context/context
10811081
- name: Create serverless
@@ -1104,8 +1104,6 @@
11041104
href: ../scripts/cli/common/convert-to-autoscale.md?context=/azure/cosmos-db/nosql/context/context
11051105
- name: Azure PowerShell
11061106
items:
1107-
- name: Overview
1108-
href: powershell-samples.md
11091107
- name: Create account, database, and container
11101108
href: ../scripts/powershell/nosql/create.md?context=/azure/cosmos-db/nosql/context/context
11111109
- name: Create with autoscale

articles/cosmos-db/nosql/cli-samples.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)