Intelligent Azure architecture diagram generator using AI agents, MCP service validation, and comprehensive Azure component library.
This solution provides an intelligent system for generating professional Azure architecture documents and diagrams with automatic validation and correction:

- Multi-Agent Architecture: Specialized agents for design, validation, and diagram generation
- GPT-4o Integration: Advanced natural language processing for architecture understanding
- Intelligent Component Selection: Automatic Azure service recommendations
- Component Validation: Validates all Azure components against the official diagrams library
- Automatic Correction: Fixes import paths and component names automatically
- Smart Suggestions: Provides intelligent alternatives for invalid components
- Comprehensive Coverage: Supports 247+ Azure services across all categories
- High-Quality Rendering: Vector-based diagrams with professional styling
- Multiple Formats: PNG, SVG, and PDF output support
- Responsive Design: Works on desktop and mobile devices
- Export Options: Download diagrams in various formats
- Managed Identity: Secure authentication without credentials
- Cosmos DB Storage: Persistent architecture storage and versioning
- Container Apps: Scalable, serverless container platform
- Dapr Service to Service: Seamless Service to Service Communications
- Monitoring: Comprehensive logging and monitoring with Application Insights
- Azure subscription with appropriate permissions
- Azure Developer CLI (azd) installed (Install Guide)
- Azure CLI installed (Install Guide)
- Docker Desktop installed and running (Download)
- Git installed (Download)
This template requires Azure AI Foundry, which is available in these regions:
- australiaeast, brazilsouth, canadaeast, eastus, eastus2, francecentral
- germanywestcentral, japaneast, southcentralus, southeastasia, southindia
- swedencentral, switzerlandnorth, uksouth, westus, westus3
Note: Updates on limits and quotas: Azure AI Foundry Documentation
- Click the "Open in GitHub Codespaces" badge above or visit the repository
- Create a new Codespace - The environment will automatically configure itself
- Deploy to Azure with just two commands:
azd auth login az login azd up
No need to install anything locally - everything runs in the cloud! Perfect for developers who want to try the template quickly or work from any device.
az login
az account set --subscription <your-subscription-id>
Option 2: Interactive Deployment (Recommended)
azd init --template passadis/ai-architect-webapp
az login
azd up
Option 3: Non-Interactive Deployment
az login
azd init --template passadis/ai-architect-webapp -e <environment-name> --up
azd up
The deployment will:
- Create an Azure AI Foundry service with GPT-4o model
- Deploy frontend, backend, and MCP service containers
- Set up Cosmos DB, Storage Account, and Key Vault
- Configure managed identity and RBAC permissions
- Provide the application URL when complete
This deployment uses the Basic Agent Setup which includes:
- Azure AI Foundry service with Managed Identity authentication
- AI project with GPT-4o model deployment
- Microsoft-managed Key Vault
- All necessary RBAC permissions
Create a web application with a database and storage
Generated: App Service + SQL Database + Blob Storage with proper connections
Design a microservices platform with API gateway, container apps, and shared database
Generated: API Management + Container Apps + Cosmos DB + Service Bus
Build a data lake solution with Azure Functions for processing and Power BI for visualization
Generated: Data Lake + Functions + Event Hub + Power BI with data flow connections
- π§ Intelligent Architecture: Combines Azure AI automation with a clean, maintainable codebase
- π Model Context Protocol (MCP): Acts as a single source of truth for validation and service integration
- π Seamless Azure Integration: Works effortlessly with Cosmos DB, Azure Storage, and other native services
- βοΈ Scalable & Secure Backend: Designed for high performance and enterprise-grade security
- π₯οΈ Intuitive Frontend: Responsive UI for a smooth and user-friendly experience
- π§ͺ Clean Separation of Concerns: Modular design for easier testing, maintenance, and innovation
- π azd Template Support: Fully compatible with Azure Developer CLI for streamlined deployment
- π’ Enterprise Ready: Built for real-world cloud environments with rapid iteration in mind
- Modern React application with TypeScript
- Material-UI components for professional interface
- Real-time diagram preview and editing
- Responsive design for all devices
- FastAPI web framework for high-performance APIs
- Azure AI Projects integration for GPT-4o access
- Multi-agent orchestration system
- Comprehensive error handling and logging
- Model Context Protocol implementation
- Azure components validation engine
- Automatic import correction and suggestions
- GraphViz integration for diagram rendering
- Azure Container Apps for scalable hosting
- Cosmos DB for persistent storage
- Azure AI Projects for AI capabilities
- Managed Identity for secure authentication
The application uses the following environment variables (automatically configured during deployment):
# Azure AI Projects
PROJECT_ENDPOINT=https://your-ai-project.cognitiveservices.azure.com
AI_AGENT_NAME=architectai-agent
VALIDATION_AGENT_NAME=architectai-validation-agent
MCP_DIAGRAM_AGENT_NAME=architectai-mcp-diagram-agent
# Azure Cosmos DB
COSMOS_ENDPOINT=https://your-cosmos.documents.azure.com
COSMOS_DATABASE_NAME=ai-architect-db
COSMOS_CONTAINER_NAME=architectures
# Application Settings
MODEL_NAME=gpt-4o
DIAGRAMS_OUTPUT_DIR=static/diagrams
USE_MCP=true
For advanced scenarios, you can customize:
- Agent Instructions: Modify agent prompts in
backend/app/services/
- Component Mappings: Update
mcp-service/azure_nodes.json
- Diagram Styling: Customize rendering in
mcp-service/mcp_diagrams_server.py
- Infrastructure: Modify Terraform files in
infra/
This project is designed as a cloud-native Azure template. For the best development experience:
Option 1: GitHub Codespaces
# One-click cloud development environment
# Click "Code" β "Create codespace on main" in GitHub
# All dependencies and Azure CLI pre-configured
azd auth login
az login
azd up
Option 2: Azure Deployment
# Deploy your development environment to Azure
azd auth login
az login or az account set --subscription <your-subscription-id>
azd init --template passadis/ai-architect-webapp
azd up
# Develop against live Azure services
This template integrates deeply with Azure services (AI Foundry, Cosmos DB, Managed Identity) that don't have local equivalents. The architecture is optimized for Azure Container Apps with Dapr service mesh.
For learning and experimentation, we recommend deploying to Azure's free tier or using GitHub Codespaces.
-
Authentication Errors:
- Ensure Managed Identity is properly configured
- Verify Azure AI Projects access permissions
-
Diagram Generation Failures:
- Check MCP service health endpoint
- Verify component names in logs
-
Performance Issues:
- Monitor Application Insights for bottlenecks
- Check Container Apps scaling configuration
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Wiki
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Azure Diagrams Library: For the comprehensive Azure component library
- Model Context Protocol: For the validation framework
- Azure Developer CLI: For the deployment infrastructure
- Community Contributors: For feedback and improvements
Made with β€οΈ by Konstantinos Passadis