Azure DevOps AI App
The question I kept getting from developers and researchers was some version of “I want to build an AI thing on Azure. Where do I start?” I never had a good answer. The documentation exists, but it’s scattered across a dozen Microsoft Learn pages, each one assuming you’ve already read the other eleven. Federated identity, Bicep templates, Container Apps, AI Search, model deployments: the pieces are all there, but nobody had put them together into a path you could actually follow.
So I wrote the path, and made the path the project.
Azure DevOps AI App is a RAG-powered chatbot that answers questions about its own documentation. The learning guide teaches you how to build and deploy an LLM application on Azure, from an empty resource group all the way through to production. That guide is also the content the chatbot indexes. Once you’ve built it, you can ask it “how do I set up federated identity?” and it answers from the same section you followed to set up federated identity.
The architecture is straightforward:
- A Flask web app handles the chat UI and RAG orchestration, streaming answers to the browser over server-sent events. It also has a small vote API, so readers can say which extension topic they want written next.
- Azure AI Search provides hybrid retrieval (vector + keyword).
- Azure AI Foundry hosts the model.
- An indexer job chunks and embeds the mkdocs content into the search index.
- Bicep templates define the infrastructure: Container Apps, AI Search, the model deployments, Key Vault, a container registry, Log Analytics, and managed identities. Production adds PostgreSQL; dev uses SQLite.
The whole thing deploys through Azure DevOps pipelines defined in the repo itself (infrastructure, app build and deploy, indexer build, indexer trigger), since a guide that teaches CI/CD should include its own.
The most useful part is the “Fork & Swap” design. Replace the content/docs/ directory with your own mkdocs site, re-run the indexer, and the chatbot answers questions about your documentation instead. The self-referential demo shows how it works, and underneath it is a reusable RAG template that anyone can point at their own content.
What’s in it
The guide is most of the project. There are twelve numbered build guides, from prerequisites and Azure setup through identity, infrastructure, local development, containers, pipelines, dev and prod deploys, monitoring, and teardown. Around them:
- four onboarding paths, depending on whether you’re new to cloud, a developer, an advanced user, or running operations, plus a cost-management guide
- seven “alternatives” pages comparing CI/CD platforms, container platforms, databases, IaC tools, LLM providers, vector databases, and environment layouts, so the Azure choices read as choices
- eighteen extending guides: hardening (private networking, an API gateway, Entra ID authentication, compliance), architecture (multi-source indexing, custom embeddings, RAG evaluation, observability, async scaling, multi-tenancy), and research use cases such as lab protocols, grant knowledge bases, and literature review
- course-adoption, grading, and TA-support guides for teaching from it
The code is small by comparison: about 3,400 lines of Python in the Flask app and indexer, 79 tests, and twelve Bicep files. I built it with Claude Code.
Status
It’s a reference implementation and teaching scaffold, MIT-licensed so that people can fork it. The source isn’t published right now.