Beruflich Dokumente
Kultur Dokumente
Note that SQL Databases could also be geo-replicated, but required additional configuration
to create, configure, and pay for SQL Server instances in the required regions. Cosmos DB
abstracts that and doesn’t require additional configuration.
You can add a New item or Upload item. Items are provided in JSON format, and there’s no
defined schema as with a traditional SQL database.
"id": "001",
"company": "o'reilly",
"course": "az-300 boot camp"
}
5. Select Save and note that Cosmos DB then adds additional data to the item. This data is
used to help query and retrieve data as needed.
6. Select you training container in the left-hand navigation window of the Data Explorer, select
the … menu option, and choose New SQL query
7. On line 1 of the query editor, enter the following query:
8. When ready, select Execute query. Only the company and course data is returned, not all
the additional data shown when you created the item. Queries in Cosmos DB, depending on
API used, are similar to regular SQL queries.
9. Go back to the Items menu, and select the 001 record you created. At the top, select Delete
and confirm you wish to delete the item.
Behind the scenes, the item create and delete requests are also replicated across the
geographies selected in the previous exercise.