Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.32 KB

cosmos-db-create-sql-api-add-sample-data.md

File metadata and controls

34 lines (27 loc) · 1.32 KB
title description services author ms.service ms.topic ms.date ms.author ms.custom
include file
include file
cosmos-db
SnehaGunda
cosmos-db
include
08/07/2019
sngun
include file

You can now add data to your new container using Data Explorer.

  1. From the Data Explorer, expand the Tasks database, expand the Items container. Select Items, and then select New Item.

    Create new documents in Data Explorer in the Azure portal

  2. Now add a document to the container with the following structure.

    {
        "id": "1",
        "category": "personal",
        "name": "groceries",
        "description": "Pick up apples and strawberries.",
        "isComplete": false
    }
  3. Once you've added the json to the Documents tab, select Save.

    Copy in json data and select Save in Data Explorer in the Azure portal

  4. Create and save one more document where you insert a unique value for the id property, and change the other properties as you see fit. Your new documents can have any structure you want as Azure Cosmos DB doesn't impose any schema on your data.