Azure 本地开发设置 - 缓存、队列、documentdb

标签 azure azure-blob-storage azure-cosmosdb azure-emulator

有两个支持本地开发的azure模拟器,“azure storage emulator”支持队列、缓存、blob等,“azure documentdb emulator”支持documentdb。

之前,我们将所有内容都存储在一个 mssql 数据库中,拍摄数据库快照并将其用作本地开发数据库。但是,当我们将数据拆分为 blob 和 documentdb 时,我们看不到如何创建 blob 和 documentdb 的副本/快照并在本地开发中使用它。有没有办法将azure documentdb与模拟器中使用的数据库之间的数据同步?

最佳答案

we don't see how we can create replicates / snapshot of blob and documentdb and use that in local dev.

您似乎想使用 Blob 和 DocumentDB 的副本进行开发和测试。据我所知,我们无法直接将数据从Azure Blob导入/复制到Azure存储模拟器,我建议您可以copy data从一个容器到另一个容器以进行本地开发和测试。此外,您可以使用 DocumentDB data migration tool 将数据/文档从生产 DocumentDB 导入到模拟器中,需要将连接模式更改为网关(在目标设置为本地模拟器的数据迁移工具中,点击目标信息 > 高级选项 > 连接模式 > 网关)。

关于Azure 本地开发设置 - 缓存、队列、documentdb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43589336/

相关文章:

azure - Azure AD B2C 是否允许在自定义域登录页面而不是 https ://<tenant-name>. b2clogin.com 页面上登录?

linux - WebAssembly Blazor 到 Azure Linux 部署 : "Your web app is running and waiting for your content"

debugging - Azure远程调试: Failed to enable remote debuggingException from HRESULT: 0x89710023

azure - DocumentDB ORDER BY 删除未定义

c# - 在 Azure 的 IIS 中使用 net.tcp 绑定(bind)托管 WCF 服务

azure - 将最新文件夹中的文件从 azure blob 存储加载到 azure 数据仓库

Azure存储生命周期管理删除追加blob不删除

c# - 如何从 Azure Blob 存储将文件下载到浏览器

Azure CosmosDB 查询资源管理器与数据资源管理器

azure - CosmosDB RU 计算器错误