Setting up the Azure Web Role task from the ServiceConfiguration file

I have an azure file ServiceDefinition.csdefthat has several startup tasks. I want to use one of these tasks only for a specific environment. It seems I can not run the launch tasks in the file ServiceConfiguration-[Environment].cscfg. Is it possible to run only the launch task for a given environment?

+3
source share
2 answers

One way to implement the conditional tasks of starting the environment is to add the service configuration files for each environment in the project file .ccproj Visual studio and xcopy from the environment to ServiceDefinition.csdef in the pre-build event. It will also allow you to have different size instances for each environment if you want to have Xtra-small servers in Dev / QA and larger in Prod.

Check out my block for instructions on how ... It has extra stuff, but it covers adding other environment .csdef files and xcopying them: http://blog.paraleap.com/post/2011/09/13/ Managing-environments-in-a-distributed-Azure-or-other-cloud-based-NET-solution

0
source

Thanks, that helps. There are two options.

1) , csdef , - . , , . 2) , script. - , .

0

All Articles