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

Source: Internet
Author: User
Tags app service

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)

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.