Web API Series Tutorial 3.10-Combat: Process data (publish app to Azure app Service)

Source: Internet
Author: User
Tags app service

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.