How to create an ASP. NET Web application in Azure, azureasp.net

Source: Internet
Author: User
Tags web hosting web hosting services

How to create an ASP. NET Web application in Azure, azureasp.net

Azure Web applications provide highly scalable, self-repairing Web hosting services. This Quick Start shows how to deploy the first ASP. NET Web application to the Azure Web application. After that, you have a resource group that contains an application service plan and a Azure Web application with deployed Web applications.

Prerequisites

To complete this tutorial, perform the following operations:

  • Use the following workload to install Visual Studio 2017:

    • ASP. NET and Web development
    • Azure Development

Note

If you do not have Azure subscription, you can create a trial account before you start.

Note

To connect Visual Studio to Azure China, follow the instructions in connecting to Azure China with Visual Studio 2015.

If you are using Visual Studio 2015 Update 2 or later, you can select the Enable Azure Active Directory configuration for isolation option as described in the section.

If you are using Visual Studio 2017, follow the instructions in connecting to China Azure using Visual Studio 2017.

Create an ASP. NET Web application

In Visual Studio, choose "file"> "new"> "project" to create a project.

In the Create Project dialog box, choose Visual C #> Web> ASP. NET Web application (. NET Framework )".

Name the applicationMyFirstAzureWebAppAnd then select "OK ".

Any type of ASP. NET Web applications can be deployed to Azure. In this quick start tutorial, select the "MVC" template and make sure that the authentication is set to "no authentication ".

Select "OK ".

In the menu, select "Debug> start but not debug" to run the Web application locally.

Release to Azure

In Solution Explorer, right-click the "myFirstAzureWebApp" project and select "publish ".

Make sure that you have selected "Azure Application Service" and then select "release ".

The "create Application Service" dialog box is displayed, which helps you create all the Azure resources required to run ASP. NET Web applications in Azure.

Log on to Azure

In the "Create Application Service" dialog box, select "add account" and log on to your Azure subscription. If you have logged on, make sure that this account contains your Azure subscription. You can select a Logon account to add the correct account.

Note

If you have logged on, do not select "CREATE ".

After logging on, you can create all the resources required for the Azure Web application in this dialog box.

Create Resource Group

A Resource Group is a logical container in which Azure resources (such as Web applications, databases, and storage accounts) are deployed and managed.

Next to resource group, select new ".

Name the Resource GroupMyResourceGroupAnd then select "OK ".

Create application service plan Note

An application service plan represents a set of physical resources used to host an application. All applications allocated to an application service plan share the resources defined in the plan. When hosting multiple applications, this sharing can save you money.

Application Service Plan Definition:

  • Region (eastern China and northern China ).
  • Instance size (small, medium, large)
  • Scale count (1 to 20 instances by default)
  • SKU (free, shared, basic, standard, advanced)

Next to "Application Service Plan", select "new ".

In the "Configure application service plan" dialog box, use the settings in the table located behind the screen.

Set Recommended Value Description
Application Service Plan MyAppServicePlan The name of the application service plan.
Location Northern China The data center hosting Web applications.
Size Free The pricing layer determines the hosting feature.

Select "OK ".

 

Finally, create and release a Web application

Related Article

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.