Azure App Service

Source: Internet
Author: User
Tags app service hosting web hosting

App Services app Service

Role: A WEB hosting service that deploys an ASP. NET Core web/framework application to an Azure Web App.

Resource group: A logical container in which Azure resources such as Web apps, databases, and storage accounts are deployed and managed.

App Service Plan: Specifies the location, size, and functionality of the WEB server farm where the app is hosted. You can save money when hosting multiple apps by configuring multiple Web apps to share a single app service plan.

Right-click the Myfirstazurewebapp project in Solution Explorer and choose Publish.

Make sure that Microsoft Azure app service is selected, and then select Publish.

The Create App Service dialog box opens to create all the azure resources you need to run your ASP. NET Core Web app in Azure.

sign in to Azure

In the Create App Service dialog box, select Add an account, and then sign in to your Azure subscription. If you are signed in, select the account that contains the subscription you want from the drop-down list.

Note

If you are already signed in, do not select Create first.

Create a resource group

A resource group is a logical container in which Azure resources such as Web apps, databases, and storage accounts are deployed and managed. For example, you can choose to delete an entire resource group later in a simple step.

Next to Resource group, select New.

Name the resource group Myresourcegroup, and then choose OK.

Create an app service plan

The App service plan specifies the location, size, and functionality of the WEB server farm where the app is hosted. You can save money when hosting multiple apps by configuring multiple Web apps to share a single app service plan.

App Service Plan definition:

    • Region (ex: Nordic, US East, or Southeast Asia)
    • Instance size (small, medium, Large)
    • Scale count (1 to 20 instances)
    • SKU (free, shared, basic, standard, premium)

Next to App service plan, select New.

In the Configure App Service Plan dialog box, use the settings in the table that is located behind the screen.

Set Recommended Value Description
App Service Plan Myappserviceplan The name of the app service plan.
Location Western Europe A datacenter that hosts Web apps.
Size Free The pricing tier determines the hosting capabilities.

Select OK.

Create and publish a Web app

In Web app name, type a unique app name (valid characters are a-z , 0-9 and - ), or accept the automatically generated unique name. the URL for the web App http://<app_name>.azurewebsites.net <app_name> is the Web app name.

Choose Create to start creating Azure resources.

When the wizard finishes, it publishes the ASP. NET Core Web app to Azure and launches the app in the default browser.

The Web app name specified in the Create and publish step is used as http://<app_name>.azurewebsites.net the URL prefix for the format.

Congratulations, the ASP. NET Core Web app is running in real time in Azure app service!

Update your app and redeploy

In Solution Explorer, open pages/index.cshtml.

Locate the HTML tag near the top <div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000"> and replace the entire element with the following code:

HTML Replication
<div class="jumbotron">    <h1>ASP.NET in Azure!</h1> <p class="lead">This is a simple app that we’ve built that demonstrates how to deploy a .NET app to Azure App Service.</p></div>

To redeploy to Azure, right-click the Myfirstazurewebapp project in Solution Explorer and choose Publish.

In the publishing page, select Publish.

When the publication is complete, Visual Studio launches the browser and goes to the URL of the Web app.

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.