Troubleshooting Microsoft Foundry Accessing On‑Premises APIs Over Private Networking

· Source: Microsoft Foundry Blog articles · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cloud Computing & IT Infrastructure · Depth: Advanced, medium

Summary

This article addresses common issues encountered when Microsoft Foundry Agent Services attempt to access on-premises APIs over private networks using corporate DNS, specifically when a VM in the same VNet succeeds but the Foundry agent fails. The core problem identified is that Foundry agents do not automatically run within the customer's VNet, even with private endpoints configured. Outbound agent traffic only flows through the VNet if a "Capability Host" is explicitly defined. This host binds a Foundry project or agent to a customer-managed subnet, enabling container injection and ensuring outbound traffic adheres to VNet routing, security, and DNS configurations. Without a Capability Host, agents do not inherit VNet DNS settings, leading to resolution failures or connection timeouts, even if the overall DNS design is correct. The article also touches on HTTP 401 errors post-connectivity, indicating authentication issues.

Key takeaway

For Azure solution architects and network engineers deploying Microsoft Foundry in network-isolated environments, you must prioritize configuring a Project Capability Host. This critical step ensures Foundry agents inherit VNet routing and DNS, enabling secure access to on-premises APIs. Without it, your agents will fail to connect, regardless of other network configurations, leading to premature troubleshooting of DNS or VPN issues.

Key insights

Foundry agents require a Capability Host to inherit VNet networking and access on-premises resources.

Principles

Method

To enable private connectivity for Foundry agents, create and associate a Project Capability Host, binding the project to a delegated agent subnet, and ensure proper RBAC permissions and dependent Azure services are configured.

In practice

Topics

Code references

Best for: AI Architect, MLOps Engineer, DevOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Microsoft Foundry Blog articles.