A comprehensive VS Code extension for managing and monitoring Azure API Management instances that serve as AI Gateways for large language models and AI services.
Features
🔍 Analytics
Real-time AI usage analytics with interactive charts
Request trends and performance metrics
Token usage tracking across models
Error rate monitoring and latency analysis
📊 Usage Monitoring
Token usage breakdown by subscription and model
Request count and error tracking
Performance metrics and duration analysis
Cost analysis and resource utilization
📝 Logs Viewer
Real-time request and response logs
Detailed prompt and completion inspection
Request filtering and search capabilities
Log export functionality
🔑 API Key Management
View and manage Azure API Management subscription keys
Create new API keys with custom configurations
Delete and regenerate existing keys
Key status and creation date tracking
🔗 API Discovery
Browse available AI APIs and models
View API operations and endpoints
Service URL and configuration details
API documentation and schema information
🛠️ MCP Tools Integration
Discover Model Context Protocol (MCP) tools
View tool parameters and configurations
Enable/disable tools as needed
Integration status monitoring
Getting Started
Prerequisites
VS Code 1.103.0 or higher
Azure subscription with API Management service
Azure authentication via one of the following:
Azure CLI: Run az login to authenticate
Azure Account Extension: Install and sign in through VS Code
Azure Service Principal: Set environment variables for service principal authentication
Appropriate permissions to access Azure API Management (Reader role minimum, Contributor for key management)
Installation
Install the extension from the VS Code marketplace
Open the Command Palette (Ctrl+Shift+P)
Run "AI Gateway: Connect to Azure API Management"
Configure your Azure API Management settings
Configuration
The extension now features interactive configuration with real Azure API integration! No need to manually edit settings or work with mock data.
Click the AI Gateway icon in the Activity Bar
Click "Configure Azure Connection" in any view
Follow the guided setup:
Select Azure Tenant: Choose from your actual available tenants
Select Azure Subscription: Pick from your real subscriptions
Select API Management Service: Choose from discovered services in your subscription
The extension will test the connection and save your configuration
Click "Connect" to start using the extension
Note: The extension now uses the Azure SDK to discover real Azure resources in your account. Ensure you are authenticated via Azure CLI (az login) or the Azure Account extension in VS Code.
Alternative Manual Configuration (Advanced)
If you prefer manual configuration, you can still set these VS Code settings: