gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 04:25:44 25 4
gpt4 key购买 nike

有两个支持本地开发的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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com