Skip to content
Code To Cloud
2 min read

Infrastructure That Documents Itself

Using GitHub Copilot + Azure MCP to generate complete infrastructure wikis from live Azure environments in under 15 minutes.

By Kevin Evans

Infrastructure That Documents Itself

Documentation is always the first thing to fall behind. You ship a new Azure environment, wire up services, configure networking—and a few months later, nobody remembers why that Key Vault exists or how Container Apps talk to Cosmos DB. We built a proof-of-concept repo to change that. Using GitHub Copilot + Azure MCP (Model Context Protocol), this repo generates a complete infrastructure wiki directly from a live Azure environment in under 15 minutes—using only natural language prompts. No manual writing. No portal copy-paste.

What You Get in Minutes

From a running Azure environment, the repo automatically generates:

  • Architecture diagrams
  • Full resource inventory (21 resources)
  • Network topology
  • Dependency maps
  • Integration guides
  • Operational runbooks

That's 13 documentation files in ~15 minutes, with zero manual effort. Join our community!

Why This Matters

Accurate by default Docs reflect what's actually deployed—not last quarter's diagram. Instant onboarding New engineers get a real architecture walkthrough on day one. Audit ready Network and dependency documentation generated on demand. Knowledge democratized Junior engineers can produce senior-level documentation.

How It Works (High Level)

GitHub Copilot uses Azure MCP to query your live Azure environment:

  • Discovers resources via Azure Resource Graph
  • Inspects networking, security, and dependencies
  • Generates diagrams and documentation automatically

You simply prompt in natural language. If you're already using Copilot for code, setting up custom Copilot instructions can standardize documentation workflows across your team. Example:

"Create a wiki for this resource group with diagrams, inventory, dependencies, and runbooks." That's it.

What's Next

We're scaling this into an Enterprise Documentation Agent using Azure AI Foundry:

  • Multi-subscription discovery
  • Automatic updates when infrastructure changes
  • Pull requests with refreshed docs
  • Compliance mapping
  • Cost attribution
  • Drift detection

The goal: always-current documentation across your entire Azure estate. If you're planning a structured cloud rollout, our guide to Azure AI landing zones covers enterprise-ready infrastructure patterns that pair well with automated documentation.

Try It Yourself

Repo: github.com/kevinevans1/genai_wiki Requirements:

  • GitHub Copilot
  • Azure MCP extension
  • Reader access to Azure

Works locally or via GitHub Codespaces.

Final Thoughts

Documentation doesn't have to be manual or stale. With the right tools, your infrastructure can document itself—accurately, instantly, continuously. This repo shows what's possible.

  • A diagram of the Omarchy keymap showing three columns of keycaps — Super plus a key for moving windows, Super plus Shift for launching apps, Super plus Ctrl for system panels — with a footer noting that adding Alt gives the variant of each
    20 min read

    Omarchy Hotkeys: The Ones That Matter

    Omarchy ships around 200 hotkeys. You need twelve. A field guide to the keymap's grammar, and an honest account of the week your hands stop working.

  • Kodra macOS: One-Command Developer Environment
    14 min read

    Kodra macOS: One-Command Developer Environment

    Bootstrap your macOS developer environment in one command. Ghostty terminal, tmux, OpenCode AI, Podman containers, GitHub Copilot CLI, and 40+ cloud-native tools.

  • GitHub Copilot Instructions: Setup Guide
    20 min read

    GitHub Copilot Instructions: Setup Guide

    Set up GitHub Copilot custom instructions for your team. Repo-level, path-specific, and org-wide guidelines for Azure, Bicep, and Terraform projects.

Have a technology decision to make?

Book a free 30-minute strategy call — no pitch, just a straight conversation.