Skip to content

Commit 2eb248c

Browse files
authored
Merge pull request #51134 from wwlpublish/677b87073d6b8c55e2d3903080bf3bc1810b601dda1e0d9a413ab54c825fc820-live
Modules/M02-work-with-cosmos-db
2 parents ef174cb + 938216f commit 2eb248c

14 files changed

+247
-418
lines changed
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.work-with-cosmos-db.introduction
3-
title: Introduction
4-
metadata:
5-
title: Introduction
6-
description: "Introduction"
7-
ms.date: 07/15/2024
8-
author: wwlpublish
9-
ms.author: jeffko
10-
ms.topic: unit
11-
ms.custom:
12-
- N/A
13-
durationInMinutes: 3
14-
content: |
15-
[!include[](includes/1-introduction.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.work-with-cosmos-db.introduction
3+
title: Introduction
4+
metadata:
5+
adobe-target: true
6+
prefetch-feature-rollout: true
7+
title: Introduction
8+
description: "Introduction"
9+
ms.date: 06/26/2025
10+
author: wwlpublish
11+
ms.author: jeffko
12+
ms.topic: unit
13+
ms.custom:
14+
- N/A
15+
durationInMinutes: 3
16+
content: |
17+
[!include[](includes/1-introduction.md)]
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.work-with-cosmos-db.cosmos-db-dotnet-overview
3-
title: Explore Microsoft .NET SDK v3 for Azure Cosmos DB
4-
metadata:
5-
title: Explore Microsoft .NET SDK v3 for Azure Cosmos DB
6-
description: "Explore Microsoft .NET SDK v3 for Azure Cosmos DB"
7-
ms.date: 07/15/2024
8-
author: wwlpublish
9-
ms.author: jeffko
10-
ms.topic: unit
11-
ms.custom:
12-
- N/A
13-
durationInMinutes: 3
14-
content: |
15-
[!include[](includes/2-cosmos-db-dotnet-overview.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.work-with-cosmos-db.cosmos-db-dotnet-overview
3+
title: Explore Microsoft .NET SDK v3 for Azure Cosmos DB
4+
metadata:
5+
adobe-target: true
6+
prefetch-feature-rollout: true
7+
title: Explore Microsoft .NET SDK v3 for Azure Cosmos DB
8+
description: "Explore Microsoft .NET SDK v3 for Azure Cosmos DB"
9+
ms.date: 06/26/2025
10+
author: wwlpublish
11+
ms.author: jeffko
12+
ms.topic: unit
13+
ms.custom:
14+
- N/A
15+
durationInMinutes: 3
16+
content: |
17+
[!include[](includes/2-cosmos-db-dotnet-overview.md)]
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.work-with-cosmos-db.exercise-work-cosmos-db-dotnet
3-
title: 'Exercise: Create resources by using the Microsoft .NET SDK v3'
4-
metadata:
5-
title: 'Exercise: Create resources by using the Microsoft .NET SDK v3'
6-
description: "Exercise: Create resources by using the Microsoft .NET SDK v3"
7-
ms.date: 07/15/2024
8-
author: wwlpublish
9-
ms.author: jeffko
10-
ms.topic: unit
11-
ms.custom:
12-
- N/A
13-
durationInMinutes: 15
14-
content: |
15-
[!include[](includes/3-exercise-work-cosmos-db-dotnet.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.work-with-cosmos-db.exercise-work-cosmos-db-dotnet
3+
title: Exercise - Create resources in Azure Cosmos DB for NoSQL using .NET
4+
metadata:
5+
adobe-target: true
6+
prefetch-feature-rollout: true
7+
title: Exercise - Create resources in Azure Cosmos DB for NoSQL using .NET
8+
description: "Exercise - Create resources in Azure Cosmos DB for NoSQL using .NET"
9+
ms.date: 06/26/2025
10+
author: wwlpublish
11+
ms.author: jeffko
12+
ms.topic: unit
13+
ms.custom:
14+
- N/A
15+
durationInMinutes: 30
16+
content: |
17+
[!include[](includes/3-exercise-work-cosmos-db-dotnet.md)]
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.work-with-cosmos-db.create-stored-procedures
3-
title: Create stored procedures
4-
metadata:
5-
title: Create stored procedures
6-
description: "Create stored procedures"
7-
ms.date: 07/15/2024
8-
author: wwlpublish
9-
ms.author: jeffko
10-
ms.topic: unit
11-
ms.custom:
12-
- N/A
13-
durationInMinutes: 3
14-
content: |
15-
[!include[](includes/4-cosmos-db-stored-procedures.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.work-with-cosmos-db.create-stored-procedures
3+
title: Create stored procedures
4+
metadata:
5+
adobe-target: true
6+
prefetch-feature-rollout: true
7+
title: Create stored procedures
8+
description: "Create stored procedures"
9+
ms.date: 06/26/2025
10+
author: wwlpublish
11+
ms.author: jeffko
12+
ms.topic: unit
13+
ms.custom:
14+
- N/A
15+
durationInMinutes: 3
16+
content: |
17+
[!include[](includes/4-cosmos-db-stored-procedures.md)]
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.work-with-cosmos-db.create-triggers-user-defined-functions
3-
title: Create triggers and user-defined functions
4-
metadata:
5-
title: Create triggers and user-defined functions
6-
description: "Create triggers and user-defined functions"
7-
ms.date: 07/15/2024
8-
author: wwlpublish
9-
ms.author: jeffko
10-
ms.topic: unit
11-
ms.custom:
12-
- N/A
13-
durationInMinutes: 3
14-
content: |
15-
[!include[](includes/5-cosmos-db-triggers-user-defined-functions.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.work-with-cosmos-db.create-triggers-user-defined-functions
3+
title: Create triggers and user-defined functions
4+
metadata:
5+
adobe-target: true
6+
prefetch-feature-rollout: true
7+
title: Create triggers and user-defined functions
8+
description: "Create triggers and user-defined functions"
9+
ms.date: 06/26/2025
10+
author: wwlpublish
11+
ms.author: jeffko
12+
ms.topic: unit
13+
ms.custom:
14+
- N/A
15+
durationInMinutes: 3
16+
content: |
17+
[!include[](includes/5-cosmos-db-triggers-user-defined-functions.md)]
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.work-with-cosmos-db.cosmos-db-change-feed
3-
title: Explore change feed in Azure Cosmos DB
4-
metadata:
5-
title: Explore change feed in Azure Cosmos DB
6-
description: "Explore change feed in Azure Cosmos DB"
7-
ms.date: 07/15/2024
8-
author: wwlpublish
9-
ms.author: jeffko
10-
ms.topic: unit
11-
ms.custom:
12-
- N/A
13-
durationInMinutes: 5
14-
content: |
15-
[!include[](includes/6-cosmos-db-change-feed.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.work-with-cosmos-db.cosmos-db-change-feed
3+
title: Explore change feed in Azure Cosmos DB
4+
metadata:
5+
adobe-target: true
6+
prefetch-feature-rollout: true
7+
title: Explore change feed in Azure Cosmos DB
8+
description: "Explore change feed in Azure Cosmos DB"
9+
ms.date: 06/26/2025
10+
author: wwlpublish
11+
ms.author: jeffko
12+
ms.topic: unit
13+
ms.custom:
14+
- N/A
15+
durationInMinutes: 5
16+
content: |
17+
[!include[](includes/6-cosmos-db-change-feed.md)]
Lines changed: 51 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,51 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.work-with-cosmos-db.knowledge-check
3-
title: Module assessment
4-
metadata:
5-
title: Module assessment
6-
description: "Knowledge check"
7-
ms.date: 07/15/2024
8-
author: wwlpublish
9-
ms.author: jeffko
10-
ms.topic: unit
11-
ms.custom:
12-
- N/A
13-
module_assessment: true
14-
durationInMinutes: 5
15-
quiz:
16-
title: "Check your knowledge"
17-
questions:
18-
- content: "What is the purpose of the context object in a stored procedure in Azure Cosmos DB?"
19-
choices:
20-
- content: "It provides access to the database schema and metadata."
21-
isCorrect: false
22-
explanation: "Incorrect. The context object does not provide access to the database schema or metadata."
23-
- content: "It allows for the creation of new collections within the database."
24-
isCorrect: false
25-
explanation: "Incorrect. The context object does not allow for the creation of new collections within the database."
26-
- content: "It provides access to all operations that can be performed in Azure Cosmos DB, and access to the request and response objects."
27-
isCorrect: true
28-
explanation: "Correct. The context object in a stored procedure provides access to all operations that can be performed in Azure Cosmos DB, and access to the request and response objects."
29-
- content: "What is the role of pretriggers in Azure Cosmos DB?"
30-
choices:
31-
- content: "Pretriggers are automatically executed for each database operation."
32-
isCorrect: false
33-
explanation: "Incorrect. Triggers aren't automatically executed. They must be specified for each database operation where you want them to execute."
34-
- content: "Pretriggers are executed before modifying a database item and must be specified for each database operation where you want them to execute."
35-
isCorrect: true
36-
explanation: "Correct. Pretriggers in Azure Cosmos DB are executed before modifying a database item and they need to be specified for each database operation where they should execute."
37-
- content: "Pretriggers are used to execute operations after modifying a database item."
38-
isCorrect: false
39-
explanation: "Incorrect. Pretriggers are executed before modifying a database item, not after."
40-
- content: "What is the purpose of the lease container in the Azure Cosmos DB change feed processor?"
41-
choices:
42-
- content: "It stores the data from which the change feed is generated."
43-
isCorrect: false
44-
explanation: "Incorrect. The monitored container, not the lease container, stores the data from which the change feed is generated."
45-
- content: "It processes the change feed across multiple workers."
46-
isCorrect: false
47-
explanation: "Incorrect. The lease container does not process the change feed, it coordinates the processing across multiple workers."
48-
- content: "It acts as a state storage and coordinates processing the change feed across multiple workers."
49-
isCorrect: true
50-
explanation: "Correct. The lease container acts as a state storage and coordinates processing the change feed across multiple workers."
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.work-with-cosmos-db.knowledge-check
3+
title: Module assessment
4+
metadata:
5+
adobe-target: true
6+
prefetch-feature-rollout: true
7+
title: Module assessment
8+
description: "Knowledge check"
9+
ms.date: 06/26/2025
10+
author: wwlpublish
11+
ms.author: jeffko
12+
ms.topic: unit
13+
ms.custom:
14+
- N/A
15+
durationInMinutes: 5
16+
quiz:
17+
title: "Check your knowledge"
18+
questions:
19+
- content: "What is the purpose of the context object in a stored procedure in Azure Cosmos DB?"
20+
choices:
21+
- content: "It provides access to the database schema and metadata."
22+
isCorrect: false
23+
explanation: "Incorrect. The context object does not provide access to the database schema or metadata."
24+
- content: "It allows for the creation of new collections within the database."
25+
isCorrect: false
26+
explanation: "Incorrect. The context object does not allow for the creation of new collections within the database."
27+
- content: "It provides access to all operations that can be performed in Azure Cosmos DB, and access to the request and response objects."
28+
isCorrect: true
29+
explanation: "Correct. The context object in a stored procedure provides access to all operations that can be performed in Azure Cosmos DB, and access to the request and response objects."
30+
- content: "What is the role of pretriggers in Azure Cosmos DB?"
31+
choices:
32+
- content: "Pretriggers are automatically executed for each database operation."
33+
isCorrect: false
34+
explanation: "Incorrect. Triggers aren't automatically executed. They must be specified for each database operation where you want them to execute."
35+
- content: "Pretriggers are executed before modifying a database item and must be specified for each database operation where you want them to execute."
36+
isCorrect: true
37+
explanation: "Correct. Pretriggers in Azure Cosmos DB are executed before modifying a database item and they need to be specified for each database operation where they should execute."
38+
- content: "Pretriggers are used to execute operations after modifying a database item."
39+
isCorrect: false
40+
explanation: "Incorrect. Pretriggers are executed before modifying a database item, not after."
41+
- content: "What is the purpose of the lease container in the Azure Cosmos DB change feed processor?"
42+
choices:
43+
- content: "It stores the data from which the change feed is generated."
44+
isCorrect: false
45+
explanation: "Incorrect. The monitored container, not the lease container, stores the data from which the change feed is generated."
46+
- content: "It processes the change feed across multiple workers."
47+
isCorrect: false
48+
explanation: "Incorrect. The lease container does not process the change feed, it coordinates the processing across multiple workers."
49+
- content: "It acts as a state storage and coordinates processing the change feed across multiple workers."
50+
isCorrect: true
51+
explanation: "Correct. The lease container acts as a state storage and coordinates processing the change feed across multiple workers."
Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.wwl.work-with-cosmos-db.summary
3-
title: Summary
4-
metadata:
5-
title: Summary
6-
description: "Summary"
7-
ms.date: 07/15/2024
8-
author: wwlpublish
9-
ms.author: jeffko
10-
ms.topic: unit
11-
ms.custom:
12-
- N/A
13-
durationInMinutes: 3
14-
content: |
15-
[!include[](includes/8-summary.md)]
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.work-with-cosmos-db.summary
3+
title: Summary
4+
metadata:
5+
adobe-target: true
6+
prefetch-feature-rollout: true
7+
title: Summary
8+
description: "Summary"
9+
ms.date: 06/26/2025
10+
author: wwlpublish
11+
ms.author: jeffko
12+
ms.topic: unit
13+
ms.custom:
14+
- N/A
15+
durationInMinutes: 3
16+
content: |
17+
[!include[](includes/8-summary.md)]

learn-pr/wwl-azure/work-with-cosmos-db/includes/1-introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ This module is an introduction to both client and server-side programming on Azu
33
After completing this module, you'll be able to:
44

55
* Identify classes and methods used to create resources
6-
* Create resources by using the Azure Cosmos DB .NET v3 SDK
6+
* Create resources in Azure Cosmos DB for NoSQL using .NET
77
* Write stored procedures, triggers, and user-defined functions by using JavaScript
88
* Implement change feed notifications

0 commit comments

Comments
 (0)