Azure的配置与多任务可能吗? [英] Azure configuration with multiple tasks possible?
问题描述
我们已经附带了它自己的部署工具第三方.NET应用程序。该部署工具生成自定义STARTUP.CMD文件。我们有一个选项来修改CFG文件,但不是CMD文件。
我想有我自己的CMD文件。可能有人请确认多个任务是否被允许在云服务定义文件?
例如...
<&启动GT;
<任务的命令行=thirdpartyPropietryStartup1.cmd的ExecutionContext =架空/>
<任务的命令行=启动\\ startup2.cmd的ExecutionContext =架空/>
< /启动>
多重启动任务应根据的文档。
这是不是明确的,但它指出,
简单的任务被同步执行,一次一个,在ServiceDefinition.csdef中文件中指定的顺序
块引用>这将毫无意义,如果多个任务是行不通的。
如果有问题,你总是可以创建的 combined.cmd 的它运行的 thirdpartyPropietryStartup1.cmd 的,然后的启动\\ startup2.cmd 的(除非你的ExecutionContext应该是不同的)。
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>
解决方案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).
这篇关于Azure的配置与多任务可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!