Deploy ASP.NET MVC Application to Microsoft Azure

DZone 's Guide to

Deploy ASP.NET MVC Application to Microsoft Azure

We walk through how to deploy ASP.NET MVC applications to Microsoft's Azure cloud. Check it out!

· Web Dev Zone ·
Free Resource

In this article, we will learn how to publish or Deploy ASP.Net MVC application to Windows Azure. In previous ASP.NET MVC tutorials of this series, we saw,

Create an ASP.Net MVC Web Application.

I have created a Simple application in ASP.Net MVC, which is used for deployment purposes in this example.

Now go to Azure portal (https://portal.azure.com) and log in with your credential.

Click on New on Azure Dashboard. Go to Web + Mobile in the marketplace section, then click on Web App.

Select an App name for your Web App and Select resource group (A resource group is a collection of resources that share the same lifecycle, permissions, and policies) and click on create.

Within a few seconds, you will see your Web App is ready. For checking whether our App is ready or not, just visit the URL of the Web App that we have created in the above steps.

Now, click on App Services then Click on the App on which we want to deploy your application (I have selected the Web App which we have created in the above steps).

Click on the More link and then click on "Get publish profile." After clicking, you will get your Publish setting file which is required for publishing the application.

Now right-click on your project in Visual Studio and click on Publish.

Now click on Import in Publish Web.

Browse the Publish setting file which we have downloaded and then click on OK.

Click on Validate connection for validating the connection:

We haven’t added or used a database in this application. I will show you how to publish applications with a database in my next article. Click on Next.

Click on Publish.

If everything goes fine, you will see a message stating that the web app was published successfully in the output window of Visual Studio.

Now visit the URL of your application. Cheers! Our application is live on Azure.

app ,asp.net ,azure ,cloud ,deployment ,mvc ,visual studio ,web

Published at DZone with permission of Anoop Kumar Sharma , DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}