Language

Publish the App to Azure Websites

By Mike Wasson|

Download Completed Project

As the last step, you will publish the application to an Azure Website. In Solution Explorer, right-click the project and select Publish.

Clicking Publish invokes the Publish Web dialog. If you checked Host in Cloud when you first created the project, then the connection and settings are already configured. In that case, just click the Settings tab and check "Execute Code First Migrations". (If you didn't check Host in Cloud at the beginning, then follow the steps in the next section.)

To deploy the app, click Publish. You can view the publishing progress in the Web Publish Activity window. (From the View menu, select Other Windows, then select Web Publish Activity.)

When Visual Studio finishes deploying the app, the default browser automatically opens to the URL of the deployed website, and the application that you created is now running in the cloud. The URL in the browser address bar shows that the site is being loaded from the Internet.

Deploying to a New Website

If you did not check Host in Cloud when you first created the project, you can configure a new Website now. In Solution Explorer, right-click the project and select Publish. Select the Profile tab and click Windows Azure Websites. If you aren't currently signed in to Azure, you will be prompted to sign in.

In the Select Existing Azure Web Site dialog, click New.

Enter a site name. Select your Azure subscription and the region. Under Database server, select Create New Server, or select an existing server. Click Create.

Click the Settings tab and check "Execute Code First Migrations". Then click Publish.

This article was originally created on June 16, 2014

Author Information

Mike Wasson

Mike Wasson – Mike Wasson is a programmer-writer at Microsoft.