英文:
Emulate non public Azure Cloud for testing purposes
问题
根据您的要求,以下是翻译好的部分:
"正如问题所述,我想知道是否有一种方法来模拟托管在非公共 Azure 云中的资源(例如,Gov Azure、Germany Azure、China Azure 等)。
我已经找到了 Azurite(https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite?tabs=visual-studio),但它似乎与公共云有关,特别是与存储帐户有关。
我之所以提出这个问题,是因为有时我编写的应用程序在公共云环境中运行正常,但在其他非云环境中出现故障(例如,使用托管标识进行身份验证时可能会出现问题,因为可能缺少 Authority 等等),而且由于我无法访问这些环境,所以有一种模拟运行并进行一些集成测试的方式将非常有用。
谢谢"
英文:
As the question reports, I was wondering if there is a way to emulate resources hosted in a non public Azure Cloud (ex. Gov Azure, Germany Azure, China Azure, ...)
I've found out Azurite (https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azurite?tabs=visual-studio) but it seems related to public Cloud, and in particular to storage account.
I ask this because sometimes I've code application which run without any issues in public cloud environment but it breaks on other non cloud env (for example issue with authentication using Managed Identity because maybe the Authority is missing and things like that) and since I've not access to such environments, a way to emulate that and run some integration tests around that would be very useful.
Thanks
答案1
得分: 0
Azurite 是 Blob 存储、队列存储和表存储的本地仿真器,可用于在本地环境中模拟 Azure 云以进行开发和测试。请注意,Azurite 并不是设计用于模拟托管在非公共 Azure 云中的资源。
如果您想使用非公共云(私有云),您可以利用 Azure Stack Hub。如果您想免费尝试,请参阅此处。这将帮助您拥有您自己的云,该云可以完全或部分断开与互联网和公共云的连接。
英文:
Azurite is just a local emulator for Blob Storage, Queue Storage and Table storage that can be used for simulating the Azure cloud during development and testing purposes in your local environment. Please note that the Azurite is not designed to emulate resources hosted in a non-public Azure cloud.
If you want to use a non-public cloud (private), you could leverage the Azure Stack Hub. If you want to try for free, see here. This will help you to have your own cloud which run completely or partially disconnected from the internet and the public cloud.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论