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
- brendan@fakeemail.com

Debating between Scrum and Kanban? Guest author Brendan Wovchko offers five advantages Kanban has ov [...]

- brendan@fakeemail.com

Most individuals know that multitasking slows us down. It has an equally negative effect on agile or [...]

- brendan@fakeemail.com

Announcing the world’s only dating website for Scrum Masters and product owners. [...]

- brendan@fakeemail.com

Too often, agile teams are expected to finish everything every iteration. This expectation is harmfu [...]

- brendan@fakeemail.com

When a product backlog becomes too big, it hinders agility. Discover four steps your team can take t [...]

- Scott Hanselman

I did a blog post many years ago reminding folks that The Internet is not a Black Box. Virtually not [...]

- Scott Hanselman

Lots of folks ask me about Raspberry Pis. How many I have, what I use them for. At last count there [...]

- Scott Hanselman

I recently stumbled upon https://accessibilityinsights.io. There's both a Chrome/Edge extension [...]

- Scott Hanselman

Clive Thompson is a longtime contributing writer for the New York Times Magazine and a columnist for [...]

- Scott Hanselman

Per Wikipedia, "In mathematics, a binary relation ... is transitive if ... element a is related [...]

Meta