简体   繁体   English

Windows Azure VIP交换和多个web.configs

[英]Windows Azure VIP Swap and multiple web.configs

We have a Windows Azure cloud service application ie ASP.NET MVC web application which is hosted on production slot and uses SSL , it also has ACS configured on it. 我们有一个Windows Azure云服务应用程序,即ASP.NET MVC Web应用程序,该应用程序托管在生产插槽中并使用SSL,并且还配置了ACS。

I want to deploy the same application on the Staging slot of the cloud service where we have this GUID.cloudapp.net. 我想在拥有此GUID.cloudapp.net的云服务的登台插槽上部署相同的应用程序。 Is it possible that, when my application is running in the staging slot it will refer to another web.config and when I will swap the deployment to the production slot then the application should refer another web.config? 是否有可能,当我的应用程序在暂存插槽中运行时,它会引用另一个web.config,而当我将部署交换到生产插槽时,该应用程序应引用另一个web.config吗?

Why I want to do this is because I have ACS configured on my application whose settings are defined in the web.config file eg realm. 之所以要这样做,是因为我在应用程序上配置了ACS,其设置在web.config文件(例如,领域)中定义。

Any feedback on this will be appreciated. 任何对此的反馈将不胜感激。

I have managed this by modifying the web.config on Role start method. 我已经通过在Role start方法上修改web.config来管理此问题。 More information at - ACS settings in Windows Azure cscfg 更多信息,请参见-Windows Azure cscfg中的ACS设置

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

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