Skip to content

Remaker-Digital/Mult-agent-AI-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Multi-Agent AI Service Platform on Azure

License: MIT Terraform Azure

A production-ready, enterprise-grade multi-agent AI system deployed on Microsoft Azure using Infrastructure as Code (Terraform). This platform provides a secure, scalable, and cost-optimized environment for running containerized AI agents with comprehensive networking, data storage, monitoring, and security features.

Architecture Diagram Architecture diagram showing the complete Azure infrastructure

🌟 Features

Core Infrastructure

  • βœ… 5 Containerized AI Agents on Azure Container Instances with auto-scaling
  • βœ… Azure Cosmos DB for conversation state storage (400-4000 RU/s autoscale)
  • βœ… Azure Cache for Redis for session management (250MB - 4GB configurable)
  • βœ… Application Gateway with Web Application Firewall (WAF)
  • βœ… Container Registry with geo-replication support
  • βœ… Key Vault for secrets management
  • βœ… Application Insights + Log Analytics for observability

Security

  • πŸ”’ Private Virtual Network with isolated subnets
  • πŸ”’ Network Security Groups with least-privilege rules
  • πŸ”’ Private endpoints for all backend services
  • πŸ”’ Managed Identities (zero credential management)
  • πŸ”’ TLS 1.3 enforcement
  • πŸ”’ WAF with OWASP 3.2 ruleset
  • πŸ”’ Customer-managed encryption keys

Scalability

  • πŸ“ˆ Independent agent scaling (2-10 instances per agent)
  • πŸ“ˆ Cosmos DB autoscaling (400-4000 RU/s)
  • πŸ“ˆ Redis capacity scaling (Basic to Premium tiers)
  • πŸ“ˆ Application Gateway autoscaling

Observability

  • πŸ“Š Application Insights for APM
  • πŸ“Š Centralized logging with Log Analytics
  • πŸ“Š Custom metrics and dashboards
  • πŸ“Š Pre-configured alerts (CPU, memory, errors, latency)
  • πŸ“Š Budget alerts at 80%, 95%, and 100% thresholds

πŸš€ Quick Start

Prerequisites

  • Azure Subscription with appropriate permissions
  • Terraform 1.5.0 or later (Install)
  • Azure CLI 2.40 or later (Install)
  • Docker Desktop (for building agent images) (Install)
  • Git for version control

One-Command Deployment

# Clone the repository
git clone https://github.com/Remaker-Digital/multi-agent-service-platform.git
cd multi-agent-service-platform/terraform

# Authenticate with Azure
az login
az account set --subscription "YOUR_SUBSCRIPTION_ID"

