Support us on YouTube by Subscribing our YouTube Channel. Click here to Subscribe our YouTube Channel

Sunday 7 August 2016

Deploy ASP.Net MVC Application to Windows Azure

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,



Note: You must have a Window Azure Account in order to perform below steps. You can create an account on Windows Azure using the following link http://www.windowsazure.com/en-us/pricing/free-trial/ .

Let’s Begin:
Create an ASP.Net MVC Web Application.
I have created a Simple application in ASP.Net MVC which is used for Deployment purpose in this example.
Now go to Azure portal (https://portal.azure.com) and login with your credential.

Click on New on Azure Dashboard. Go to Web + Mobile in 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 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 dialog.
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 database in this application. I will show you how to publish applications with database in my next article. Click on Next.
Click on Publish.
If everything goes fine, you will see a message stating that Web app was published successful in the output window of Visual Studio.
Now visit the URL of your application. Cheers! Our application is live on Azure.

4 comments:

Subscribe us on YouTube

Subscribe Now

Popular Posts

Contact us

Name

Email *

Message *

Like us on Facebook