# Powering Memory in Foundry Agent Service, with Azure Cosmos DB

DevFeed: [Powering Memory in Foundry Agent Service, with Azure Cosmos DB](<https://devfeed.tech/articles/powering-memory-in-foundry-agent-service-with-azure-cosmos-db-50048.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/cosmosdb/powering-memory-in-foundry-agent-service-with-azure-cosmos-db/>)

Author: Theo van Kraay

Published: 2026-08-24T16:04:43Z

Content type: tutorial

Language: en

Sources: [Azure Cosmos DB Blog](<https://devfeed.tech/sources/azure-cosmos-db-blog.md>)

Topics: [Microsoft Agent Framework](<https://devfeed.tech/topics/microsoft-agent-framework.md>), [hosted-agents](<https://devfeed.tech/topics/hosted-agents.md>), [Database](<https://devfeed.tech/topics/database.md>), [NoSQL](<https://devfeed.tech/topics/nosql.md>), [Entra ID](<https://devfeed.tech/topics/entra-id.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [browser](<https://devfeed.tech/topics/browser.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-framework](<https://devfeed.tech/tags/agent-framework.md>), [agent-memory](<https://devfeed.tech/tags/agent-memory.md>), [azure](<https://devfeed.tech/tags/azure.md>), [azure-cosmos-db](<https://devfeed.tech/tags/azure-cosmos-db.md>), [azure-cosmos-db-for-nosql](<https://devfeed.tech/tags/azure-cosmos-db-for-nosql.md>), [browser](<https://devfeed.tech/tags/browser.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [embeddings](<https://devfeed.tech/tags/embeddings.md>), [entra-id](<https://devfeed.tech/tags/entra-id.md>), [foundry](<https://devfeed.tech/tags/foundry.md>), [id](<https://devfeed.tech/tags/id.md>), [identity](<https://devfeed.tech/tags/identity.md>), [information](<https://devfeed.tech/tags/information.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [memory](<https://devfeed.tech/tags/memory.md>), [microsoft](<https://devfeed.tech/tags/microsoft.md>), [nosql](<https://devfeed.tech/tags/nosql.md>), [prompt](<https://devfeed.tech/tags/prompt.md>), [sessions](<https://devfeed.tech/tags/sessions.md>)

## AI overview

This tutorial demonstrates deploying a memory-enabled agent to Microsoft Foundry Agent Service using Azure Cosmos DB for durable memory. It distinguishes temporary conversation sessions from stable user-scoped memory and shows how identity-based isolation works across users.

## Source excerpt

Move from a locally composed memory-enabled agent to a deployed Foundry Agent Service agent, with keyless Azure infrastructure and an interactive browser sample. In Native Agent Memory for Microsoft Agent Framework, Powered by Azure Cosmos DB, we introduced CosmosMemoryContextProvider: a Microsoft Agent Framework context provider that extracts useful information from conversations, stores it in Azure Cosmos DB, [...] The post Powering Memory in Foundry Agent Service, with Azure Cosmos DB appeared first on Azure Cosmos DB Blog.