Click here to Skip to main content
15,943,808 members
Articles / Hosted Services / Azure

How to Publish ASP.NET MVC Web Application to Azure

Rate me:
Please Sign up or sign in to vote.
4.71/5 (6 votes)
29 Oct 2015CPOL2 min read 54.4K   9   1
Deploy an ASP.NET MVC application to a Azure Web Site by using the Publish Web Wizard in Visual Studio 2015


This tip walks you through the steps to deploy an ASP.NET MVC application to a Azure Web Site by using the Publish Web Wizard in Visual Studio 2015.

Install Windows Azure SDK for .NET

This could be done through Microsoft Web Platform Installer.

Select the option Add on item Azure SDK for .NET (VS 2013) -2.2, and the component will be installed on your machine:

Image 1

Create Azure Account

You need to get a Windows Azure account. Everyone can open a Windows Azure account for free.

Check the link below for more information:

Create an ASP.NET MVC Application

Check my wiki article about that:

You also can download the code from my sample in Microsoft Code Gallery at:

Deploy to Windows Azure

  • In Visual Studio, select Solution Explorer and right-click the project.

    Image 4

  • Then select Publish option from the context menu.
  • The Publish Wizard window will open. Select the option Import.

    Image 5

  • A new Windows will open. In this window, we have two choices to import publish settings:

    Image 6

  • Import from a Windows Azure Web Site.
  • Import from a publish profile file (I will demonstrate this one).
  • To use this option, we need to create the Web Site on Windows Azure.
  • Access to the web page of Windows Azure Management Portal (

    Image 7 )

  • On this page, we have a lot of options on the left side of the page. In this case, we will focus on the Web Site one.
  • Select Web Sites option.
  • On the left bottom, select the option New.

    Image 8

  • A new role of options will appear to select what kind of web site we need to create.
  • We will select the Quick Create option.

    Image 9

    To create a new site, we need to provide the url and region.

    After that, it is necessary to check the option Create Web Site, that will be provision of the new website.

  • As we can check the new site was created with success with name mvc5publishdemo.

    Image 10

  • The final step on Azure side, is to download the Publish Profile that we need on Visual Studio. For that, we have an option Download the Publish Profile on the Dashboard of our new site.
  • Check that option and download the file to a location on local machine.

    Image 11

  • Select the previous downloaded file and select OK button.

    Image 12

  • A new window will be provided. To finalize the publish, select the Publish button.

    Image 13

  • The publish will be made with success and the web site will be opened in our default browser.

    Image 14

    Image 15

Windows Azure Resources

Some good resources about Windows Azure could be found here:


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Written By
Software Developer (Senior) Devscope
Portugal Portugal
I am João Sousa, and since i finish my degree I’m working in software development using Microsoft technologies.

I was awarded

Microsoft Most Valuable Professional (MVP) 2015 – .Net

My profissional profile:

Azure Developer
.NET Developer

My Certifications:

MCTS - .NET Framework - Application Development Foundation
MCTS - .NET Framework 2.0 - Windows-based Client Development
MCTS - .NET Framework 3.5 ADO.NET Applications
MCTS - .NET Framework 3.5 ASP.NET Applications
MCSD - Programming in HTML5 with JavaScript and CSS3
MCSD - Developing ASP.NET MVC 4 Web Applications
MCSD - Developing Windows Azure and Web Services
MCSA Office 365 - Managing Office 365 Identities and Requirements
MCSA Office 365 - Enabling Office 365 Services
MCSD - Implementing Microsoft Azure Infrastructure Solutions

Comments and Discussions

QuestionPublish profile through scripting Pin
Yusubov E.6-Nov-15 5:14
Yusubov E.6-Nov-15 5:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.