Azure configuration with multiple tasks possible?

混江龙づ霸主 提交于 2019-12-11 08:28:19

问题


We have a third party .NET application which comes with its' own deployment tool. This deployment tool generates a custom startup.cmd file. We have an option to modify the CFG file but not the cmd file.

I would like to have my own cmd file. Could someone please confirm whether multiple tasks are allowed in a cloud service definition file?

For example...

<Startup>
  <Task commandLine=”thirdpartyPropietryStartup1.cmd” executionContext=”elevated” />    
  <Task commandLine=”startup\startup2.cmd” executionContext=”elevated” />
</Startup>

回答1:


Multiple startup tasks should work according to the documentation.

It is not that explicit but it states that

simple tasks are executed synchronously, one at a time, in the order specified in the ServiceDefinition.csdef file.

which would make no sense if multiple tasks would not work.

If there are issues you could always create a combined.cmd which runs thirdpartyPropietryStartup1.cmd and then startup\startup2.cmd (unless your executionContext should be different).



来源:https://stackoverflow.com/questions/15985215/azure-configuration-with-multiple-tasks-possible

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!