Skip to content

Commit 26a7c79

Browse files
authored
Merge pull request #101920 from SnehaGunda/master
Updating partition value in the screenshot
2 parents 5d3a05a + 17c966f commit 26a7c79

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

articles/cosmos-db/create-sql-api-python.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,26 @@ This quickstart uses version 4 of the [Python SDK](https://pypi.org/project/azur
4040

4141
## Add a container
4242

43-
[!INCLUDE [cosmos-db-create-collection](../../includes/cosmos-db-create-collection.md)]
43+
You can now use the Data Explorer tool in the Azure portal to create a database and container.
44+
45+
1. Select **Data Explorer** > **New Container**.
46+
47+
The **Add Container** area is displayed on the far right, you may need to scroll right to see it.
48+
49+
![The Azure portal Data Explorer, Add Container pane](./media/create-sql-api-python/azure-cosmosdb-data-explorer.png)
50+
51+
2. In the **Add container** page, enter the settings for the new container.
52+
53+
|Setting|Suggested value|Description
54+
|---|---|---|
55+
|**Database ID**|Tasks|Enter *ToDoList* as the name for the new database. Database names must contain from 1 through 255 characters, and they cannot contain `/, \\, #, ?`, or a trailing space. Check the **Provision database throughput** option, it allows you to share the throughput provisioned to the database across all the containers within the database. This option also helps with cost savings. |
56+
|**Throughput**|400|Leave the throughput at 400 request units per second (RU/s). If you want to reduce latency, you can scale up the throughput later.|
57+
|**Container ID**|Items|Enter *Items* as the name for your new container. Container IDs have the same character requirements as database names.|
58+
|**Partition key**| /category| The sample described in this article uses */category* as the partition key.|
59+
60+
In addition to the preceding settings, you can optionally add **Unique keys** for the container. Let's leave the field empty in this example. Unique keys provide developers with the ability to add a layer of data integrity to the database. By creating a unique key policy while creating a container, you ensure the uniqueness of one or more values per partition key. To learn more, refer to the [Unique keys in Azure Cosmos DB](unique-keys.md) article.
61+
62+
Select **OK**. The Data Explorer displays the new database and container.
4463

4564
## Add sample data
4665

183 KB
Loading

0 commit comments

Comments
 (0)