azure - 如何在本地测试在运行时更改 Azure 服务配置设置?

标签 azure azure-configuration azure-compute-emulator

我正在编写我们的 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/

相关文章:

azure - 使用 Azure CLI (2.0.23) 创建函数应用程序无法链接到部署源 url

Azure 文件复制任务 - [错误]未将对象引用设置为对象的实例

c# - 在计算模拟器中分析 Azure

sockets - 从 Azure 实例获取 ServiceDefinition.csdef

Azure 应用服务应用程序设置

Azure - 2x 超小型实例或单个小型实例

c# - 如何通过可空字段查询Azure表存储?

azure - 如何在 Azure Databricks Notebook Run Now JSON 中提供集群名称

azure - 微软Azure : API Access error DisallowedOperation