简体   繁体   English

如何在不重新发布Azure Worker Role Service的情况下更新我的app.config文件

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

I want to change a specific value in my app.config appSettings for my Cloud Service Worker Role. 我想为我的Cloud Service Worker角色在app.config appSettings中更改特定值。 I don't want to republish my service so as to allow it to keep running. 我不想重新发布我的服务以使其继续运行。 How can I do this either from Visual Studio or Powershell or any other tool? 如何从Visual Studio或Powershell或任何其他工具中执行此操作?

You can only change values in the ServiceConfiguration.cscfg file without a redeploy, so it is recommended to store the settings in that file, instead of app.config, for a Cloud Service. 您只能在ServiceConfiguration.cscfg文件中更改值,而无需重新部署,因此建议您将设置(而不是app.config)存储在该文件中以用于Cloud Service。

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-configure/

You should update the staging version of your app, validate it works correctly, then just swap staging and production. 您应该更新应用程序的暂存版本,验证其是否可以正常运行,然后仅交换暂存和生产。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM