@dinov, thanks for the response. Better late than never!
There is a very import point here with regard to an Azure deployment. I want to run a powershell script
the website has been created on IIS.
If you look at the
IIS may not be fully configured during the startup task stage in the startup process, so role-specific data may not be available. Startup tasks that require role-specific data should use Microsoft.WindowsAzure.ServiceRuntime.RoleEntryPoint.OnStart.
What is the equivalent of
for a Node deployment?
At the moment I'm carrying out the work using a background startup task. But this is dangerous because
- Azure does not wait for the background task to complete before letting in traffic, and
- The failure of the background task will not prevent the role from starting.