Azure AI Foundry data privacy and retention for agents

Partly built in. Standard agent setup keeps conversations, uploaded files and vector stores in Azure resources the customer owns, basic setup uses Microsoft-managed resources, and the Claude hosting option decides whether prompts can leave Azure.

On this page

Azure AI Foundry data privacy and retention: where agent data sits

Data privacy for Foundry agents is partly built in, and the answer depends on the setup your team chooses. Under standard agent setup, messages, conversation history and agent metadata are stored in an Azure Cosmos DB resource in your own Azure environment, uploaded files go to your Azure Storage account, and agent vector stores go to your Azure AI Search resource. Basic setup keeps those objects in Microsoft-managed resources. The setup is chosen per environment, so a test project and a production project can differ and each needs its own review. The sources behind this page do not tie the setup choice to a license tier, so ask Microsoft to confirm in writing whether any plan or tier changes what is available. Set up standard agent resources for Foundry Agent Service

Stored agent data sits at rest in the Azure OpenAI resource created in your tenant, in that resource's geography. It is encrypted with AES-256 by default, with optional customer-managed keys except in some preview features, and you can delete it at any time. Where data is processed depends on how the model inferencing endpoints are configured and where the tools the agent calls are hosted, so check both the model deployment region and the location of every tool. Microsoft states that prompts, completions and data sent through Foundry Agent Service are not available to other customers or to OpenAI, Meta, Cohere or Mistral, and are not used to improve their models. For retention, hosted agent sessions keep $HOME and uploaded files across idle periods and delete them permanently after 30 days of inactivity, and state store items expire after 30 days by default unless set to never expire. Confirm that setting for each project. Abuse monitoring and zero data retention for Azure OpenAI models are covered on the Azure OpenAI pages, and HIPAA and GDPR scope is covered on the Foundry compliance page. Data, privacy, and security for Foundry Agent Service

Three paths can move data outside the Foundry resources you configured. For Claude models, the Hosted on Azure option keeps prompts and outputs on Azure infrastructure, while Hosted on Anthropic infrastructure may process data outside Azure, including outside the selected Azure geography. Choose the option in writing with your data residency requirements in mind and have procurement confirm the terms. Agent identity authentication does not change the data handling or retention policies of an external tool provider, and calls to non-Microsoft tools can send data outside Microsoft services, so review each tool's own terms before enabling it. Data passed in MCP tool headers is available only for the current run and is not persisted. Hosted agents run your own container code, so their storage and session rules apply on top of how your code handles data. Data, privacy, and security for use of Anthropic Claude models in Microsoft Foundry

Which data privacy controls are built in, customer-chosen or outside Microsoft

This table sorts each data privacy control for Foundry Agent Service agents by where it applies and who sets it: built in by Microsoft, a customer choice, or outside Microsoft's services. Read the where column first, because basic and standard setups keep the same data in different places. The main takeaway is that Claude hosted on Anthropic infrastructure and calls to non-Microsoft tools can send data outside Microsoft, so approve them separately.

CapabilityWhere it appliesStatus
Conversation history, agent metadata, uploaded files and vector storesBasic setup uses Microsoft-managed resources. Standard setup uses the customer's own Azure Cosmos DB, Azure Storage account and Azure AI Search resourceCustomer choice (standard setup)
Encryption at rest and customer-managed keysAES-256 by default. Customer-managed keys are optional, except in some preview features, so confirm preview coverage with MicrosoftBuilt in (encryption). Customer choice (keys)
Customer deletion at any timeData stored by Agent Service in the Azure OpenAI resource in the customer's tenantCustomer choice
Prompts and completions not shared with or used by OpenAI, Meta, Cohere or MistralData sent through Foundry Agent Service. Not available to other customers or used to improve their modelsBuilt in
Hosted agent idle sessions and state storeSessions keep $HOME and files across idle periods, deleted after 30 days of inactivity. State store items age out after 30 days by defaultBuilt in. Customer choice to set state store to never expire
Claude hosted on AzureClaude models in Foundry with the Hosted on Azure option keep prompts and outputs on Azure infrastructureCustomer choice (Hosted on Azure option)
Claude hosted on Anthropic infrastructureClaude models in Foundry with the Hosted on Anthropic infrastructure option may process data outside Azure, including outside the selected Azure geographyOutside Microsoft
MCP tool header dataData passed in MCP tool headers is available only for the current run and is not persistedBuilt in
Non-Microsoft toolsCalls to non-Microsoft tools can send data outside Microsoft services. Agent identity authentication does not change the tool provider's retention or data handlingOutside Microsoft

How Foundry Agent Service decides where agent data is stored and processed

Where Foundry Agent Service keeps agent data depends on which layout the project uses, and the two layouts assign ownership differently. In basic setup, messages, conversation history, agent metadata, uploaded files and vector stores sit in Microsoft-managed resources, so the customer does not hold those stores in its own subscription. In standard setup, the customer's own Azure Cosmos DB account holds messages, conversation history and agent metadata, its own Azure Storage account holds uploaded files, and its own Azure AI Search resource holds agent vector stores. Read Microsoft's standard agent setup article and confirm in each project's resource configuration which layout it uses. Separately, confirm whether a workload runs in a current Foundry project or in a Foundry (classic) hub-based project. Hub-based projects are a separate model, so do not assume this layout applies to them until you have checked.

Data the service stores sits at rest in the Azure OpenAI resource created in the customer's tenant, in that resource's geography. Microsoft's privacy article says this data is encrypted with AES-256 by default, with optional customer-managed keys except in some preview features, and that the customer can delete it at any time. For a reviewer, the storage geography follows the resource you create, so check that resource's region against your residency requirement before any data is written. Deletion is a customer action, so write a procedure that names an owner, covers every store in your chosen layout and is tested in a non-production project. Ask Microsoft whether deleting conversation data also removes backups and search index copies, and how long any residual copy persists.

Storage location does not settle where a prompt is processed. Microsoft's privacy article says processing depends on how the model inferencing endpoints are configured and on where the tools an agent calls are hosted. A project whose data sits in one geography can still send prompts to a model endpoint in another, or call a tool hosted outside Azure. For Claude models, the Hosted on Azure option keeps prompts and outputs on Azure infrastructure, while the Hosted on Anthropic infrastructure option may process data outside Azure, including outside the selected Azure geography. Before approval, map each model deployment and each tool endpoint to its hosting location and record both in your data flow diagram. Agent identity authentication does not change the data handling or retention policies of an external tool provider, so review those terms separately.

How agent data moves between Foundry, storage, model endpoints and tools

The diagram starts with a user or client sending prompts and files to Foundry Agent Service, which then branches three ways. For storage, basic setup uses Microsoft-managed resources, while standard setup keeps messages, files and vector stores in the customer's own Azure Cosmos DB, Storage account and AI Search resource. For models, Azure-hosted Claude and Foundry Models sold by Azure stay on Azure, but Claude hosted on Anthropic infrastructure may process data outside Azure. For tools, Azure-hosted tools stay inside Microsoft services, while MCP servers and third-party tools send data outside them under their own terms. Check which storage setup and which Claude option each agent uses.

Data paths for storage, model endpoints and tools, split at the Microsoft services boundary.

How the data answer changes by setup, model host and tool

In basic setup, Foundry Agent Service keeps conversations, uploaded files and agent state in Microsoft-managed resources. Microsoft's privacy article says data stored by the service sits at rest in the Azure OpenAI resource created in your tenant, in that resource's geography. The article also says the data is encrypted with AES-256 by default and that the customer can delete it at any time. Read the full data privacy and security article before you record the storage answer.

  • Storage location: Data at rest follows the geography of the Azure OpenAI resource in your tenant. Confirm that geography before the first agent is published.
  • Encryption keys: AES-256 applies by default. Customer-managed keys are an option, but the article excludes some preview features, so check the features your agents use.
  • Deletion path: Ask Microsoft which deletion calls remove conversations, uploaded files and agent state, and whether they remove all copies.
  • Limited inspection: The resources are Microsoft-managed, so confirm which logs, listings or retention settings your reviewers can access directly.
  • Hosted session state: For hosted agents, sessions keep the home directory and uploaded files across idle periods and are permanently deleted after 30 days of inactivity.

Before approval, ask Microsoft to confirm in writing the storage geography, the deletion procedure for each data type and what your reviewers can inspect.

Azure AI Foundry data privacy choices to make before rollout

Six settings decide where Foundry agent data sits, how long it persists and which outside parties receive it. Most are chosen during setup or model selection, so confirm with Microsoft which ones can be changed after resources exist. Assign each decision to a named owner before the first agent goes live.

Basic or standard setup

Basic setup keeps conversations, uploaded files and vector stores in Microsoft-managed resources. Standard setup places messages, conversation history and agent metadata in an Azure Cosmos DB account, files in an Azure Storage account and vector stores in an Azure AI Search resource, all in your own Azure resources. The choice decides who owns and controls that data, so the cloud platform team and the data owner should decide it together. Confirm the setup type before building the first agent, because retention, key and access controls all attach to these resources.

