Forum Discussion

edwinpantony415's avatar
Jul 28, 2026

Microsoft Foundry External MCP Server Traffic Routing via Corporate Firewall

The customer would like to confirm whether traffic from an Azure AI Foundry agent to an external MCP server can be routed through a corporate firewall and whether this scenario is officially supported.

To validate this scenario, I configured the following in my lab:

  • Deployed an Azure AI Foundry resource using the Standard Agent Service with network injection.
  • Created a dedicated subnet for the Foundry Agent Service and delegated it to Microsoft.App/environments.
  • Associated a route table with the Foundry Agent subnet to route outbound traffic through Azure Firewall.
  • Configured the required application and network rules on Azure Firewall.

 

The Foundry agent is able to successfully retrieve data from the external MCP server. However, no corresponding traffic is visible in the Azure Firewall logs.

 

Could you please confirm whether outbound traffic from the Foundry agent to an external MCP server can be routed through Azure Firewall or a corporate firewall? Also, is this routing scenario officially supported?

 

Appreciate your support!

2 Replies

  • benibix's avatar
    benibix
    Brass Contributor

    Hi edwinpantony415

    Jamony covered the routing checks, so this is only about why a call that works can leave no trace in the firewall logs. The firewall writes nothing until a diagnostic setting sends the logs somewhere, and the table depends on that setting. With the legacy Azure diagnostics destination, rows land in AzureDiagnostics, not in AZFWApplicationRule or AZFWNetworkRule. With the resource specific destination they land in the AZFW tables. Query both, and wait up to 30 minutes after changing the setting before you test again.

    On whether it's supported, Learn's table of tools with network isolation lists MCP as supported through your VNet subnet, and the Foundry networking page says to make sure no TLS inspection happens in the firewall. If both tables stay empty after a fresh call, I can't tell from outside whether the tool traffic is leaving through your subnet, so the support case Jamony described is the next step.

  • You’re confirming whether a Standard Foundry Agent with network injection can route an external MCP tool call through Azure Firewall, because the call succeeds but no firewall event appears. Microsoft’s networking model says tool-server calls use a single-tenant data proxy in the delegated agent subnet; with bring-your-own VNet injection, a firewall can control egress to approved internet endpoints. Custom MCP servers, including private ones, are supported. Confirm the Foundry account was created with network injection, because adding it later is unsupported. Verify the route table is associated with the Microsoft.App/environments delegated subnet and its 0.0.0.0/0 route points to the firewall private IP. Invoke one tool at a UTC timestamp, then query AZFWApplicationRule and AZFWNetworkRule and confirm diagnostic settings are enabled. Avoid TLS inspection for required Foundry endpoints. If logs remain empty, open Microsoft support with the project ID, subnet, route table, firewall policy, MCP FQDN, and timestamp.