Forum Discussion
Souciance
Nov 27, 2026Copper Contributor
Unable to get Foundry & storage account working inside private networking
I asked my agent to summarize the issue so you can find more detailed info below. The core issue is that when deploying a standard foundry setup protected by a vnet and private endpoint, as well as a storage account with private endpoint on the same vnet, then, when creating a basic agent inside foundry and enabling toolbox and adding file_search tool, the upload files due to storage account permission error. This is despite foundry account and project having storage blob contributor permission.
When you try to do the same action but add the storage account and foundry to a network security perimeter with subscription scope, then the file_search works.
When you try to do the same action but enable "trust microsoft services" on the storage account settings then it works.
But pure private endpoint only fails. See below for more detailed info:
Microsoft Foundry File Search upload fails with Blob CreateContainer 403 in Standard private deployment
Environment
Sweden Central, subscription XXXX, resource group azure-foundry-init.
- Foundry account ai-foundry-r3-vebezr6ujx33q and project foundry-project-r3
- Bring-your-own storage account stfoundryr3vebezr6ujx33q, with public network access and Shared Key access disabled
- Approved Blob private endpoint pe-foundry-r3-storage at xx.xx.xx.xx. The storage hostname resolves to that private IP from the test VNet.
- Account and project Agents capability hosts both show Succeeded. The project host references the customer-owned Storage, Cosmos DB, and Azure AI Search connections.
Reproduction and impact
Uploading a small text file through Tools → File search → Upload files in the Foundry portal from a VM on the private VNet fails before indexing. The API upload also fails. Azure ML Asset Store returns HTTP 403 on POST swedencentral.api.azureml.ms/assetstore/v1.0/temporaryDataReference/createOrGet, with UserError/Auth/Authorization/ResourceMsiTokenDoesntHavePermissionsOnStorage. This blocks File Search ingestion. Private model inference and conversation persistence pass.
Diagnostic evidence
| Reproduction | Azure evidence |
|---|---|
| Controlled upload on November 26, 2026 at 21:51:58.9056074 UTC | StorageBlobLogs recorded CreateContainer, HTTP 403, AuthorizationFailure, with OAuth and requester object ID 68473b4a-7fcf-4699-8dce-58bcfeb849e5. Caller IP was xx.xx.xx, outside the workload VNet. TrafficClassification was empty, so the record does not establish which endpoint the call used. |
| Portal upload on November 26, 2026 at 23:51:49.4378289 UTC | Asset Store returned the same MSI authorization error. Azure Storage metrics recorded one OAuth CreateContainer authorization error in the 23:52:00 UTC bucket. The request-level Blob record above is from the earlier controlled upload. |
The Blob requester object ID matches the project’s system-assigned managed identity. That identity has a direct, unconditional Storage Blob Data Contributor assignment at the storage-account scope. Granting the same role to the Foundry account’s managed identity and retesting produced the same error.
| Correlation ID | Value |
|---|---|
| Controlled upload – Foundry APIM request | 6b4092be-3515-41c8-8da8-7ff773b7078f |
| Controlled upload – Blob correlation ID | 7d81096e-401e-007c-69f0-7d0335000000 |
| Controlled upload – Blob client request ID | 4e2ff3dd-34d1-4267-b3b7-08e86cbb20c3 |
| Portal upload – Azure ML operation | ff0976985cbc9d74c4cc070e2ede20df |
| Portal upload – Asset Store request | effd891ec11432ab |
| Portal upload – Dataset request | f12c9f6885e4bf02 |
| Retest after account identity grant – Foundry APIM request | ed8cc668-4479-4fe2-af18-e278de60b1d8 |
Requested resolution
Please trace the Asset Store CreateContainer request to determine which Blob endpoint and network path it used, what caused Storage to deny the request, and why Asset Store reported insufficient MSI permissions despite the verified role assignment. If the Microsoft-managed Asset Store path is misconfigured, please repair or reprovision its private connectivity. If a customer-side change is required, please provide the supported private-only configuration. Success is a File Search upload that completes indexing while retaining the existing private endpoints, Foundry VNet injection, and Entra authentication, with storage public network access and Shared Key access disabled.
1 Reply
- ciqyf8Brass Contributor
Root cause
This looks like a network connectivity limitation, not an RBAC permission problem.
Your evidence strongly supports this:
- The project managed identity has `Storage Blob Data Contributor`.
- The Blob request uses OAuth and identifies the correct project identity.
- Adding the trusted Microsoft services exception makes uploads work.
- Adding a Network Security Perimeter also makes uploads work.
- A private endpoint alone does not provide connectivity to Microsoft's separately hosted Asset Store service.
The important distinction is that granting a managed identity permission to access Storage does not guarantee that the service can reach the private endpoint.
Your successful tests strongly suggest that Asset Store is reaching Storage through a Microsoft-managed service path rather than through your injected VNet.
What I recommend doing
1. Don't add more RBAC assignments. Your existing project identity already has the required data-plane role.
2. Verify the Storage private endpoint is reachable from the actual Agent Service delegated subnet, not just your test VM. Check DNS, routing and NSG rules.
3. Keep Shared Key disabled and public network access disabled.
4. If you need an immediate workaround, the trusted Microsoft services exception is the demonstrated working option. It does not require enabling public access for everyone.
The important Microsoft support issue
I would escalate this to Microsoft Azure Support as a potential Agent Service / Asset Store networking defect.
Include these details:
- Region: Sweden Central.
- Resource: `stfoundryr3vebezx33q` (use your actual resource name).
- Blob error: `AuthorizationFailure`, HTTP 403.
- Project managed identity object ID.
- Blob correlation ID: `7d81096e-401e-007c-69f0-7d0335000000`.
- Asset Store request ID: `effd891ec11432ab`.
Ask Microsoft to confirm whether Asset Store's `CreateContainer` operation supports customer-private-endpoint-only connectivity in Standard Agent Service, and whether its managed identity and network path are correctly configured.
Microsoft documentation:
- Standard Agent Service private networking : https://learn.microsoft.com/en-us/azure/foundry/agents/how-to/virtual-networks
- Toolbox network isolation and supported tools : https://learn.microsoft.com/en-us/azure/foundry/agents/how-to/tools/toolbox-network-isolation
My conclusion: Don't rebuild your VNet or keep changing permissions. Your evidence points to a Microsoft-managed Asset Store connectivity issue. Microsoft needs to confirm and fix the service-side path if private-endpoint-only operation is supported for this deployment.
I would not consider enabling trusted services the final solution if your requirement is strict private-only networking.