Windows Azure Launch Task not starting

I have a standard ASP.Net application to which I have added an Azure Deployment project for deployment to Azure. The application is deployed perfectly to Azure.

Then I wanted to expand it to have a launch task.

I added the following to ServiceDefintion.csdef

<Startup>
  <Task commandLine="startup.cmd" executionContext="elevated" taskType="simple"/>
</Startup>

startup.cmd is located in the bin bin folder. I am registering a batch file, so I see that it is not running.

When deploying the same application to Compute Emulator on my local computer, the startup task is performed correctly.

Did I miss something?

+5
source share
2 answers

"startup.cmd" BIN , "" " " → " ". Azure.

, -, , , , bin . - :

<Startup> 
  <Task commandLine="./bin/startup.cmd" executionContext="elevated" taskType="simple"/> 
</Startup> 

, .

+1

.

, , - , Azure Cloud Service. Azure Cloud Service , , , .

0

All Articles