Hackathon Topic: Generating Architecture Diagrams for AVD and Windows 365 Automatically with Microsoft Agentic AI Solution.
Recently, I had the opportunity to demonstrate my agentic AI solution for creating architecture diagrams for Azure resources—such as Azure Virtual Desktop—at the Bhutan Microsoft Community Agentic AI Hackathon.
The hackathon saw enthusiastic participation from many students, and it was truly a pleasure to present my solution to such an engaged and curious audience. Interacting with the community, sharing ideas, and seeing the interest in Azure architecture and automation made the experience especially rewarding.

There are multiple college students from many engineering colleges who have participated in the program.

Here are few diagrams that have been generated with the help of natural human language inputs.

While creating architecture diagrams in Visio often takes considerable time and manual effort, an agentic AI–based solution can produce the same results within minutes.
Topic: Auto-Generating Azure Architecture Diagrams Using Python, Graphviz, and Draw.io
Creating and maintaining Azure architecture diagrams is often a manual, time-consuming, and error-prone task—especially in environments where infrastructure changes frequently. To solve this, I built a Python-based solution that automatically generates Azure architecture diagrams using Graphviz, with export support for PNG, SVG, and Draw.io formats.
Problem Statement
In real-world Azure projects:
- Architects and engineers spend hours manually updating diagrams
- Diagrams quickly become outdated
- There is no easy way to keep documentation in sync with infrastructure
This problem becomes even more visible in enterprise Azure Virtual Desktop (AVD) and Windows 365 environments where resources scale dynamically.
Solution Overview
My solution automates the entire diagram creation process using Python:
Input
- Structured resource definitions (JSON / YAML / Terraform-style metadata)
- Azure resources such as:
- VNets & Subnets
- Azure Virtual Desktop components
- VMs, Load Balancers, Application Gateways
- Storage Accounts, Azure AD dependencies
Processing
- Python parses the resource relationships
- Logical dependencies are mapped automatically
- Graphviz DOT language is generated dynamically
Output
- Architecture diagrams in:
- PNG (for documents & presentations)
- SVG (scalable, web-friendly)
- Draw.io XML (fully editable diagrams)
Why Graphviz?
Graphviz provides:
- Declarative graph definitions
- Clean edge-based relationship modeling
- High-quality SVG and PNG rendering
- Perfect compatibility with automation pipelines
It allows the architecture to be expressed as code, making diagrams:
- Version-controlled
- Reproducible
- CI/CD friendly
Draw.io Export Support
Beyond static images, the solution also generates Draw.io-compatible XML, allowing:
- Post-generation manual edits
- Collaboration with non-technical stakeholders
- Easy embedding into Confluence, Wiki, or documentation portals
This bridges the gap between automation and human-friendly design tools.
Key Benefits
✔ Zero manual diagram drawing
✔ Always in sync with infrastructure
✔ Supports DevOps & IaC workflows
✔ Ideal for audits, documentation, and client deliverables
✔ Easily extensible for new Azure services
Use Cases
- Azure Architecture Documentation
- Azure Virtual Desktop & Windows 365 Designs
- Terraform / ARM / Bicep Visualization
- Pre-sales and solution design automation
- Platform engineering tools (Nerdio-like solutions)
Future Enhancements
- Direct Terraform state file ingestion
- Azure Resource Graph integration
- Interactive web UI
- GitHub Actions / Azure DevOps pipeline integration
Here are a few more diagrams generated by college students by entering prompts. Now let’s see in details what I have done.

Setup hostpool FSLogix

Single-session host pool.
A more complex design for Azure Web App with Load Balancer and SQL Server is shown below:

An Application Interface.
Few screenshots from the project is shown below.




Final Thoughts
Automating Azure architecture diagrams is not just about saving time—it’s about treating architecture as code. By combining Python with Graphviz and Draw.io, this solution ensures that diagrams remain accurate, version-controlled, and always aligned with the actual infrastructure.
For architects and platform engineers working in fast-moving Azure environments—especially around Azure Virtual Desktop and Windows 365—this approach removes manual overhead and brings consistency across design, documentation, and delivery. More importantly, it lays the foundation for next-generation platform tooling, where architecture, automation, and governance work together seamlessly.
As cloud environments continue to grow in complexity, automated, code-driven visualization will no longer be optional—it will be a core part of modern cloud engineering.