Deploy ASP.NET MVC Application To Windows Azure

In this article, we will learn, how to publish or deploy ASP.NET MVC Applications 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 the steps, given below. You can create an account on Windows Azure , using the link.
 
Let’s Begin,

Create ASP.NET MVC Web Application.



I have created a simple Application in ASP.NET MVC, which is used for the deployment purpose in this example.

 

Now, go to Azure portal and log in with your credentials.





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



Select an app name for your Web app and select resource group (A resource group is a collection of resources, which shares the same lifecycle, permissions, policies) and click 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, which we have created in the steps, mentioned above.

 

Now, click app Services, click on the app on which we want to deploy your Application. (I have selected the Web app, which we have created in the steps, mentioned above).

 

Click More link and subequently 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 Publish.
 


Now, click Import in Publish Web dialog.



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



Click Validate connection for validating the connection.



We haven’t added or used the database in this Application. I will show you how to publish the Applications with the database in my next article. Click Next.



Click 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. Our application is live on the Web, using Microsoft Azure.


Similar Articles