Standard setup docs

Storage geography and tool placement

Agent data at rest sits in the Azure OpenAI resource created in your tenant, in that resource's geography. Processing location is a separate question. It depends on how the model inference endpoints are configured and on where each tool the agent calls is hosted, so a resource in one region can still send prompts or tool requests elsewhere. Cloud architects should set the resource geography, and security should map every model endpoint and tool host to a location in the data flow before approval. Ask Microsoft to confirm the geography of any Foundry feature your agents depend on.

Agent data privacy article

Customer-managed encryption keys

Agent data is encrypted at rest with AES-256 by default. Customer-managed keys are optional, and some preview features do not support them. Key management owners should list which preview features the project uses, confirm each one's key support in writing and record the answer before go-live. Security should also agree who can rotate or revoke keys, since customer deletion of agent data and key control are separate controls.

Claude hosting option by data class

For Claude models in Foundry, Hosted on Azure keeps prompts and outputs on Azure infrastructure. Hosted on Anthropic infrastructure may process data outside Azure, including outside the selected Azure geography. Data owners should classify the data each agent handles, then decide per class which option is acceptable. Security and legal should sign off on any class routed to Anthropic infrastructure, and the deployment should be checked to confirm which option it actually uses.

Claude data privacy terms

Hosted agent state retention

Hosted agent sessions keep $HOME and uploaded files across idle periods, and they are permanently deleted after 30 days of inactivity. Items in the hosted agent state store age out after 30 days by default unless set never to expire. Short retention limits what remains after an incident or a departure, but it also shortens the window for incident response and forensic review. Never-expire settings keep state available for investigation, but they extend the period in which deletion requests and breach scope must be answered. Set the value with incident response and records owners.

Hosted agents docs

External tool and MCP boundary

Data passed in MCP tool headers is available only for the current run and is not persisted by the agent service. Agent identity authentication does not change an external tool provider's data handling or retention policies. Calls to non-Microsoft tools can send data outside Microsoft services. Each tool needs an owner who records what data it receives, how long the provider keeps it and whether those terms fit the data in scope. Entra sign-in to a tool does not answer any of those questions.

Agent identity concepts

Hosted agent sessions are deleted after 30 days of inactivity by default

Hosted agent sessions in Foundry Agent Service are permanently deleted after 30 days of inactivity by default. Between runs, a session keeps its $HOME directory and any uploaded files, so anything an agent wrote to disk or a user uploaded can persist for up to that window and then disappears. Separately, items in the hosted agent state store age out after 30 days by default, unless the item is set never to expire. Reviewers should treat these as two clocks: one for the session filesystem and one for the state store. Confirm in the hosted agents documentation and in your own project which clock applies to each hosted agent you plan to run, and whether the state store expiry is set per agent or per project.

Choosing a retention period is a trade-off with a cost on each side, and the agent owner should record the decision. Longer retention keeps conversation state and files available for continuity, so a session can resume after a long gap, and it gives incident responders more to investigate. The cost is that more sensitive files and state sit at rest for longer, which widens exposure if a session is compromised or a file contains credentials or customer records. Shorter retention reduces that exposure, but a paused workflow may be lost and an investigation may find nothing. Make the choice per data classification, document it in the agent's change record, and ask the platform team who can change the setting and whether a change applies to sessions that already exist.

Prompt agents run on a different model, so the 30-day figure in this section does not describe them. Microsoft's hosted-session retention statement covers hosted agents, which run the containerized code you build, so do not carry the number over to prompt agents that Foundry hosts from instructions, a model and tools. Before approval, ask Microsoft or check the current Foundry documentation for how long prompt agent conversations, threads and uploaded files persist, who can delete them, and whether the deletion statements in the Agent Service privacy article apply to them. Record that answer separately in the review, and do not approve a prompt agent for sensitive data on the strength of this page.

Where data privacy controls stop in Foundry Agent Service

Foundry's storage and encryption commitments apply to the agent resources themselves. They stop at the edges: a Claude model hosted on Anthropic infrastructure, external and MCP tools, endpoints and tools outside the approved region, basic setup retention that needs a written answer from Microsoft, and older Assistants API threads. Zero data retention and abuse monitoring for Azure OpenAI models are covered on the Azure OpenAI pages.

Claude on Anthropic infrastructure

