我正在编写我们的 Azure 应用程序以使用 Azure 服务配置设置,以便我们可以实时更改它。我可以通过部署然后在 Azure Web 门户中更改它们来测试它。
如何允许在本地 Azure 计算模拟器上实时更改服务配置?
最佳答案
为了更新服务配置,您需要修改 *.cscfg 文件并执行 csrun.exe(位于C:\Program Files\Microsoft SDKs\Windows Azure\Emulator): p>
csrun.exe /update:<deployment-id>;<service-configuration-file>
请注意,这似乎仅在没有调试器的情况下运行应用程序时才有效。
我最近在博客中谈到了这一点:Controlling your instances in the Windows Azure Compute Emulator (查看在模拟器中处理 RoleEnvironment.Changing 事件)。
关于azure - 如何在本地测试在运行时更改 Azure 服务配置设置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12216007/