Skip to content

Commit 4760fc2

Browse files
Merge pull request #53216 from MicrosoftDocs/NEW-genaiops
New module on prompt versioning, part of GenAIOps path
2 parents bbf038e + bc0728f commit 4760fc2

18 files changed

Lines changed: 696 additions & 0 deletions

learn-pr/paths/operationalize-gen-ai-apps/index.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ subjects:
2828
- natural-language-processing
2929
modules:
3030
- learn.wwl.plan-prepare-genaiops
31+
- learn.wwl.prompt-versioning-genaiops
3132
- learn.evaluate-generative-ai-apps
3233
- learn.wwl.monitor-generative-ai-app
3334
- learn.wwl.tracing-generative-ai-app
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.prompt-versioning-genaiops.introduction
3+
title: Introduction
4+
metadata:
5+
title: Introduction
6+
description: "Introduction to prompt versioning for GenAIOps"
7+
ms.date: 01/07/2026
8+
author: madiepev
9+
ms.author: madiepev
10+
ms.topic: unit
11+
ms.custom:
12+
- N/A
13+
durationInMinutes: 3
14+
content: |
15+
[!include[](includes/1-introduction.md)]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.prompt-versioning-genaiops.version-control-for-prompts
3+
title: Apply version control to prompts
4+
metadata:
5+
title: Apply version control to prompts
6+
description: "Learn why prompts need version control and how DevOps practices apply to prompt management"
7+
ms.date: 01/26/2026
8+
author: madiepev
9+
ms.author: madiepev
10+
ms.topic: unit
11+
ms.custom:
12+
- N/A
13+
durationInMinutes: 5
14+
content: |
15+
[!include[](includes/2-version-control-for-prompts.md)]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.prompt-versioning-genaiops.foundry-agents-prompt-versioning
3+
title: Understand Microsoft Foundry agents and prompt versioning
4+
metadata:
5+
title: Understand Microsoft Foundry agents and prompt versioning
6+
description: "Learn how prompts integrate with Microsoft Foundry agent definitions and how to version agents using Git tags"
7+
ms.date: 01/26/2026
8+
author: madiepev
9+
ms.author: madiepev
10+
ms.topic: unit
11+
ms.custom:
12+
- N/A
13+
durationInMinutes: 7
14+
content: |
15+
[!include[](includes/3-foundry-agents-prompt-versioning.md)]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.prompt-versioning-genaiops.github-repository-structure
3+
title: Organize prompts in GitHub repositories
4+
metadata:
5+
title: Organize prompts in GitHub repositories
6+
description: "Learn how to organize prompts in GitHub repositories with proper folder structure, file formats, and naming conventions"
7+
ms.date: 01/26/2026
8+
author: madiepev
9+
ms.author: madiepev
10+
ms.topic: unit
11+
ms.custom:
12+
- N/A
13+
durationInMinutes: 10
14+
content: |
15+
[!include[](includes/4-github-repository-structure.md)]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.prompt-versioning-genaiops.prompt-workflow-development
3+
title: Develop safe prompt deployment workflows
4+
metadata:
5+
title: Develop safe prompt deployment workflows
6+
description: "Learn to develop workflows for testing and deploying prompts safely through development, validation, and production stages"
7+
ms.date: 01/26/2026
8+
author: madiepev
9+
ms.author: madiepev
10+
ms.topic: unit
11+
ms.custom:
12+
- N/A
13+
durationInMinutes: 8
14+
content: |
15+
[!include[](includes/5-prompt-workflow-development.md)]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.prompt-versioning-genaiops.exercise
3+
title: Exercise - Develop prompt and agent versions
4+
metadata:
5+
title: Exercise - Develop prompt and agent versions
6+
description: "Deploy multiple agent versions in Microsoft Foundry and track them using GitHub version control"
7+
ms.date: 01/26/2026
8+
author: madiepev
9+
ms.author: madiepev
10+
ms.topic: unit
11+
ms.custom:
12+
- N/A
13+
durationInMinutes: 15
14+
content: |
15+
[!include[](includes/6-exercise.md)]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.prompt-versioning-genaiops.knowledge-check
3+
title: Knowledge check
4+
metadata:
5+
title: Knowledge check
6+
description: "Knowledge check for prompt versioning module"
7+
ms.date: 01/26/2026
8+
author: madiepev
9+
ms.author: madiepev
10+
ms.topic: unit
11+
ms.custom:
12+
- N/A
13+
module_assessment: true
14+
durationInMinutes: 3
15+
quiz:
16+
title: ""
17+
questions:
18+
- content: "What happens when you create or update an agent in Microsoft Foundry?"
19+
choices:
20+
- content: "The existing agent version is overwritten with no history."
21+
isCorrect: false
22+
explanation: "Incorrect. Microsoft Foundry preserves agent version history."
23+
- content: "A new agent version is created automatically, whether you use the portal or the Python SDK."
24+
isCorrect: true
25+
explanation: "Correct. Microsoft Foundry creates a new version whenever you create or update an agent, maintaining version history."
26+
- content: "Version numbers must be manually assigned in your code."
27+
isCorrect: false
28+
explanation: "Incorrect. Microsoft Foundry automatically assigns incremental version numbers."
29+
- content: "In a proper prompt workflow, what should happen before a prompt change reaches production?"
30+
choices:
31+
- content: "Changes should be deployed immediately to get real user feedback."
32+
isCorrect: false
33+
explanation: "Incorrect. Deploying directly to production skips critical validation steps."
34+
- content: "Changes should be tested in development, validated in staging, reviewed by the team, and then deployed with monitoring."
35+
isCorrect: true
36+
explanation: "Correct. This systematic approach ensures changes are validated at each stage before impacting users."
37+
- content: "Only the person who wrote the prompt needs to approve it."
38+
isCorrect: false
39+
explanation: "Incorrect. Team review provides valuable perspective and catches issues the author might miss."
40+
- content: "What do Git tags provide for agent deployments?"
41+
choices:
42+
- content: "They automatically deploy agents to production."
43+
isCorrect: false
44+
explanation: "Incorrect. Git tags mark versions but don't trigger deployments by themselves."
45+
- content: "They create a traceable relationship between repository versions and deployed agents, simplifying debugging and rollback."
46+
isCorrect: true
47+
explanation: "Correct. Git tags enable you to quickly identify which repository state corresponds to any deployed agent version."
48+
- content: "They replace the need for commit messages."
49+
isCorrect: false
50+
explanation: "Incorrect. Tags complement commit messages by marking specific deployment milestones."
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.prompt-versioning-genaiops.summary
3+
title: Summary
4+
metadata:
5+
title: Summary
6+
description: "Summary of prompt versioning for GenAIOps"
7+
ms.date: 01/07/2026
8+
author: madiepev
9+
ms.author: madiepev
10+
ms.topic: unit
11+
ms.custom:
12+
- N/A
13+
durationInMinutes: 2
14+
content: |
15+
[!include[](includes/7-summary.md)]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
Quick prompt changes that break AI agents in production are hard to debug. Many teams struggle with managing prompt versions safely, leading to unexpected behavior, and difficult rollbacks.
3+
4+
## Scenario
5+
6+
Consider a customer service team at a software company that uses Microsoft Foundry to power their AI chat agent. Last month, someone updated the agent's system prompt to sound more friendly, but it caused the agent to give inconsistent responses to technical questions. The team couldn't figure out exactly what changed or quickly revert to the previous working version. Customer satisfaction dropped, and it took days to manually recreate a stable prompt from memory.
7+
8+
This scenario illustrates multiple challenges: lack of version control, missing approval workflows, inadequate testing, and poor knowledge management. These problems could be prevented with proper prompt versioning using GitHub, where changes are tracked, tested, and deployed systematically.
9+
10+
## What you learn
11+
12+
In this module, you learn how to work with GitHub and Microsoft Foundry to version and deploy AI agent prompts. You explore one approach for organizing your repository structure for collaboration. While multiple organizational strategies exist, this example demonstrates core concepts you can adapt to your needs. You also learn how to develop a safe workflow for testing and deploying prompt changes.

0 commit comments

Comments
 (0)