我尝试按照以下MSDN文章包含一个任务:http: //msdn.microsoft.com/en-us/library/windowsazure/jj154098.aspx
但是我在其中一个实例上得到了以下错误;
回收(等待角色启动...应用程序启动任务失败,退出代码为1. [2013-04-13T11:03:22Z])
有人可以建议真正发生的事情,如果有的话会有什么问题?
下面是我的cmd:
@echo off
@echo Installing "IPv4 Address and Domain Restrictions" feature
%windir%\System32\ServerManagerCmd.exe -install Web-IP-Security
@echo Unlocking configuration for "IPv4 Address and Domain Restrictions" feature
%windir%\system32\inetsrv\AppCmd.exe unlock config -section:system.webServer/security
Run Code Online (Sandbox Code Playgroud)
和CSDF:
<Startup>
<Task commandLine="Startup.cmd" executionContext="elevated"/>
<Task commandLine="startup\startup.cmd" executionContext="elevated"/>
</Startup>
Run Code Online (Sandbox Code Playgroud)
谢谢
azure ×1