Deploying an ASP.Net webapp to Azure

Okay, so you’re and ASP.Net developer doing webapps/Webforms. And you are curious about Azure and what you need to learn, and do, to deploy your app to an azure service.

I also went the same path and here is what I got… a short blog on how to move an asp.net app to the cloud.

The app I will be using is going to be the easiest app to build.. the default app that VS gives you when you create a new asp.net webapp. Why? Baby steps.. let’s get into what to modify in an existing app to make it azure ready in the future. Besides, not all apps are created equal, so in the interest of uniformity and repeatability, I’ll use the default app, so you can do it too.

SO, I start off with the default sight right. By habit, I run my visual studio as admin, and I make a new project that is an ASP.Net web application. *What about MVC? Next blog.

This should give you that default site. We stop ASP.Net development here, as what I would like to focus on is how to add this to your azure subscription.

The next thing we do now, is add a cloud application by rightclicking the solution then adding a new project of type Windows Azure Project from the Cloud template.

Give it any name you want to.

Then it will ask you what kind of role this project will be. Leave it blank, and just click OK since we want to add the existing “app” as the webrole for this project.

Your solution explorer should look something like this:

Right click the Roles folder of the cloud application and choose “Add web project in solution”

Then choose the existing app from the dialog that comes out.

And there you go! This app is now ready for publishing to Azure!

Advertisements
This entry was posted in Computers and Internet. Bookmark the permalink.

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