Spaces:
Sleeping
title: Azure Ops Copilot
emoji: π€
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 7860
pinned: false
license: mit
short_description: AI-Powered DevOps Assistant for Azure Operations
tags:
- building-mcp-track-enterprise
π€ Azure Ops Copilot
AI-Powered DevOps Assistant for Azure Operations
Demo β’ Documentation β’ Installation β’ Contributing
β¨ Features
π― Demo
Try it live on Hugging Face Spaces!
Example queries:
π¬ "Analyze alert alert-001"
π¬ "Check config for vm-01"
π¬ "Suggest a fix for high CPU on vm-01"
π¬ "Summarize the recent logs"
ποΈ Conversation Flow
Tech Stack
π Quick Start
Prerequisites
- Python 3.10+
- uv package manager
- Azure OpenAI API access
Installation
Clone the repository
git clone https://github.com/mahimairaja/azure-agent-ops-copilot.git cd azure-agent-ops-copilotInstall dependencies
uv sync --all-groupsConfigure environment
cp .env.example .envEdit
.envand add your Azure OpenAI credentials:AZURE_OPENAI_ENDPOINT=https://your-endpoint.openai.azure.com/ AZURE_OPENAI_API_KEY=your-api-key-here AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o-miniGenerate sample data
uv run python scripts/generate_logs.py uv run python scripts/generate_configs.pyRun the application
Terminal 1 - Start the backend:
uv run python src/backend/app.pyTerminal 2 - Start the frontend:
uv run python src/frontend/app.pyOpen your browser
Navigate to
http://localhost:7860and start chatting!
π³ Docker Deployment
Local Docker
# Build the image
docker build -t azure-ops-copilot .
# Run the container
docker run -p 7860:7860 -p 8000:8000 \
-e AZURE_OPENAI_ENDPOINT=your-endpoint \
-e AZURE_OPENAI_API_KEY=your-key \
-e AZURE_OPENAI_DEPLOYMENT_NAME=gpt-4o-mini \
azure-ops-copilot
Hugging Face Spaces
This project is configured for one-click deployment to Hugging Face Spaces:
- Fork this repository
- Create a new Space on Hugging Face
- Choose Docker as the SDK
- Connect your GitHub repository
- Add your Azure OpenAI credentials as Space secrets
- Deploy! π
π Usage Examples
Analyze Alerts
# Ask the copilot
"Analyze alert alert-001"
# Response includes:
# - Alert details
# - Severity and resource info
# - Root cause analysis
# - Suggested remediation
Check Resource Configuration
# Query by short name
"Check config for vm-01"
# Or by full resource ID
"Show configuration for /subscriptions/.../virtualMachines/vm-01"
Generate Fixes
# Request fix generation
"Suggest a fix for high CPU on vm-01"
# Get:
# - Bicep template for VM resize
# - Azure CLI commands
# - Best practices
π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
- Semantic Kernel - AI orchestration framework
- FastMCP - Model Context Protocol implementation
- Gradio - Beautiful web UI framework
- Azure OpenAI - LLM provider
π¬ Contact
Mahimai Raja - LinkedIn - GitHub
β Star this repo if you find it helpful!
Made with β€οΈ by Mahimai Raja