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,
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.
- Creating First Application In ASP.NET MVC
- Pass Parameter Or Query String In Action Method In ASP.NET MVC
- Passing Data from Controller To View In ASP.NET MVC
- Strongly Typed View Vs Dynamically Typed View In ASP.NET MVC
- Working With Built-In HTML Helper Classes In ASP.NET MVC
- Inline and Custom HTML Helpers In ASP.NET MVC
- CRUD Operation In ASP.NET MVC Using AJAX And Bootstrap
- HandleError Action Filter In ASP.NET MVC
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.
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.
Good work
ReplyDeleteThanks
DeleteThis comment has been removed by the author.
ReplyDeleteWell Explained!!
ReplyDeleteThanks for share, Really helpful.