In this last section. You'll advertise the app to Azure. In the Solution Explorer, right-click the project and select Publish.
Click Publish to open the Publish Web dialog box.
Suppose you select Host in Cloud when you create a new project. Then the links and settings are all configured. In this case, however, you need to click on the Settings panel and select "Execute Code first Migrations". (If you do not select "Host in Cloud" At the beginning, follow the steps below for example) (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 form. (Under the View folder, select Other Windows, and then select Web Publish Activity.) )
When Visual Studio finishes deploying the app. The default browser opens the URL of the deployment site on its own initiative, and the app you created is now in the cloud.
The URL in the browser's address bar shows the site and is loaded from the network.
deploy to a new Web site
Suppose you did not select Host in Cloud when you set up the project. So now you 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. Assuming you're not signed in to Azure now, you'll 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 (advertise app to Azure app Service)