# Make scripts executable (Unix/Mac/Git Bash)
chmod +x scripts/*.sh

# Deploy to development environment
./scripts/init.sh dev
./scripts/plan.sh dev
./scripts/apply.sh dev

For detailed deployment instructions, see the Deployment Guide.

πŸ“ Project Structure

multi-agent-service-platform/
β”œβ”€β”€ README.md                       # This file
β”œβ”€β”€ LICENSE                         # MIT License
β”œβ”€β”€ CONTRIBUTING.md                 # Contribution guidelines
β”œβ”€β”€ claude.md                       # Project context for AI assistants
β”‚
β”œβ”€β”€ terraform/                      # Infrastructure as Code
β”‚   β”œβ”€β”€ main.tf                    # Root module
β”‚   β”œβ”€β”€ variables.tf               # Variable definitions
β”‚   β”œβ”€β”€ outputs.tf                 # Output values
β”‚   β”œβ”€β”€ modules/                   # 7 Terraform modules
β”‚   β”œβ”€β”€ environments/              # Environment configs (dev/staging/prod)
β”‚   β”œβ”€β”€ scripts/                   # Deployment automation
β”‚   └── docs/                      # Detailed documentation
β”‚
β”œβ”€β”€ agents/                         # Agent applications
β”‚   β”œβ”€β”€ conversation-agent/        # Conversational AI agent
β”‚   β”œβ”€β”€ analysis-agent/            # Data analysis agent
β”‚   β”œβ”€β”€ recommendation-agent/      # Recommendation engine
β”‚   β”œβ”€β”€ knowledge-agent/           # Knowledge base manager
β”‚   └── orchestration-agent/       # Multi-agent orchestrator
β”‚
β”œβ”€β”€ docker/                         # Docker configurations
β”‚   β”œβ”€β”€ docker-compose.yml         # Local development setup
β”‚   └── base/                      # Base Docker images
β”‚
β”œβ”€β”€ .github/                        # GitHub configurations
β”‚   └── workflows/                 # CI/CD pipelines
β”‚
└── docs/                          # Additional documentation
    β”œβ”€β”€ architecture.md            # Architecture details
    β”œβ”€β”€ setup/                     # Setup guides
    └── images/                    # Diagrams and screenshots

πŸ’° Cost Estimates

Environment Monthly Cost Use Case
Development ~$500 Development and testing
Staging ~$2,000 Pre-production validation
Production ~$5,000 Live production workloads

Cost optimization features:

  • Environment-specific SKUs (Basic for dev, Premium for prod)
  • Autoscaling to match demand
  • Budget alerts and monitoring
  • Optional geo-replication (production only)

πŸ—οΈ Architecture

The platform consists of 7 modular Terraform components:

  1. Networking - VNet, subnets, NSGs, private DNS zones
  2. Security - Key Vault, managed identities, RBAC
  3. Container Registry - ACR with geo-replication
  4. Data Layer - Cosmos DB and Redis
  5. Observability - Application Insights and Log Analytics
  6. Agent Infrastructure - Container instances with autoscaling
  7. Gateway - Application Gateway with WAF

For detailed architecture documentation, see Architecture Guide.

πŸ”§ Configuration

Environment Variables

Create a terraform/environments/<env>/terraform.tfvars file:

# Core Configuration
project_name = "multiagent-ai"
environment  = "dev"
location     = "eastus"

# Alert Configuration
alert_email_addresses = ["info@remakerdigital.com"]

# Budget
monthly_budget_amount = 500

# Agent Configuration
agents = {
  agent1 = {
    name        = "conversation-agent"
    description = "Handles conversational interactions"
    port        = 8080
  }
  # Add more agents...
}

See terraform.tfvars.example for all available options.

🐳 Docker Setup

Build and push agent images:

# Build agent image
cd agents/conversation-agent
docker build -t conversation-agent:latest .

# Login to Azure Container Registry
az acr login --name <your-registry-name>

# Tag and push
docker tag conversation-agent:latest <registry>.azurecr.io/conversation-agent:latest
docker push <registry>.azurecr.io/conversation-agent:latest

For local development:

cd docker
docker-compose up

πŸ“Š Monitoring

Application Insights

Access Application Insights for real-time monitoring:

APP_INSIGHTS_URL=$(terraform output -raw app_insights_id)
echo "https://portal.azure.com/#resource/$APP_INSIGHTS_URL"

Log Analytics

Query logs using KQL:

az monitor log-analytics query \
  --workspace $(terraform output -raw log_analytics_workspace_id) \
  --analytics-query "ContainerInstanceLog_CL | take 100"

πŸ›‘οΈ Security

  • Zero Trust Architecture - No public access to backend services
  • Managed Identities - Eliminates credential management
  • Private Endpoints - All data services isolated from internet
  • WAF Protection - OWASP 3.2 + Bot detection + Rate limiting
  • Encryption - TLS 1.3 in transit, customer-managed keys at rest

For security best practices, see Security Guide.

πŸ”„ CI/CD

GitHub Actions workflows are included for:

  • Terraform validation and formatting
  • Infrastructure deployment (with approvals)
  • Container image building and pushing
  • Security scanning

See .github/workflows/ for workflow definitions.

πŸ“š Documentation

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for details on:

  • Code of conduct
  • Development setup
  • Pull request process
  • Coding standards

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

πŸ“§ Support

πŸ—ΊοΈ Roadmap

  • Terraform infrastructure modules
  • Environment configurations (dev/staging/production)
  • Security hardening with private endpoints
  • Comprehensive monitoring and alerting
  • Sample AI agent implementations
  • Kubernetes alternative (AKS)
  • Multi-region deployment support
  • Advanced autoscaling policies
  • Terraform Cloud integration

⭐ Show Your Support

If you find this project helpful, please consider giving it a star on GitHub!


Built with ❀️ for the AI community

About

Production-ready multi-agent AI system on Azure with Terraform IaC

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors