Skip to content

Commit bfc2b3d

Browse files
authored
Merge pull request #203888 from seesharprun/jul7-cosmos-sql-how-tos-refresh
Cosmos DB | Refresh SQL API + .NET quickstarts
2 parents 1667d0d + 3d0459f commit bfc2b3d

7 files changed

+24
-19
lines changed

articles/cosmos-db/sql/how-to-dotnet-create-container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: cosmos-db
77
ms.subservice: cosmosdb-sql
88
ms.devlang: csharp
99
ms.topic: how-to
10-
ms.date: 06/08/2022
10+
ms.date: 07/06/2022
1111
ms.custom: devx-track-csharp
1212
---
1313

articles/cosmos-db/sql/how-to-dotnet-create-database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: cosmos-db
77
ms.subservice: cosmosdb-sql
88
ms.devlang: csharp
99
ms.topic: how-to
10-
ms.date: 06/08/2022
10+
ms.date: 07/06/2022
1111
ms.custom: devx-track-csharp
1212
---
1313

articles/cosmos-db/sql/how-to-dotnet-create-item.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: cosmos-db
77
ms.subservice: cosmosdb-sql
88
ms.devlang: csharp
99
ms.topic: how-to
10-
ms.date: 06/15/2022
10+
ms.date: 07/06/2022
1111
ms.custom: devx-track-csharp
1212
---
1313

articles/cosmos-db/sql/how-to-dotnet-get-started.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: cosmos-db
77
ms.subservice: cosmosdb-sql
88
ms.devlang: csharp
99
ms.topic: how-to
10-
ms.date: 06/08/2022
10+
ms.date: 07/06/2022
1111
ms.custom: devx-track-csharp
1212
---
1313

@@ -167,11 +167,11 @@ The most common constructor for **CosmosClient** has two parameters:
167167
168168
1. From the Azure Cosmos DB SQL API account page, select the **Keys** navigation menu option.
169169
170-
:::image type="content" source="media/get-credentials-portal/cosmos-keys-option.png" lightbox="media/get-credentials-portal/cosmos-keys-option.png" alt-text="Screenshot of an Azure Cosmos D B SQL A P I account page. The Keys option is highlighted in the navigation menu.":::
170+
:::image type="content" source="media/get-credentials-portal/cosmos-keys-option.png" lightbox="media/get-credentials-portal/cosmos-keys-option.png" alt-text="Screenshot of an Azure Cosmos DB SQL A P I account page. The Keys option is highlighted in the navigation menu.":::
171171
172172
1. Record the values from the **URI** and **PRIMARY KEY** fields. You'll use these values in a later step.
173173
174-
:::image type="content" source="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" lightbox="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" alt-text="Screenshot of Keys page with various credentials for an Azure Cosmos D B SQL A P I account.":::
174+
:::image type="content" source="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" lightbox="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" alt-text="Screenshot of Keys page with various credentials for an Azure Cosmos DB SQL A P I account.":::
175175
176176
---
177177
@@ -367,8 +367,8 @@ As you build your application, your code will primarily interact with four types
367367

368368
The following diagram shows the relationship between these resources.
369369

370-
:::image type="complex" source="media/how-to-dotnet-get-started/resource-hierarchy.svg" alt-text="Diagram of the Azure Cosmos D B hierarchy including accounts, databases, containers, and items.":::
371-
Hierarchical diagram showing an Azure Cosmos D B account at the top. The account has two child database nodes. One of the database nodes includes two child container nodes. The other database node includes a single child container node. That single container node has three child item nodes.
370+
:::image type="complex" source="media/how-to-dotnet-get-started/resource-hierarchy.svg" alt-text="Diagram of the Azure Cosmos DB hierarchy including accounts, databases, containers, and items.":::
371+
Hierarchical diagram showing an Azure Cosmos DB account at the top. The account has two child database nodes. One of the database nodes includes two child container nodes. The other database node includes a single child container node. That single container node has three child item nodes.
372372
:::image-end:::
373373

374374
Each type of resource is represented by one or more associated .NET classes. Here's a list of the most common classes:
@@ -385,6 +385,8 @@ The following guides show you how to use each of these classes to build your app
385385
|--|---|
386386
| [Create a database](how-to-dotnet-create-database.md) | Create databases |
387387
| [Create a container](how-to-dotnet-create-container.md) | Create containers |
388+
| [Read an item](how-to-dotnet-read-item.md) | Point read a specific item |
389+
| [Query items](how-to-dotnet-query-items.md) | Query multiple items |
388390

389391
## See also
390392

articles/cosmos-db/sql/how-to-dotnet-read-item.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: cosmos-db
77
ms.subservice: cosmosdb-sql
88
ms.devlang: csharp
99
ms.topic: how-to
10-
ms.date: 06/15/2022
10+
ms.date: 07/06/2022
1111
ms.custom: devx-track-csharp
1212
---
1313

articles/cosmos-db/sql/quickstart-dotnet.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: cosmos-db
77
ms.subservice: cosmosdb-sql
88
ms.devlang: csharp
99
ms.topic: quickstart
10-
ms.date: 06/08/2022
10+
ms.date: 07/06/2022
1111
ms.custom: devx-track-csharp
1212
---
1313

