Azure AI Foundry Integration
Azure AI Foundry (formerly Azure AI Studio) is Microsoft's platform for building and deploying AI applications. LangGuard integrates with Azure AI Foundry to discover AI resources, deployments, and ingest traces.
Overview
The Azure AI Foundry integration enables LangGuard to:
- Discover AI resources — Projects, deployments, and endpoints in your Azure subscription
- Ingest traces from Azure AI Foundry applications
- Track model deployments and their usage
- Monitor performance — Latency, token usage, and error rates
Prerequisites
- An Azure subscription with AI Foundry resources
- Azure AD application (service principal) with appropriate permissions
- LangGuard admin role
Setup
Step 1: Create an Azure AD Application
- Navigate to the Azure Portal
- Go to Azure Active Directory > App registrations
- Click New registration
- Name it "LangGuard Integration"
- After creation, note the Application (client) ID and Directory (tenant) ID
- Under Certificates & secrets, create a new Client secret and copy the value
Step 2: Assign Permissions
Grant the service principal read access to your AI Foundry resources:
- Navigate to your Azure AI Foundry resource or resource group
- Go to Access control (IAM)
- Click Add role assignment
- Assign the Reader role to your LangGuard application
Step 3: Add Integration in LangGuard
- Navigate to Integrations in the sidebar
- Click Add Integration
- Select AI Platforms > Azure AI Foundry
- Enter:
- Name: A friendly name (e.g., "Production Azure AI")
- Subscription ID: Your Azure subscription ID
- Tenant ID: Your Azure AD tenant ID
- Client ID: The application (client) ID
- Client Secret: The client secret value
- Click Test Connection
- Click Save
What Gets Captured
AI Resources
LangGuard discovers and catalogs your Azure AI Foundry resources:
| Resource | Details Captured |
|---|---|
| Projects | Name, region, status |
| Deployments | Model name, version, SKU, endpoint |
| Endpoints | URL, authentication method, traffic split |
Traces
When traces are enabled in your Azure AI applications:
| Field | Description |
|---|---|
| Operation | The AI operation performed |
| Model | The deployed model used |
| Input/Output Tokens | Token counts |
| Latency | Response time |
| Status | Success or error |
Troubleshooting
Authentication Failed
- Verify the Client ID, Client Secret, and Tenant ID are correct
- Check that the client secret hasn't expired
- Ensure the service principal has the Reader role on the subscription or resource group
No Resources Discovered
- Confirm AI Foundry resources exist in the specified subscription
- Verify the service principal has read access to the correct resource group
- Check that the Subscription ID is correct
No Traces Appearing
- Ensure tracing is enabled in your Azure AI Foundry applications
- Verify the Application Insights instance is connected
- Check the time range in LangGuard
Next Steps
- Integrations Overview — See all available integrations
- Discovery — View discovered AI resources
- Policies — Apply governance rules to Azure AI operations