Publishing ASP.NET Web Sites to “Windows Azure Web Sites” Service

Today, Microsoft made a number of nice updates to their Visual Studio tools and templates. On thing pointed out in Scott Hanselman’s blog post about it (and Scott Guthrie’s post as well), was the update that lets developers publish ASP.NET Web Site projects to WIndows Azure Web Sites. Given that I haven’t messed around with Windows Azure Web Sites, I figured that it’d be fun to try this out.

After installing the new tooling and opening Visual Studio 2012, I created a new Web Site project.

2013.02.18,websites01

I then right-clicked my new project in Visual Studio and chose the “Publish Web Site” option.

2013.02.18,websites02

If you haven’t published to Windows Azure before, you’re told that you can do so if you download the necessary “publishing profile.”

2013.02.18,websites03

When I clicked the “Download your publishing profile …” link, I was redirected to the Windows Azure Management Portal where I could see that there were no existing Web Sites provisioned yet.

2013.02.18,websites04

I quickly walked through the easy-to-use wizard to provision a new Web Site container.

2013.02.18,websites05

Within moments, I had a new Web Site ready to go.

2013.02.18,websites06

After drilling into this new Web Site’s dashboard, I saw the link to download my publishing profile.

2013.02.18,websites07

I downloaded the profile, and returned to Visual Studio. After importing this publishing profile into the “Publish Web” wizard, I was able to continue towards publishing this site to Windows Azure.

2013.02.18,websites08

The last page of this wizard (“Preview”) let me see all the files that I was about to upload and choose which ones to include in the deployment.

2013.02.18,websites09

Publishing only took a few seconds, and shortly afterwards I was able to hit my cloud web site.

2013.02.18,websites10

As you’d hope, this flow also works fine for updating an existing deployment. I made a small change to the web site’s master page, and once again walked through the “Publish Web Site” wizard. This time I was immediately taken to the (final) “Preview” wizard page where it determined the changes between my local web site and the Azure Web Site.

2013.02.18,websites11

After a few seconds, I saw my updated Web Site with the new company name.

2013.02.18,websites12

Overall, very nice experience. I’m definitely more inclined to use Windows Azure Web Sites now given how simple, fast, and straightforward it is.

About these ads


Categories: .NET, Cloud, Windows Azure

5 replies

  1. Hi Richard. Off-topic I know, but in the second image there are a pair of menu entries for Cloud Foundry – where do those come from, please? #curious I guess an Iron Foundry plugin?

  2. Thought so, just checking :-) *runs to download*

Trackbacks

  1. Reading Notes 2013-02-25 | Matricis
  2. Windows Azure Community News Roundup (Edition #56) - Windows Azure Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 263 other followers

%d bloggers like this: