A fully managed platform in Microsoft Foundry for hosting, scaling, and securing AI agents built with any supported framework or model
Hello @Ojas Chopade (LTIMINDTREE LIMITED) ,
Welcome to Microsoft Q&A .Thank you for reaching out to us.
The observed behavior indicates a reference resolution issue rather than an actual VNet absence, most likely caused by parameter or scope mismatch.
From the information provided, the virtual network is clearly present and accessible in the portal. At the same time, supporting resources such as virtual network links and private DNS zones have been successfully created. This combination strongly indicates that the failure is not due to a missing virtual network, but rather due to the deployment process being unable to resolve the virtual network reference correctly during private endpoint creation.
The error “virtualNetworks … not found” typically occurs when the template references a virtual network using parameters that do not exactly match the resource at deployment time. This includes mismatches in identifiers, scope, or expected format.
Please check if the following steps help-
- Validating template inputs Ensure that all networking parameters precisely match the actual resources:
- Subscription ID
- Resource Group name
- Virtual Network name or full Resource ID
- Subnet name
/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.Network/virtualNetworks/<vnet-name> - Confirming region alignment For network-isolated agent deployments:
- The Foundry resource and the virtual network must be deployed in the same Azure region
- Verifying Subnet Configuration Ensure that the required subnets exist and meet configuration expectations: Agent Subnet
- Delegated to Microsoft.App/environments
- Minimum size of /27
- Dedicated for agent use
- Present in the same VNet
- Matches the name used in deployment parameters
- Checking deployment scope Please confirm that:
- Deployment is executed in the correct subscription
- Resource group matches the location of the VNet
- All referenced resources exist within the intended scope
- Validating permissions Ensure sufficient access is available for networking operations:
- Network Contributor role on the virtual network
- Additional permissions if cross-subscription or shared-network deployment is involved
- Reviewing deployment operations To identify the exact mismatch:
- Navigate to: Resource Group > Deployments > Failed Deployment > Operations
- Review the failed private endpoint step
- Capture:
- Full error details
- Resource ID being referenced
- Parameter values used
After aligning the configuration and redeploying, the issue should be resolved.
The following references might be helpful , please check them out
- How to configure network isolation for Microsoft Foundry - Microsoft Foundry | Microsoft Learn
- Troubleshoot ARM template JSON deployments - Azure Resource Manager | Microsoft Learn
- Deployment history - Azure Resource Manager | Microsoft Learn
Please let us know if the response was helpful
Thank you