At PDC10, I did a session Building, Deploying and Managing Windows Azure Applications that covered the end to end experience of using Windows Azure.
To watch the recording, go to http://player.microsoftpdc.com/session click on “Guide”, my session is at 1130 on Thursday.
As part of the session I was able to show some of the cool new features we have coming in our next release (coming sometime in November or December of 2010) and I’m following up with a series of blog posts.
The first in this series is showing the rapid developer develop feature.
As part of developing a web site that runs on Windows Azure, it is really common for the developer not only to iterate on F5 but also to iterate in the cloud.
Today, iterating on the cloud requires a full redeployment which can be a lengthy operation. We set out to make this scenario better.
I’ll start with a Cloud Service that has a single Web role and I’ll just use the default ASP.NET template.
To enable rapid developer deploy, right click on the Cloud Service node in Solution Explorer, select publish and on the publish dialog, enable remote desktop (post coming soon) and select the checkbox to “Enable Web Deploy”:
Once the deployment has completed, view the web page in IE:
and you’ll see the standard ASP.NET template. Since at the time of this writing, this is not live, you’ll see that I’m showing this in one of our test clusters, cloudapp-preview.net.
From here, I can go back and make any changes I want to my web site. In this case, I’ll just update the text on that main page.
Hit “save” and right click on the WebRole1 project this time and select publish.
This will bring up a dialog where the settings to deploy to the web role are already setup. Make sure you fill out the username/pass at the bottom of the dialog.
Note: The settings for this profile are saved to the project folder, in my sample they are saved in a file called WebRole1.Publish.xml. The tools created this file on your behalf.
After the web deploy publish completes – really in the matter of seconds (depends on the extent of the changes and payload of course) – I can go back to IE, refresh the browser and…
The changes were deployed to the Windows Azure. Yes, in the matter of seconds. As someone that iterates a lot on the cloud, I’m really happy we have this feature coming in v1.3.
What’s Going On?
The checkbox on the cloud service deploy dialog sets up MS deploy on the web role instance which we then use the standard VS tools for MS deploy to deploy to that instance.
We need to have Remote Desktop enabled, not because it uses remote desktop but because it needs a user account. This requirement is likely to be removed over time.
Why Developer Deploy?
The reason why this is supported only for a single instance developer scenario is because we’re only modifying the instance, we’re not modifying the package that Windows Azure will use to create new instances.
Additionally, because Windows Azure instances are stateless (to support scale out) an OS update or other management operation can result in that instance being replaced by a different instance which means that the changes you made through web deploy will be lost.
As you can imagine, those behaviors are not acceptable for production but are totally fine for the developer scenario.
We’ll eventually get a full story around this but didn’t want to wait to solve the developer case first.
This will be coming between now and the end of the year (2010) – let me know what you think.
Next week, I’ll be speaking at PDC. The sessions were published recently and I’ll be speaking on Thursday at 11:30AM PST.
Building, Deploying, and Managing Windows Azure Applications
In order to take full advantage of Windows Azure and SQL Azure, you need to know more than just how to write the code. You need to know how to incorporate your application in a team environment, deploy, monitor, manage and retrieve diagnostic information back from the cloud. In this session, you will learn everything you need to know to be successful with a project that utilizes Windows Azure and SQL Azure including setting up your development environment, automating build, unit test and deployments to different deployment environments from staging to production, and managing credentials and user roles using the Windows Azure Portal.
I’ll frame the talk a little differently. My talk has 3 sections, Setting up the cloud, Deploying to the cloud and Viewing into the cloud and I’ll be covering a mix of what’s there today and some cool new features we have coming sometime before the end of the year.
What’s unique about this PDC is that all of the sessions will be broadcast live online at: http://player.microsoftpdc.com/ so if you couldn’t make it live, I hope that you can watch online and twitter along @jnakashima.
I’m pretty jazzed, looking forward to seeing you there – live or online.