Azure的配置与多任务可能吗? [英] Azure configuration with multiple tasks possible?

查看:136
本文介绍了Azure的配置与多任务可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经附带了它自己的部署工具第三方.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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