Isolating Foundry with Private Networking and Protecting Data
This lesson explains how to make AI services reachable only from an organization's own networks and how to encrypt data with keys the organization controls.
Learning outcomes
After completing this lesson, you will be able to:
- Explain how private endpoints and disabled public access isolate a resource.
- Describe how network-secured agents reach private resources.
- Describe encryption with customer-managed keys and data handling.
- Diagnose name resolution problems after network isolation.
Private endpoints and public access
A private endpoint gives a resource a private IP address in a virtual network through Azure Private Link. With private endpoints for the Foundry resource, Azure AI Search, Storage and Cosmos DB, and public network access disabled on each, traffic never crosses the public internet. Private DNS zones (such as privatelink.cognitiveservices.azure.com, privatelink.openai.azure.com and privatelink.services.ai.azure.com) resolve the services' names to the private addresses; missing DNS configuration is a common cause of connection failures after private endpoints are added.
Where full isolation is not required, IP firewall rules restrict public access to known address ranges. Trusted Azure services and resource instance rules allow, for example, Azure AI Search to reach a firewalled storage account with its managed identity.
Public network access is set on the Networking page of a Foundry resource. The following screenshot shows the Selected Networks and Private Endpoints option, which allows only listed virtual networks and IP ranges. The Disabled option blocks all public access, so that only private endpoints, configured on the Private endpoint connections tab, reach the resource.

Network-secured agents
Agents that call private resources, such as an internal API or a private search index, use the standard agent setup with network isolation: the agent runtime is injected into a customer subnet delegated to the service, and the agent's dependent resources (Storage, Cosmos DB, Azure AI Search) are reached through private endpoints. Outbound connections can be restricted so that agents reach only approved destinations.
The reason this setup is needed is that agent tools run inside the agent service, not inside the customer's application. When an agent calls an OpenAPI tool for an internal order system, the call originates from the service's runtime. In the basic setup that runtime has no path into the customer's virtual network, so a private API is unreachable. Injecting the runtime into a delegated subnet places the agent's outbound traffic inside the customer's network, where it can reach private endpoints and internal APIs and be controlled by the customer's network security groups and firewall rules.
Network isolation and identity complement each other. Private networking decides which destinations an agent can reach at all; role assignments on its identity decide what it may do once it reaches them. A secure design uses both, because a network path alone does not limit what a compromised or misdirected agent could change.
The following diagram shows a network-isolated Foundry solution, including how the application resolves the Foundry name to the private endpoint's address.

Network isolation for agents is chosen when the resource is created. The following screenshot shows the Outbound Networking tab of the Create a Foundry resource page, where Custom VNet injects the agent client into a subnet, delegated to Microsoft.App/environments, of the organization's own virtual network in the same region.

Isolate the solution
Encryption and data handling
Data at rest is encrypted with Microsoft-managed keys by default; customer-managed keys (CMK) in Azure Key Vault give the customer control over key rotation and revocation. Prompts and completions sent to models sold by Azure are not used to train the models. Stored data, such as files, conversations and fine-tuning data, stays in the resource's geography, and customers can delete it. Abuse monitoring may store data for review, and approved customers can request modified abuse monitoring.
The following list summarizes the controls by requirement.
- No public internet path: private endpoints, disabled public network access, private DNS zones.
- Agent access to private resources: standard agent setup with a delegated subnet.
- Control of encryption keys: customer-managed keys in Key Vault.
- No keys anywhere: Entra ID, managed identities, disabled local authentication.
How data is handled
Name resolution after isolation
After a team adds a private endpoint to its Foundry resource and disables public network access, an application in the same virtual network fails with connection timeouts. The private endpoint shows as approved.
The application is still resolving the resource name to the public IP address. The fix is to link the private DNS zones for the Foundry endpoints to the virtual network (or configure the custom DNS servers to forward to Azure DNS), so that the names resolve to the private endpoint's address. Re-enabling public access would hide the problem and break the requirement.
When should public network access be disabled on a Foundry resource?
Show answer
After private endpoints, with private DNS zones linked to the virtual network, are in place and working.
Exam Tips
Remember for the exam
- Private endpoints need private DNS zones linked to the virtual network.
- Disable public network access after private endpoints are in place.
- Customer-managed keys when the organization must control encryption keys.