Microsoft offers Claude models under two hosting options. With Hosted on Azure, prompts and outputs stay on Azure infrastructure. With Hosted on Anthropic infrastructure, data may be processed outside Azure, including outside the selected Azure geography. Treat that option as a separate data-class decision: approve which data types may go to it, and confirm the terms Anthropic applies to those requests before any team selects the model.

Claude data privacy

External and MCP tools

Authenticating an agent to an external or MCP tool does not change the tool provider's data handling or retention policies, and calls to non-Microsoft tools can send data outside Microsoft services. Microsoft states that data passed in MCP tool headers is available only for the current run and is not persisted, but that covers only Microsoft's handling of those headers. Require a tool-vendor review covering retention, model training and processing location, then limit each agent to an allowlist of approved tools.

Agent identity concepts

Processing location

Microsoft says the location where agent data is processed depends on how the model inferencing endpoints are configured and on where each tool the agent calls is hosted. Those two settings decide where processing happens, so the storage geography of the resource does not answer that question on its own. Pin both the model endpoints and the tool hosting to the approved region, then record where each external tool runs in its vendor review.

Basic setup retention

Basic setup keeps messages, files and vector stores in Microsoft-managed resources, while standard setup places them in accounts you own. Get the conversation retention period and the deletion path in writing from Microsoft before approving basic setup for anything beyond public content. Ask how a deleted thread leaves Microsoft-managed storage, how long any copy persists afterward and whether backups are included.

Standard setup docs

Deletion scope across stores

Microsoft says customers can delete stored agent data at any time, but the deletion has to reach every copy. In standard setup, messages and history sit in your Azure Cosmos DB account, uploaded files in your Azure Storage account and vector stores in your Azure AI Search resource. Confirm that deleting an agent or thread clears all three, and ask what remains in service backups and for how long. Hosted agent sessions follow a separate rule: they are permanently deleted after 30 days of inactivity.

Agent Service privacy

Assistants API data

Microsoft moved agents from the Assistants API (Agents v0.5 and v1) to the Responses API (Agents v2), and its authentication article lists August 26, 2026 as the Assistants API retirement date. That date has already passed. Confirm which API each agent calls, since an agent on the older path may still hold threads created under it. Ask where those older threads sit, which store holds them and how they are deleted.

Authentication article

What a security reviewer asks to see for data privacy and retention

This table lists the evidence a security or privacy reviewer should request for an Azure AI Foundry agent deployment and where each item is documented. Use the left column as the request list and the right column to find the Microsoft article that states the relevant terms. The main takeaway: the basic setup retention period must come from Microsoft in writing, and the deletion test record must come from your own testing.

Evidence requestedWhere it comes from
Setup type per agent environment and resource list in the customer subscriptionStandard setup page: customer-owned Cosmos DB, Storage and AI Search resources. Basic setup uses Microsoft-managed resources.
Resource geography for each storePrivacy article: data at rest sits in the Azure OpenAI resource's geography. Confirm the region of each standard setup store.
Encryption and customer-managed key configurationPrivacy article: AES-256 by default, with optional customer-managed keys except some preview features. Ask which features are preview.
Deletion procedure and its test recordPrivacy article says the customer can delete stored data at any time. Ask for the written procedure and a dated record of a test deletion.
Hosted agent retention settingsHosted agents page: sessions and files are deleted after 30 days of inactivity. State items expire after 30 days unless set never to expire.
Claude hosting option per deploymentClaude privacy article: Hosted on Azure keeps prompts and outputs on Azure infrastructure. Hosted on Anthropic infrastructure may process data outside Azure.
MCP and external tool list with retention termsPrivacy article: MCP header data persists only for the current run. Agent identity article: external tool providers keep their own retention terms.
Written confirmation from Microsoft of basic-setup conversation retention periodThe standard setup page and privacy article do not state it. Request written confirmation from Microsoft and keep it with the review record.

Questions reviewers ask about Azure AI Foundry data privacy before approval

Does Microsoft use our prompts and agent data to train Foundry models?

Microsoft says prompts, completions and data sent through Foundry Agent Service are not used to improve models from OpenAI, Meta, Cohere or Mistral, and are not available to other customers. That statement covers those providers' models only. Claude models in Foundry fall under Anthropic's terms, and where their data is processed depends on the hosting option you choose, so read the Claude data privacy page before approving any Claude model. Models from partners and community providers that Azure does not sell are Non-Microsoft Products under the Microsoft Product Terms, and their providers set the license terms. Ask Microsoft to confirm in writing the training and retention position for every model your agents will call.

