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

Pervasive myths about agile get in the way of success. It’s time to bust six of those myths. [...]

- mike@mountaingoatsoftware.com

Agile teams strive to finish work in the same iteration in which its begun. Here’s why that is so im [...]

- mike@mountaingoatsoftware.com

I wrote 25 blog posts during 2018. In case you missed some of them, here are the most popular. [...]

- mike@mountaingoatsoftware.com

The iterative and incremental nature of agile makes an agile approach seemingly less compatible with [...]

- mike@mountaingoatsoftware.com

Velocity can be great for predicting how much a team can deliver in a given period. But it needs to [...]

- Scott Hanselman

I've been exploring nopCommerce. It's an open source e-commerce shopping cart. I spoke at [...]

- Scott Hanselman

The optical disc drive is giving out on my GoldStar 3DO machine. It's nearly 30 years old. I wa [...]

- Scott Hanselman

I've long blogged about the intersection of diabetes and technology. From the sad state of diab [...]

- Scott Hanselman

Back in the day, making a Minecraft mod was...challenging. It was a series of JAR files and Java hac [...]

- Scott Hanselman

I've been using ILMerge and various hacks to merge/squish executables together for well over 12 [...]

Meta