Lesson 3 of 4 Microsoft Foundry Platform Configuration

Network Security for Foundry

This lesson explains how Foundry is isolated with private endpoints, how connected services are reached privately, and how agent outbound traffic is controlled with network injection.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe inbound isolation with private endpoints and DNS.
  • Explain how isolated services reach each other.
  • Describe network injection for agents.
  • Diagnose access failures caused by DNS.

Inbound isolation

A Foundry resource is reachable from the internet by default. Inbound access is restricted by setting publicNetworkAccess to Disabled, or by allowing only selected networks with networkAcls, and adding a private endpoint in a virtual network. Clients in that network, or in networks connected by peering, VPN or ExpressRoute, then reach the resource through a private IP address.

Private endpoints rely on DNS. The resource's names must resolve to the private address inside the network, through these private DNS zones linked to the virtual network:

  • privatelink.cognitiveservices.azure.com
  • privatelink.openai.azure.com
  • privatelink.services.ai.azure.com

Private endpoints need DNS

A private endpoint without working DNS is a common fault. Clients still resolve the public address, which now refuses them, so calls fail with 403 errors that look like permission problems. Check name resolution from the client before changing roles.

Isolating connected services

A private Foundry resource is only as private as the services it uses. Azure AI Search, Azure Storage, Azure Cosmos DB and Azure Key Vault each need their own private endpoints and public access disabled, with their own private DNS zones, such as privatelink.search.windows.net and privatelink.blob.core.windows.net.

When services call each other, for example Azure AI Search calling an embedding deployment during indexing, the calls must also work privately. Options include shared private links from Azure AI Search to the Foundry resource, and trusted Azure services exceptions, set with the network rules' bypass option, that let specific Azure services authenticated by managed identity reach a resource whose public access is restricted.

Agent outbound traffic

Agents call tools: retrieval over a search index, functions, OpenAPI tools, other agents. By default, the Foundry Agent Service runs these calls on Microsoft-managed infrastructure. For strict isolation, network injection runs the agent runtime in a subnet of the customer's virtual network, configured on the Foundry resource with a network injection for the agent scenario and a delegated subnet. Agent traffic then follows the customer's routes, network security groups and firewall, and can reach private resources.

Default agent networking
Where agent tool calls runMicrosoft-managed network
Reach private resourcesNo
Egress controlMicrosoft-managed
SetupNone
Choose when Development and public resources
Network injection
Where agent tool calls runA delegated subnet in your virtual network
Reach private resourcesYes, through your network
Egress controlYour firewall and routing
SetupStandard agent setup with your own storage, Cosmos DB and Search resources
Choose when Regulated workloads and private data sources

A private architecture

A typical private GenAIOps environment combines these elements. The steps below show the order in which they are usually built, because each depends on the previous ones.

  1. Network

    A hub-and-spoke virtual network with subnets for private endpoints, the agent runtime and application hosting, and private DNS zones linked to it.

  2. Supporting services

    Storage, Cosmos DB, Azure AI Search, Key Vault and Application Insights with private endpoints and public access disabled.

  3. Foundry resource

    Public network access disabled, a private endpoint, a managed identity, local authentication disabled and network injection for agents.

  4. Projects and connections

    Projects with Entra ID connections to the supporting services.

  5. Access paths

    Developers through VPN or Azure Bastion; CI/CD through self-hosted runners in the network; applications in integrated hosting such as Container Apps in the virtual network.

Worked example

A private assistant that cannot reach its index

A support assistant's Foundry resource and its Azure AI Search service both have public access disabled and private endpoints. Agents in the project fail when they query the index. Developers in the virtual network can query the index directly. The agents use the default agent networking.

With default networking, agent tool calls run on Microsoft-managed infrastructure that has no path to the search service's private endpoint. Configure network injection so that the agent runtime runs in a delegated subnet of the virtual network, which uses the standard agent setup, and make sure the subnet can resolve and reach the search service's private endpoint.

Re-enabling public access on the search service would work by abandoning the isolation requirement. Granting the project identity more roles on the search service does not create a network path. Adding a second private endpoint for the Foundry resource changes inbound access, not the agents' outbound calls.

Check yourself

After a private endpoint is added and public access is disabled, clients on the virtual network get 403 errors. What should be checked first?

Show answer

DNS. The resource's host name must resolve to the private endpoint's IP address through the private DNS zone; otherwise clients still reach the public endpoint, which now rejects them.

Exam Tips

Remember for the exam

  • Disable public network access and add private endpoints with private DNS zones.
  • Connected services need their own private endpoints; shared private links and trusted services let services call each other.
  • Network injection runs agents in a delegated subnet so tool calls reach private resources.
  • 403 errors after adding a private endpoint often mean DNS still resolves the public address.