Prompt Versioning and Source Control
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing Operationalizing Machine Learning and Generative AI Solutions premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- Prompts are code: version them like code
- Design and develop the prompt
- Version control with a Git repository
- Create variants and compare with evaluations
- Prompt flow is retiring; agents as config in CI/CD
- Exam-pattern recognition
Prompt agent vs hosted agent
| Aspect | Prompt agent | Hosted agent |
|---|---|---|
| What you author | Declarative config: instructions, a model, and tools | Your own code using any agent framework |
| How it's versioned in source control | Config files committed to Git | Code in Git, built and pushed as a container image to Azure Container Registry |
| Compute to run and pay for | None; Foundry runs it with no compute to manage | Container compute you pay for; deprovisioned after 15 minutes idle |
| Runtime identity | Managed by Foundry | Dedicated Microsoft Entra agent identity minted per agent at deploy |
| Versioning and rollback | Built-in version snapshots; promote through CI/CD | Each deploy is a new immutable version; previous versions kept for rollback |
| Choose when | Agent needs only a model, instructions, and built-in tools | Agent must run custom orchestration or framework code |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- Microsoft Foundry Playgrounds - Microsoft Foundry
- MLOps and GenAIOps for AI Workloads on Azure - Microsoft Azure Well-Architected Framework Well-Architected
- Manage prompts for agents in Microsoft Foundry with GitHub - Training
- System message design for Azure OpenAI - Microsoft Foundry
- Optimize agent prompts with Prompt Optimizer (preview) - Microsoft Foundry
- Generative AI Operations for Organizations with MLOps Investments - Azure Architecture Center
- Run evaluations from the Microsoft Foundry portal - Microsoft Foundry
- Cloud Evaluation with the Microsoft Foundry SDK - Microsoft Foundry
- How to run an evaluation in GitHub Action - Microsoft Foundry
- Prompt flow in Microsoft Foundry portal (classic) - Microsoft Foundry (classic) portal
- Agent Framework documentation
- Migrate from Prompt Flow to Microsoft Agent Framework in Foundry (classic) - Microsoft Foundry
- What is Microsoft Foundry Agent Service? - Microsoft Foundry
- Hosted agents in Foundry Agent Service - Microsoft Foundry
- Deploy a hosted agent - Microsoft Foundry