In this last section, you will publish your application to Azure. In the Solution Explorer, right-click the project and select Publish.
Click Publish to open the Publish Web dialog box. If you select Host in Cloud when you create a new project, the links and settings are already configured. In this case, simply click on the Settings panel and select "Execute Code first Migrations". (If you did not select "Host in Cloud" At the beginning, follow the steps below) (http://www.asp.net/web-api/overview/data/ Using-web-api-with-entity-framework/part-10#new-website)
In order to deploy the app, click Publish. You can view the publishing process in the Web Publish Activity window. (In the View directory, select Other Windows, and then select Web Publish Activity.) )
When Visual Studio finishes deploying the app, the default browser automatically opens the URL for the deployment site, and the app you created is now running in the cloud. The URL in the browser's address bar shows the site and is loaded from the network.
deploy to a new site
If you do not select Host in Cloud when you build the project, you now need to configure a new Web App. In Solution Explorer, right-click the project and select Publish. Select the Profile panel and click Microsoft Azure Websites. If you are not logged in to Azure now, you need to log in first.
In the existing Websites dialog box, click New.
Enter a site name. Choose your Azure subscription and region. Under Database server, select Create New server, or the server that already exists. Click Create.
Click on the Settings panel and select "Execute Code first Migrations". then click Publish.
Web API Series Tutorial 3.10-Combat: Process data (publish app to Azure app Service)