You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-foundry/agents/how-to/virtual-networks.md
+53-6Lines changed: 53 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ manager: nitinme
7
7
ms.service: azure-ai-foundry
8
8
ms.subservice: azure-ai-foundry-agent-service
9
9
ms.topic: how-to
10
-
ms.date: 08/01/2025
10
+
ms.date: 10/21/2025
11
11
author: aahill
12
12
ms.author: aahi
13
13
ms.reviewer: fosteramanda
@@ -18,6 +18,9 @@ ms.custom: azure-ai-agents
18
18
19
19
Azure AI Foundry Agent Service offers **Standard Setup with private networking** environment setup, allowing you to bring your own (BYO) private virtual network. This setup creates an isolated network environment that lets you securely access data and perform actions while maintaining full control over your network infrastructure. This guide provides a step-by-step walkthrough of the setup process and outlines all necessary requirements.
20
20
21
+
> [!TIP]
22
+
> See the [FAQ article](../faq.yml#virtual-networking) for common questions when working with Virtual Networks.
23
+
21
24
## Security features
22
25
23
26
By default, the Standard Setup with Private Network Isolation ensures:
@@ -34,7 +37,7 @@ For customers without an existing virtual network, the Standard Setup with Priva
-**Subnet IP address limitation**: both subnets must have IP ranges under `172.16.0.0/12` or `192.168.0.0/16`, i.e. class B or C private address ranges reserved for private networking. Public Class A, B or C address ranges are not supported. Private Class A address ranges have limited region support. For more information, see [our Private Network Secured Agent deployment template on GitHub](https://github.com/azure-ai-foundry/foundry-samples/blob/main/samples/microsoft/infrastructure-setup/15-private-network-standard-agent-setup/README.md).
40
+
-**Subnet IP address limitation**: both subnets must have IP ranges under `172.16.0.0/12` or `192.168.0.0/16`, which are class B or C private address ranges reserved for private networking. Public Class A, B or C address ranges are not supported. Private Class A address ranges have limited region support. For more information, see [our Private Network Secured Agent deployment template on GitHub](https://github.com/azure-ai-foundry/foundry-samples/blob/main/samples/microsoft/infrastructure-setup/15-private-network-standard-agent-setup/README.md).
38
41
-**Agent subnet exclusivity**: The agent subnet cannot be shared by multiple Azure AI Foundry resources. Each AI Foundry must use a dedicated agent subnet.
39
42
-**Agent subnet size**: The recommended size of the delegated Agent subnet is /24 (256 addresses) due to the delegation of the subnet to `Microsoft.App/environment`. For more on the subnet sizing, see [Configuring virtual networks for Azure Container Apps](/azure/container-apps/custom-virtual-networks?tabs=workload-profiles-env#subnet).
40
43
-**Agent subnet egress firewall allowlisting**: If you are integrating an Azure Firewall with your private network secured standard agent, please allowlist the Fully Qualified Domain Names (FQDNs) listed under __Managed Identity__ in the [Integrate with Azure Firewall](/azure/container-apps/use-azure-firewall#application-rules) article or add the Service Tag __AzureActiveDirectory__.
@@ -91,7 +94,7 @@ You can deploy and customize the Standard Setup with Private Networking using ei
91
94
92
95
* Foundry account and Foundry project are created.
93
96
* A gpt-4o model is deployed.
94
-
* Azure resources for storing customer data — Azure Storage, Azure Cosmos DB, and Azure AI Search — are automatically created if existing resources are not provided.
97
+
* Azure resources for storing customer data: Azure Storage, Azure Cosmos DB, and Azure AI Search are automatically created if existing resources are not provided.
95
98
* These resources are connected to your project to store files, threads, and vector data.
96
99
* Microsoft-managed encryption keys for Storage Account and Cognitive Account (AI Foundry) are used by default.
97
100
@@ -123,7 +126,7 @@ The following DNS zones are configured:
123
126
Virtual networks enable you to specify which endpoints can make API calls to your resources. The Azure service automatically rejects API calls from devices outside your defined network. You can establish allowed networks using either formula-based definitions or by creating an exhaustive list of permitted endpoints. This security layer can be combined with other security measures for enhanced protection.
124
127
125
128
> [!NOTE]
126
-
> If you bring your existing virtual network and subnet with the *Microsoft.App/environments* delegation, the minimize size of your subnet should be /27 (32 addresses). We recommend a subnet size of /24 (256 addresses), which is the default subnet size setin the network secured template.
129
+
> If you bring your existing virtual network and subnet with the *Microsoft.App/environments* delegation, the minimized size of your subnet should be /27 (32 addresses). We recommend a subnet size of /24 (256 addresses), which is the default subnet size setin the network secured template.
127
130
128
131
### Network rules
129
132
@@ -175,6 +178,50 @@ This setup enables AI agents to operate entirely within a dedicated, isolated vi
175
178
176
179
Our goal is to accelerate the development and deployment of AI agents without compromising critical security requirements. With our bicep and ARM templates, you can quickly setup your agent environment while still maintaining full control over their networking and data.
177
180
181
+
## Troubleshooting Guide
182
+
183
+
Refer to this guide to resolve errors regarding the standard secured agent template deployment errors or errors post template deployment in the Azure AI Foundry portal.
184
+
185
+
### Template Deployment Errors
186
+
187
+
`"CreateCapabilityHostRequestDto is invalid: Agents CapabilityHost supports a single, non empty value for vectorStoreConnections property."`
188
+
189
+
`"Agents CapabilityHost supports a single, non empty value for storageConnections property."`
190
+
191
+
`"Agents CapabilityHost supports a single, non empty value for threadStorageConnections property."`
192
+
193
+
**Solution**: Providing all connections to all Bring-your-Own (BYO) resources, requires connections to all BYO resources. You cannot create a secured standard agent in Foundry without all three resources provided.
194
+
195
+
`"Provided subnet must be of the proper address space. Please provide a subnet which has address space in the range of 172 or 192."`
196
+
197
+
**Solution**: You are not using a proper IP range for your delegated agent subnet. Please verify you are using a valid Private IP address spaces.
198
+
199
+
`"Subscripton is not registered with the required resource providers, please register with the resource providers Microsoft.App and Microsoft.ContainerService."`
200
+
201
+
**Solution**: You are missing the correct resource registration. Ensure the required resources are registered in your tenant.
202
+
203
+
```azurecli
204
+
az provider register --namespace 'Microsoft.KeyVault'
205
+
az provider register --namespace 'Microsoft.CognitiveServices'
206
+
az provider register --namespace 'Microsoft.Storage'
207
+
az provider register --namespace 'Microsoft.MachineLearningServices'
208
+
az provider register --namespace 'Microsoft.Search'
209
+
az provider register --namespace 'Microsoft.Network'
210
+
az provider register --namespace 'Microsoft.App'
211
+
az provider register --namespace 'Microsoft.ContainerService'
212
+
```
213
+
214
+
215
+
`"Failed to create Aml RP virtual workspace due to System.Exception: Failed async operation."` or `"The resource operation completed with terminal provisioning state 'Failed'. Capability host operation failed."`
216
+
217
+
**Solution**: This is a catch all error we provide. Create a support ticket request to investigate your set-up. Check the capability host for the error.
218
+
219
+
220
+
221
+
`"Subnet requires any of the following delegation(s) [Microsoft.App/environments] to reference service association link /subscriptions/11111-aaaaa-2222-bbbb-333333333/resourceGroups/agentRANGEChange/providers/Microsoft.Network/virtualNetworks/my-agent-vnet/subnets/agent-subnet/serviceAssociationLinks/legionservicelink."`
222
+
223
+
**Solution**: This error appears when you try to delete your secured standard template set-up in Azure and did not correctly delete all resources. One solution is to navigate to your AI Foundry resource page in the Azure portal and select **Manage deleted resources**. From there, purge the resource that the agent was associated with for this virtual network. The other option is to run the `deleteCaphost.sh` script in the secured standard template.
224
+
225
+
## Next steps
178
226
179
-
## What's next?
180
-
You’ve now successfully configured a Network Secure Account and project, use the [quickstart](../quickstart.md) to create your first agent.
227
+
You've now successfully configured a network-secure account and project, use the [quickstart](../quickstart.md) to create your first agent.
0 commit comments