Is there a way to reduce time between Azure deployment start and role OnStart() code being invoked?

azure, deployment, windows

Solution

Windows Azure generally takes 5-15 minutes to deploy. What it's doing is spinning up servers, VMs, booting Windows, etc. It's getting faster over time, but nine minutes is certainly not out of the ordinary.

Problem

Currently when I create a deployment using Windows Azure Management Portal it takes about 9 (nine!) minutes to have the code in my role `OnStart()` being run. I feel something is wrong there - nine minutes is ridiculously long. I have a small startup task that I expect to finish in few seconds (and it finishes in few seconds when run under Compute Emulator), so looks like the Azure infrastructure is doing something big in there all that time. Is there a way to speed the process up?

Original source