-
Notifications
You must be signed in to change notification settings - Fork 2
Error Analysis
The error analysis command provides AI-powered diagnosis of errors, failures, and unexpected behavior encountered during prototype development and deployment. It implements the QA-first routing principle: all errors are routed to the qa-engineer agent, which owns the full diagnostic lifecycle including evidence gathering, log analysis, and root cause identification.
For persistent or unresolvable issues, the system integrates with the escalation chain.
az prototype analyze error --input INPUT
| Parameter | Type | Description |
|---|---|---|
--input |
string (required) | Error input to analyze. Accepts an inline error string, a path to a log file, or a path to a screenshot image. |
--json / -j
|
flag | Output machine-readable JSON instead of formatted display. |
The --input parameter accepts three types of input, detected automatically:
Pass an error message directly as a quoted string. Useful for quick diagnosis of a specific error.
az prototype analyze error --input "Error: ResourceGroupNotFound - Resource group 'rg-myapp' could not be found"Pass a path to a log file. The QA agent reads the file contents and analyzes the full log for errors, warnings, and root causes.
az prototype analyze error --input ./terraform.logPass a path to a screenshot image (PNG, JPG, etc.). The QA agent uses vision capabilities to analyze the screenshot, identify error messages, and diagnose the issue.
az prototype analyze error --input ./error-screenshot.pngError analysis follows the agent governance principle that all errors, failures, and unexpected behavior must route to qa-engineer first. The QA agent:
- Gathers evidence -- examines the error message, log content, or screenshot
- Analyzes context -- considers the current project configuration, design, and build state
- Identifies root cause -- determines what went wrong and why
- Recommends resolution -- provides actionable steps to fix the issue
The QA agent has web search enabled (see Knowledge System), so it can look up Microsoft Learn documentation when diagnosing unfamiliar errors.
If the QA agent cannot resolve the issue and an escalation tracker is available, it records the blocker automatically for escalation.
When the input is an image file, the extension uses the AI provider's vision capabilities to analyze screenshots. This is particularly useful for:
- Azure Portal error dialogs
- Deployment failure screens
- CLI output screenshots shared by team members
- Browser-based application errors
The AIMessage.content field supports both string and list forms; the list form holds OpenAI-compatible vision content arrays with base64-encoded image data.
Analyze an inline error:
az prototype analyze error --input "TerraformError: Error creating AzureRM Resource Group: unexpected status 403"Analyze a Terraform log file:
az prototype analyze error --input ./infra/terraform.logAnalyze a deployment failure screenshot:
az prototype analyze error --input ./screenshots/deploy-failure.pngGet JSON output for programmatic consumption:
az prototype analyze error --input "connection refused" --json- Escalation -- what happens when QA cannot resolve the issue
- Troubleshooting -- common issues and diagnostic commands
- Knowledge System -- web search used during diagnosis
Getting Started
Stages
Interfaces
Configuration
Agent System
Features
- Backlog Generation
- Cost Analysis
- Error Analysis
- Docs & Spec Kit
- MCP Integration
- Knowledge System
- Escalation
Quality
Help
Policies — Azure
AI Services
Compute
Data Services
- Azure SQL
- Backup Vault
- Cosmos Db
- Data Factory
- Databricks
- Event Grid
- Event Hubs
- Fabric
- IoT Hub
- Mysql Flexible
- Postgresql Flexible
- Recovery Services
- Redis Cache
- Service Bus
- Stream Analytics
- Synapse Workspace
Identity
Management
Messaging
Monitoring
Networking
- Application Gateway
- Bastion
- CDN
- DDoS Protection
- DNS Zones
- Expressroute
- Firewall
- Load Balancer
- Nat Gateway
- Network Interface
- Private Endpoints
- Public Ip
- Route Tables
- Traffic Manager
- Virtual Network
- Vpn Gateway
- WAF Policy
Security
Storage
Web & App
Policies — Well-Architected
Reliability
Security
Cost Optimization
Operational Excellence
Performance Efficiency
Integration