Microsoft Foundry: Unlock Adaptive, Personalized Agents with User-Scoped Persistent Memory
Summary
Microsoft Foundry introduces a design pattern for user-scoped persistent memory in enterprise AI agents, addressing the challenge of maintaining conversational continuity and personalization across sessions while adhering to strict privacy, data isolation, governance, and compliance requirements. Traditional AI agents are stateless across sessions, losing context and user preferences. This solution, built on Azure Cosmos DB, isolates each user's context, storing curated, long-lived signals like preferences and summarized outcomes, rather than raw transcripts. It separates ephemeral in-session state, managed by Microsoft Foundry, from durable user memory. The architecture leverages Microsoft Entra ID for identity, Microsoft Foundry for agent runtime, MCP servers for memory and search, Azure Cosmos DB for NoSQL for persistent storage, and Azure AI Search for knowledge grounding. Key models include text-embedding-3-large, gpt-5-mini, and gpt-5.1.
Key takeaway
For AI Architects designing adaptive enterprise agents, this user-scoped persistent memory pattern offers a robust solution to achieve personalization without compromising compliance. You should consider implementing this reference architecture with Azure Cosmos DB to ensure data isolation and governance for long-term user context. This approach allows your agents to learn and adapt over time, enhancing user experience while meeting strict enterprise trust boundaries.
Key insights
User-scoped persistent memory enables adaptive enterprise AI agents while preserving data isolation and compliance.
Principles
- Separate ephemeral session context from durable user memory.
- Partition memory by user identity for isolation and governance.
- Knowledge grounding and personalized memory are complementary.
Method
Implement user-scoped persistent memory using Azure Cosmos DB partitioned by user ID, storing curated signals. Integrate with Microsoft Foundry for in-session context and Azure AI Search for knowledge grounding.
In practice
- Use Azure Cosmos DB for durable, user-isolated memory.
- Leverage Microsoft Entra ID for user authentication.
- Deploy with Azure Container Apps for scalable hosting.
Topics
- User-Scoped Persistent Memory
- Enterprise AI Agents
- Azure Cosmos DB
- Data Isolation & Governance
- Microsoft Foundry
Code references
Best for: AI Engineer, AI Architect, MLOps Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Microsoft Foundry Blog articles.