Deploying a Visual Studio 2012 Project to Azure

Home » Configuration » Web Development » Deploying a Visual Studio 2012 Project to Azure
Cloud Computing Illustration

This has probably been covered about a million times on the net, but I have included it to complete my previous post on Installing Umbraco Visual Studio Install using Nuget.

This post assumes you have a Windows Azure account and know a little bit about whats in there (databases, web applications etc.)

To sign up for Azure, please click the following link: http://azure.microsoft.com/en-gb/pricing/free-trial/. This link covers in more detail setting up a web application in Azure for the first time http://azure.microsoft.com/en-gb/documentation/articles/web-sites-dotnet-get-started/. I am going to be a bit briefer here in this post.

Step 1: Deploy the SQL/Server database to Windows Azure
Deploy Database to SQL Azure menu option in SQL Server 2012

Deploy Database to SQL Azure menu option in SQL Server 2012

The following page appears. You should connect to SQL/Azure (assuming you have opened the Firewall at the Azure end) and enter the connection details for your Azure database server, along with the name of the new database.

Deploy to SQL Azure Settings

Deploy to SQL Azure Settings

Step 2: Create the web application in Azure

Go to your Azure portal and create a web application using quick start. No need to specify any database details at this point.

Azure Management Portal Create Web Application

Azure Management Portal Create Web Application

Step 3: Download your Azure Publish Profile

After the web application has created, go into the dashboard for it and on the right hand side, you should choose the download the publish profile option to download the publish profile to your local machine.

Azure Web App Dashboard - Download Publish Profile Link

Azure Web App Dashboard – Download Publish Profile Link

Step 4: Import your Azure Publish Profile into Visual Studio

The final step is to right click your project and click Publish, and then at the first step Import the publish profile into Visual Studio. See below.

Publish Visual Studio 2012 Project - Step 1

Publish Visual Studio 2012 Project – Step 1

You also need to specify the connection string that the web app will use to connect to your Azure database. This information is available in the Windows Azure Management Portal for your database – there is an option to show the connection strings. You should use the ADO.NET connection string listed on this page in the Windows Azure Management Portal.

Specifying connection string in the Visual Studio 2012 publish wizard

Specifying connection string in the Visual Studio 2012 publish wizard

I hope somebody finds this useful. For sure, deploying to Azure is easy enough, but setting up Umbraco via Nuget was not.

About Phil

I have been working as a software developer since 1983. This blog could have been called "From Fortran 77, C and Cobol to C# in 20 (not so) easy years", but it doesn't sound quite right somehow. Besides I'm talking about what's happened since 2003, not before!
One Response to “Deploying a Visual Studio 2012 Project to Azure”

Leave a Reply

Your email address will not be published.


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">




Top Posts & Pages

Categories

Recent Posts

Recent Comments

Archives

Blogroll

  • Mike Cohn's Blog
  • Scott Hanselman's Blog
- mike@mountaingoatsoftware.com

In an ideal world, a Scrum team could perform the work of its sprints entirely uninterrupted. Produc [...]

- mike@mountaingoatsoftware.com

Do Scrum long enough and someone will suggest stopping the daily scrums. Here’s how to reply. [...]

- mike@mountaingoatsoftware.com

When estimating in story points, teams should think in terms of ranges and rounding up. Here’s why. [...]

- mike@mountaingoatsoftware.com

Batman would make the perfect Scrum Master. Once he eliminates crime in Gotham City, I plan on offer [...]

- mike@mountaingoatsoftware.com

It can sometimes be a challenge to get people to attend and then participate in sprint reviews. Here [...]

- Scott Hanselman

I love everything about PICO-8. It's a fantasy gaming console that wants you - and the kids in [...]

- Scott Hanselman

I've been a remote worker and an occasional YouTuber for well over a decade. I'm always lo [...]

- Scott Hanselman

I love me some text mode. ASCII, ANSI, VT100. Keep your 3D accelerated ray traced graphics and give [...]

- Scott Hanselman

Being able to seamlessly run Linux on Windows is making a bunch of common development tasks easier. [...]

- Scott Hanselman

I've been trying on and off to enjoy Ruby on Rails development on Windows for many years. I was [...]

Meta