DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Deploy ASP.NET MVC Application to Microsoft Azure

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!

Anoop Kumar Sharma user avatar by
Anoop Kumar Sharma
CORE ·
Aug. 09, 16 · Tutorial
Like (4)
Save
Tweet
Share
7.30K Views

Join the DZone community and get the full member experience.

Join For Free

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,

  • 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.


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.

ASP.NET MVC ASP.NET mobile app azure

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

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Front-End Troubleshooting Using OpenTelemetry
  • Key Elements of Site Reliability Engineering (SRE)
  • DevOps for Developers: Continuous Integration, GitHub Actions, and Sonar Cloud
  • Create Spider Chart With ReactJS

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: