How to deploy an ASP.NET web application to a Windows Azure Web Site using Visual Studio
This page is an experiment in a new approach to presenting annotated lists of resources on subjects of interest to ASP.NET developers. These are links to documents that I've either written or reviewed and recommend. The list is similar to the ASP.NET Deployment Content Map but is more narrowly focused. Please add comments or send me an email indicating what you think of this plan compared to continuing to develop the Content Map pages. Any suggestions on how to present the information more effectively are also welcome.
The following resources explain how to deploy an ASP.NET web application to Windows Azure Web Sites, using Visual Studio 2010 or Visual Studio 2012 to publish online. The sample application in each tutorial uses a specific ASP.NET technology, such as MVC, Web Forms, or Web API, but the methods shown apply equally to the other technologies as well.
If you want to use a deployment package or a continuous integration (CI) process or deploy to Windows Azure Cloud Services instead of Web Sites, see the ASP.NET Deployment Content Map.
Web Deployment Overview for Visual Studio and ASP.NET
Article | Source: Tom Dykstra, Microsoft
A basic introduction to web deployment using Visual Studio. Inludes an overview of options for deploying a database along with the web application and a list of additional deployment tasks you might have to do or manually configure Visual Studio to do for you.
Dirt Simple Web and Database Deployment in Visual Studio 2012
Video | Source: Sayed Hashimi, Microsoft
If you prefer to start with a video, this one introduces the Visual Studio 2012 web deployment functionality (which can also be installed in Visual Studio 2010). Additional features have been added since the video was recorded, especially for deploying to Windows Azure, but the UI has remained basically the same.
Deploying an ASP.NET Web Application to a Windows Azure Web Site
Article | Source: Tom Dykstra, Microsoft
Shows how to create a basic ASP.NET MVC 4 application and deploy it to a Windows Azure Web Site. Does not include a database.
Deploy a Secure ASP.NET MVC app with Membership, OAuth, and SQL Database to a Windows Azure Web Site
Article | Source: Rick Anderson, Microsoft
A more complex tutorial that shows how to create and deploy an ASP.NET MVC 4 application that includes a membership database and an application database. Uses Entity Framework Code First Migrations for application database deployment and a manual process of creating SQL scripts for deploying the membership database.
ASP.NET Web Deployment using Visual Studio
Code with Article | Source: Tom Dykstra, Microsoft
A 12-part tutorial series that covers a more complete range of deployment tasks than the previously listed ones. Covers the following topics for a web project that includes a membership database and an application database:
- How to use SQL scripts to deploy the membership database and Code First Migrations to deploy the application database.
- How to set up Web.config transformations to automate the process of changing settings for the deployed web application (for example, setting different authorization rules in different destination environments).
- How to make sure empty folders get deployed.
- How to deploy to a test environment before deploying to production. The test environment is IIS and SQL Server Express on the local Windows 7 or Windows 8 development computer.
- How to set permissions for a folder so that the web application can update files in it.
- How to deploy to a staging environment before deploying to production. The staging environment is a Windows Azure Web Site.
- How to deploy to the production environment (another Windows Azure Web Site).
- How to deploy code changes that don't involve database updates.
- How to deploy database updates.
- How to deploy by using the command line.
- How to customize the deployment process in order to deploy additional files that are not included in the Visual Studio project.
- Troubleshooting tips for common error scenarios.
Deploying an ASP.NET Web Application with SQL Server Compact using Visual Studio
Code with Article | Source: Tom Dykstra, Microsoft
This is an earlier version of ASP.NET Web Deployment using Visual Studio that uses Visual Studio 2010 and SQL Server Compact. It does not show the latest Visual Studio deployment features, and it shows deployment to a third-party hosting provider instead of Windows Azure, but it contains information you need to know if your application uses SQL Server Compact. Covers the following topics:
- How to deploy the SQL Server Compact database engine.
- How to deploy SQL Server Compact databases initially by copying the .sdf files.
- How to deploy updates to SQL Server Compact databases.
- How to migrate from SQL Server Compact to SQL Server.
How to: Deploy a Web Project Using One-Click Publish in Visual Studio
Article | Source: Tom Dykstra, Microsoft
The tutorials don't explain every aspect of the Visual Studio deployment UI, they focus on what is needed foer their specific sample scenarios. This article explains the Visual Studio deployment UI for a wider range of scenarios. For example, it covers the following topics that the tutorials don't cover:
- UI fields for FTP deployment.
- Service URL formats for deploying to servers in an on-premises network.
- What to do if you get a security certificate error message.
- How to deploy a database that you use the Entity Framework DbContext API with, but for which you can't or don't want to use Migrations.
Deploying an ASP.NET Website to Azure in Visual Studio 2012 from a Git Repository directly
Article | Source: Suprotim Agarwal, Microsoft MVP
Explains how to deploy an ASP.NET web project in Visual Studio, using the Git plug-in to commit the code to Git and connecting Windows Azure to the Git repository.
Comments (0) RSS Feed