-
Notifications
You must be signed in to change notification settings - Fork 134
[feat] add APIM IaC bicep setup with GenAI capabilities #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: manekinekko <[email protected]>
…entation Co-authored-by: manekinekko <[email protected]>
|
@Copilot please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
This PR implements a comprehensive Azure API Management (APIM) gateway to secure all endpoints in the Azure AI Travel Agents application, with specialized GenAI capabilities as requested.
🚀 What's Changed
Core Infrastructure
/ui/*)/api/*)/mcp/*)GenAI-Optimized Features
Security & Authentication
Monitoring & Observability
Missing Services Added
Added three previously referenced but undeployed MCP services:
web-search: Web search functionalitymodel-inference: AI model inference capabilitiescode-evaluation: Code execution and evaluation📁 File Changes
Infrastructure
infra/modules/apim.bicep: APIM service definition using AVMinfra/modules/apim-policies/global-policy.xml: Global APIM policies with GenAI featuresinfra/modules/apim-policies/api-policy.xml: Service-specific routing and security policiesinfra/main.bicep: Added APIM parameters and outputsinfra/resources.bicep: Integrated APIM module and updated service routingazure.yaml: Added missing MCP services to deploymentDocumentation
docs/apim-integration.md: Comprehensive APIM integration guidedocs/advanced-setup.md: Updated with APIM informationscripts/validate-apim.sh: Configuration validation script🔧 Technical Implementation
Routing Architecture
GenAI Policy Examples
🧪 Validation
The implementation includes a validation script that confirms:
Run validation:
./scripts/validate-apim.sh🚀 Deployment
The APIM infrastructure deploys automatically with existing workflow:
All service URLs are automatically updated to route through APIM gateway, providing immediate security and monitoring benefits.
📊 Benefits
Fixes #78.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
aka.msbicep build infra/main.bicep --stdout(dns block)bicep build infra/modules/apim.bicep --stdout(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.