About the book
Ship AI features your security team will actually approve.
Most AI tutorials stop at a chatbot demo. This book takes you all the way to production. You'll use the tools .NET developers already use: .NET 10, C# 14, ASP.NET Core, dependency injection, and Microsoft.Extensions.AI.
Across 15 chapters you'll build PriorAuthBot, an AI assistant for a fictional HIPAA-regulated health plan, with each chapter adding one feature. You start with your first IChatClient call and finish with a secured, observable, tested application deployed to Azure.
What you'll learn
- How LLMs work, and how to call them from C# through one abstraction over Azure OpenAI, OpenAI, or local models with Ollama
- How to treat prompts as code and get structured output
- How to work with images, PDFs, and scanned forms
- Embeddings, vector stores, and a complete RAG pipeline with hybrid search, reranking, and citations
- How to test and evaluate AI output so quality can't silently regress
- Tool calling, MCP, and building your first agent
- How to defend against prompt injection and data leakage, with red-teaming mapped to the OWASP LLM Top 10
- Observability, audit logging, and cost control with .NET Aspire
- How to deploy to Azure and change models safely as they evolve
Who this book is for
.NET developers and tech leads who know async/await, dependency injection, and ASP.NET Core, and who need to ship AI features that pass a real security and compliance review.
All the code is free on GitHub under the MIT license, with a tag for every chapter, so you can start anywhere and run everything locally.
Get it on Amazon
- Author
- John F. Gnazzo
- Genre
- Programming
- Formats
- Kindle and Paperback
- Published
- November 16, 2026
- Pages
- 736 (kindle), 494 (paperback)
- ISBN (paperback)
- 979-8143361478
- Publisher
- DGreatGnazzini Press LLC






