Skip to content

Commit 5bbb64b

Browse files
authored
Merge pull request #217082 from seesharprun/cosmos-nosql-python-quickstart-revamp
Cosmos DB | NoSQL+Python quickstart revamp
2 parents 26d2dd8 + ffa58c4 commit 5bbb64b

File tree

2 files changed

+99
-181
lines changed

2 files changed

+99
-181
lines changed

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

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ Get started with the Azure Cosmos DB client library for .NET to create databases
2626

2727
## Prerequisites
2828

29-
* An Azure account with an active subscription. [Create an account for free](https://aka.ms/trycosmosdb).
30-
* [.NET 6.0 or later](https://dotnet.microsoft.com/download)
31-
* [Azure Command-Line Interface (CLI)](/cli/azure/) or [Azure PowerShell](/powershell/azure/)
29+
- An Azure account with an active subscription.
30+
- If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
31+
- Alternatively, you can [try Azure Cosmos DB free](../try-free.md) before you commit.
32+
- [.NET 6.0 or later](https://dotnet.microsoft.com/download)
33+
- [Azure Command-Line Interface (CLI)](/cli/azure/) or [Azure PowerShell](/powershell/azure/)
3234

3335
### Prerequisite check
3436

35-
* In a terminal or command window, run ``dotnet --version`` to check that the .NET SDK is version 6.0 or later.
36-
* Run ``az --version`` (Azure CLI) or ``Get-Module -ListAvailable AzureRM`` (Azure PowerShell) to check that you have the appropriate Azure command-line tools installed.
37+
- In a terminal or command window, run ``dotnet --version`` to check that the .NET SDK is version 6.0 or later.
38+
- Run ``az --version`` (Azure CLI) or ``Get-Module -ListAvailable AzureRM`` (Azure PowerShell) to check that you have the appropriate Azure command-line tools installed.
3739

3840
## Setting up
3941

@@ -90,21 +92,21 @@ Build succeeded.
9092

9193
You'll use the following .NET classes to interact with these resources:
9294

93-
* [``CosmosClient``](/dotnet/api/microsoft.azure.cosmos.cosmosclient) - This class provides a client-side logical representation for the Azure Cosmos DB service. The client object is used to configure and execute requests against the service.
94-
* [``Database``](/dotnet/api/microsoft.azure.cosmos.database) - This class is a reference to a database that may, or may not, exist in the service yet. The database is validated server-side when you attempt to access it or perform an operation against it.
95-
* [``Container``](/dotnet/api/microsoft.azure.cosmos.container) - This class is a reference to a container that also may not exist in the service yet. The container is validated server-side when you attempt to work with it.
96-
* [``QueryDefinition``](/dotnet/api/microsoft.azure.cosmos.querydefinition) - This class represents a SQL query and any query parameters.
97-
* [``FeedIterator<>``](/dotnet/api/microsoft.azure.cosmos.feediterator-1) - This class represents an iterator that can track the current page of results and get a new page of results.
98-
* [``FeedResponse<>``](/dotnet/api/microsoft.azure.cosmos.feedresponse-1) - This class represents a single page of responses from the iterator. This type can be iterated over using a ``foreach`` loop.
95+
- [``CosmosClient``](/dotnet/api/microsoft.azure.cosmos.cosmosclient) - This class provides a client-side logical representation for the Azure Cosmos DB service. The client object is used to configure and execute requests against the service.
96+
- [``Database``](/dotnet/api/microsoft.azure.cosmos.database) - This class is a reference to a database that may, or may not, exist in the service yet. The database is validated server-side when you attempt to access it or perform an operation against it.
97+
- [``Container``](/dotnet/api/microsoft.azure.cosmos.container) - This class is a reference to a container that also may not exist in the service yet. The container is validated server-side when you attempt to work with it.
98+
- [``QueryDefinition``](/dotnet/api/microsoft.azure.cosmos.querydefinition) - This class represents a SQL query and any query parameters.
99+
- [``FeedIterator<>``](/dotnet/api/microsoft.azure.cosmos.feediterator-1) - This class represents an iterator that can track the current page of results and get a new page of results.
100+
- [``FeedResponse<>``](/dotnet/api/microsoft.azure.cosmos.feedresponse-1) - This class represents a single page of responses from the iterator. This type can be iterated over using a ``foreach`` loop.
99101

100102
## Code examples
101103

102-
* [Authenticate the client](#authenticate-the-client)
103-
* [Create a database](#create-a-database)
104-
* [Create a container](#create-a-container)
105-
* [Create an item](#create-an-item)
106-
* [Get an item](#get-an-item)
107-
* [Query items](#query-items)
104+
- [Authenticate the client](#authenticate-the-client)
105+
- [Create a database](#create-a-database)
106+
- [Create a container](#create-a-container)
107+
- [Create an item](#create-an-item)
108+
- [Get an item](#get-an-item)
109+
- [Query items](#query-items)
108110

109111
The sample code described in this article creates a database named ``adventureworks`` with a container named ``products``. The ``products`` table is designed to contain product details such as name, category, quantity, and a sale indicator. Each product also contains a unique identifier.
110112

0 commit comments

Comments
 (0)