Thursday, 15 May 2014

I've created web application with cloud service, windows azure,right now i am deploying my web role on more then 2 environment -



I've created web application with cloud service, windows azure,right now i am deploying my web role on more then 2 environment -

i've implemented authentication in web application, problem @ time of deployment i've manual settings in web.config file like; every time if want deploy on test i've uncomment local testing settings , comment production setting , vice versa, there way can alter these settings runtime or dynamically @ time of deployment? because i've lots of environment publish every time manually comment , uncomment of setting not worthy

<!--local testing--> <add key="idafederationmetadatalocation" value="https://login.windows.net/test.onmicrosoft.com/testmetadata/2007-06/testmetadata.xml" /> <add key="idarealm" value="https://test.onmicrosoft.com/aadtest" /> <add key="idaaudienceuri" value="https://test.onmicrosoft.com/admtest" /> <add key="idaclientid" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" /> <add key="idapassword" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=" /> <!-- production --> <!-- <add key="idafederationmetadatalocation" value="https://login.windows.net/test.onmicrosoft.com/testmetadata/2007-06/testmetadata.xml" /> <add key="idarealm" value="https://test.onmicrosoft.com/aadtest" /> <add key="idaaudienceuri" value="https://test.onmicrosoft.com/admtest" /> <add key="idaclientid" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" /> <add key="idapassword" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=" />-->

so need comment 1 line in release version of web.config? can utilize web.config transformation. add together next line web.release.config file:

<add key="idafederationmetadatalocation" xdt:transform="remove" xdt:locator="match(key)"/>

windows cloud web-deployment azure-web-roles publishing

No comments:

Post a Comment