What does standard agent setup add to our Azure bill?

Standard setup creates resources in your own Azure environment: an Azure Cosmos DB account for messages, conversation history and agent metadata, an Azure Storage account for uploaded files, and an Azure AI Search resource for agent vector stores. Basic setup uses Microsoft-managed resources, so those three services are not billed to you in the same way. Your cost therefore depends on how much data those services hold and how heavily they are used, along with the model and tool charges covered on the Azure AI Foundry billing page. This page does not state prices. Ask Microsoft which charges the standard setup creates, which of them bill to your subscription, how each one is metered, and which costs continue after an agent is deleted.

What do we have to do ourselves, and what does Microsoft handle?

Your team makes four decisions and carries out three tasks. You choose basic or standard setup, which decides where conversations, files and vector stores are kept. You set retention for hosted agent state and delete sessions or data when your policy requires it. You review every tool and MCP server an agent calls, because Microsoft notes that Entra agent identity does not change an external tool provider's data handling or retention policies. You also keep evidence of configuration and of Microsoft's written answers. Microsoft provides AES-256 encryption at rest by default, and customer-managed keys are optional except in some preview features. Confirm with Microsoft which of these controls apply to your tenant before you rely on them.

How long does Foundry keep hosted agent data by default?

By default, hosted agent sessions keep $HOME and uploaded files across idle periods and are permanently deleted after 30 days of inactivity. Items in the hosted agent state store age out after 30 days by default. You can set state items to never expire, which lengthens retention, so treat that setting as a risk decision that needs sign-off. Review the hosted agents documentation for where these settings live, and confirm whether a change applies to existing data as well as new data. For conversations, uploaded files and vector stores under each setup, ask Microsoft to confirm retention in writing, including whether a delete request removes data from every store the agent uses.

Is basic agent setup acceptable for regulated data?

It depends on the data class and on Microsoft's written answers about retention and processing location. Basic setup keeps conversations, files and vector stores in Microsoft-managed resources, while standard setup keeps them in resources in your own subscription, which gives your team direct control over access and deletion. Ask which data classes your policy permits in prompts, files and tool calls under each setup, and whether personal health or personal data may pass through an agent at all. Microsoft says the location where agent data is processed depends on the model endpoint configuration and on where called tools are hosted, so confirm that for your setup. HIPAA and GDPR scope are covered on the Azure AI Foundry compliance page.

What can DeployOpen do before we approve a Foundry agent?

DeployOpen starts with a scoping call that sets the review scope, the agents and tools included, and the evidence list your reviewers need. Most engagements are fixed-scope, and the scope, deliverables and timeline are agreed in writing before work starts. For Foundry agents, an AI agent rollout security review covers tool and file permissions, data exposure, credential handling, and SSO and admin settings. It ends with a findings report, fixes and a retest. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports, attestations or certifications, and independent auditors do that work. DeployOpen does not publish prices, so a quote follows from the written scope.

How DeployOpen tests Foundry agent data handling before rollout

DeployOpen tests how Azure AI Foundry agents handle data before a rollout, using the configuration your tenant actually runs. Our work covers where conversations, files and vector stores are kept, how long hosted agent state persists, which model and tool endpoints receive prompts, and where data leaves Azure. Each engagement is fixed-scope, with deliverables agreed in writing before work starts.

How we scope

  • We confirm whether the agent runs in basic or standard setup, which decides where messages, files and vector stores live.
  • We map each model endpoint and tool an agent calls, including whether Claude runs on Azure or on Anthropic infrastructure.
  • The written scope names the agents, data stores, retention settings and MCP servers in review before work starts.

How we test the setup

  • We test prompt injection through files, web content and MCP tool output, and record which tool calls succeed.
  • We trace one test run to confirm what reaches the model endpoint, each tool and any external service.
  • We check Entra ID sign-in, RBAC assignments and MCP credential handling against the access the team intended to grant.

How we hand over

  • A findings report lists each data handling gap, the evidence behind it, and the fix for it.
  • Retention is documented per store: conversations, uploaded files, vector stores, hosted sessions and the state store.
  • A retest after fixes confirms the changed settings hold before the report is closed.

How we support

  • Ongoing support is available as a retainer for upgrades, retesting and reviews as Foundry settings and your configuration change.
  • Your independent auditors issue any attestation; DeployOpen prepares the evidence but issues no audit reports or certifications.
  • Changes to Claude hosting options, MCP servers or tool connections are scoped as a new review.

Sources and further reading

Related

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.