I created a brand new cloud service with a single worker role using Azure .NET SDK 2.6. The RoleEntryPoint is pretty much empty.
First time it took a while because of VM creation. My expectation is that following publish attempts would be much faster. Turns out it takes at least ~5 minutes. Inspecting deployment activity logs in VS I see:
20:17:06 - Checking for Remote Desktop certificate...
20:17:07 - Applying Diagnostics extension.
20:17:29 - Preparing deployment for AzureCloudService2 - 15/05/2015 20:17:03...
20:17:29 - Connecting...
20:17:29 - Verifying storage account ...
20:17:30 - Uploading Package...
20:17:51 - Updating...
20:19:59 - Instance 0 of role WorkerRole1 is ready
20:20:00 - Starting...
20:20:19 - Initializing...
20:20:19 - Created web app URL: ...
20:20:19 - Complete.
Why on earth it takes 2 minutes to update this app? Is there a way to speed this up?
Turn off MSBuild output.
In Visual Studio go to Options > Projects and Solutions > Build and Run
. Set both MSBuild project options to quiet.
When I did this I saw a major decrease in deployment time.
2 to 4 minutes to update the Azure deployment are not that much considering that:
And this is an oversimplification of what is actually going on. All those are happening asynchronously and if it takes like 15-20 seconds for each item, you see my point here.
There are some things you can do if you want faster deployments:
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With