如何在不重新发布 Azure 辅助角色服务的情况下更新我的 app.config 文件

How can I update my app.config file without republishing Azure Worker Role Service

我想在我的 app.config appSettings 中为我的 Cloud Service Worker 角色更改一个特定值。我不想重新发布我的服务以使其保留 运行。我如何从 Visual Studio 或 Powershell 或任何其他工具执行此操作?

您只能在不重新部署的情况下更改 ServiceConfiguration.cscfg 文件中的值,因此对于云服务,建议将设置存储在该文件中,而不是 app.config。

https://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-configure/

您应该更新应用的暂存版本,验证它是否正常工作,然后交换暂存和生产版本。

https://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-manage/#how-to-swap-deployments-to-promote-a-staged-deployment-to-production