@@ -175,7 +175,7 @@ This quickstart will create a single Azure Cosmos DB account using the SQL API.
175175
176176
1. On the **Select API option** page, select the **Create** option within the **Core (SQL) - Recommend** section. Azure Cosmos DB has five APIs: SQL, MongoDB, Gremlin, Table, and Cassandra. [Learn more about the SQL API](../index.yml).
177177
178-
:::image type="content" source="media/create-account-portal/cosmos-api-choices.png" lightbox="media/create-account-portal/cosmos-api-choices.png" alt-text="Screenshot of select A P I option page for Azure Cosmos D B.":::
178+
:::image type="content" source="media/create-account-portal/cosmos-api-choices.png" lightbox="media/create-account-portal/cosmos-api-choices.png" alt-text="Screenshot of select A P I option page for Azure Cosmos DB.":::
179179
180180
1. On the **Create Azure Cosmos DB Account** page, enter the following information:
181181
@@ -199,15 +199,15 @@ This quickstart will create a single Azure Cosmos DB account using the SQL API.
199199
200200
1. Select **Go to resource** to go to the Azure Cosmos DB account page.
201201
202-
:::image type="content" source="media/create-account-portal/cosmos-deployment-complete.png" lightbox="media/create-account-portal/cosmos-deployment-complete.png" alt-text="Screenshot of deployment page for Azure Cosmos D B SQL A P I resource.":::
202+
:::image type="content" source="media/create-account-portal/cosmos-deployment-complete.png" lightbox="media/create-account-portal/cosmos-deployment-complete.png" alt-text="Screenshot of deployment page for Azure Cosmos DB SQL A P I resource.":::
203203
204204
1. From the Azure Cosmos DB SQL API account page, select the **Keys** navigation menu option.
205205
206-
:::image type="content" source="media/get-credentials-portal/cosmos-keys-option.png" lightbox="media/get-credentials-portal/cosmos-keys-option.png" alt-text="Screenshot of an Azure Cosmos D B SQL A P I account page. The Keys option is highlighted in the navigation menu.":::
206+
:::image type="content" source="media/get-credentials-portal/cosmos-keys-option.png" lightbox="media/get-credentials-portal/cosmos-keys-option.png" alt-text="Screenshot of an Azure Cosmos DB SQL A P I account page. The Keys option is highlighted in the navigation menu.":::
207207
208208
1. Record the values from the **URI** and **PRIMARY KEY** fields. You'll use these values in a later step.
209209
210-
:::image type="content" source="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" lightbox="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" alt-text="Screenshot of Keys page with various credentials for an Azure Cosmos D B SQL A P I account.":::
210+
:::image type="content" source="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" lightbox="media/get-credentials-portal/cosmos-endpoint-key-credentials.png" alt-text="Screenshot of Keys page with various credentials for an Azure Cosmos DB SQL A P I account.":::
211211
212212
#### [Resource Manager template](#tab/azure-resource-manager)
213213
@@ -324,8 +324,8 @@ export COSMOS_KEY="<cosmos-account-PRIMARY-KEY>"
324324

325325
Before you start building the application, let's look into the hierarchy of resources in Azure Cosmos DB. Azure Cosmos DB has a specific object model used to create and access resources. The Azure Cosmos DB creates resources in a hierarchy that consists of accounts, databases, containers, and items.
326326

327-
:::image type="complex" source="media/quickstart-dotnet/resource-hierarchy.svg" alt-text="Diagram of the Azure Cosmos D B hierarchy including accounts, databases, containers, and items.":::
328-
Hierarchical diagram showing an Azure Cosmos D B account at the top. The account has two child database nodes. One of the database nodes includes two child container nodes. The other database node includes a single child container node. That single container node has three child item nodes.
327+
:::image type="complex" source="media/quickstart-dotnet/resource-hierarchy.svg" alt-text="Diagram of the Azure Cosmos DB hierarchy including accounts, databases, containers, and items.":::
328+
Hierarchical diagram showing an Azure Cosmos DB account at the top. The account has two child database nodes. One of the database nodes includes two child container nodes. The other database node includes a single child container node. That single container node has three child item nodes.
329329
:::image-end:::
330330

331331
For more information about the hierarchy of different resources, see [working with databases, containers, and items in Azure Cosmos DB](../account-databases-containers-items.md).

articles/cosmos-db/sql/samples-dotnet.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@ ms.service: cosmos-db
77
ms.subservice: cosmosdb-sql
88
ms.devlang: csharp
99
ms.topic: how-to
10-
ms.date: 06/08/2022
10+
ms.date: 07/06/2022
1111
ms.custom: devx-track-csharp
1212
---
1313

1414
# Examples for Azure Cosmos DB SQL API SDK for .NET
15+
1516
[!INCLUDE[appliesto-sql-api](../includes/appliesto-sql-api.md)]
1617

1718
> [!div class="op_single_selector"]
18-
> * [.NET](quickstart-dotnet.md)
19+
>
20+
> * [.NET](samples-dotnet.md)
21+
>
1922
2023
The [cosmos-db-sql-api-dotnet-samples](https://github.com/Azure-Samples/cosmos-db-sql-api-dotnet-samples) GitHub repository includes multiple sample projects. These projects illustrate how to perform common operations on Azure Cosmos DB SQL API resources.
2124

@@ -64,4 +67,4 @@ The sample projects are all self-contained and are designed to be ran individual
6467
Dive deeper into the SDK to import more data, perform complex queries, and manage your Azure Cosmos DB SQL API resources.
6568

6669
> [!div class="nextstepaction"]
67-
> [Get started with Azure Cosmos DB SQL API and .NET >](how-to-dotnet-get-started.md)
70+
> [Get started with Azure Cosmos DB SQL API and .NET](how-to-dotnet-get-started.md)

0 commit comments

Comments
 (0)