In this article, we will explore Azure App Service and understand how to configure it using the Azure Portal. We will also deploy a sample ASP.NET Core application to Azure App Service using Visual Studio.

Agenda

What is Azure App Service?

Azure App Service is fully managed. platform as a service (PaaS) offering provided by Microsoft. It allows developers to build, deploy, and scale web applications, REST APIs, and backend services without managing the infrastructure.

With Azure App Service, you do not need to worry about:

Microsoft manages all of these at the platform level.

Key Features of Azure App Service

Difference between Azure App Service and Azure Virtual Machine

FeatureAzure App ServiceAzure Virtual Machine
Service ModelPaaS (Platform as a Service)IaaS (Infrastructure as a Service)
Server ManagementManaged by MicrosoftManaged by User
OS AccessNo direct accessFull access
ScalingAutomaticManual (or configured manually)
MaintenanceManaged by MicrosoftUser responsibility
Deployment SpeedFasterSlower
Cost ManagementOptimized for appsDepends on VM size & usage

Simple Explanation

When to Choose What?

How to configure Azure App Service in the Azure Portal

Step 1: Login to Azure Portal

Go to https://portal.azure.com
Sign in with your Azure credentials.

Step 2: Create a Web App

  1. Click Create a resource

  2. Select Web App

  3. Click Create

This will create an instance of Azure App Service.

S1

Step 3: Configure Basic Settings

Fill in the required details:

s2

Deployment will take 1–2 minutes.

Step 4: After Deployment

On the Overview page, look for:

Default domain:
https://myappdemo123.azurewebsites.net

Click it.

You should see the default Azure App Service page.

s4s5

Deploying ASP.NET Core Application to Azure App Service Using Visual Studio

Step 1: Open Your Project

  1. Open Visual Studio 2022

  2. Open your ASP.NET Core project

  3. Make sure the project builds successfully

Step 2: Right-Click → Publish

  1. In Solution Explorer

  2. Right-click on the project

  3. Click Publish

s7

Step 3: Choose Publish Target

In the Publish dialog:

  1. Select Azure

  2. Select Azure App Service (Windows)

  3. Click Next

Step 4: Select Existing App Service

  1. Choose Select Existing

  2. Click Next

  3. Sign in to Azure (if not already signed in)

  4. Select:

    • Subscription

    • Resource Group

    • Your App Service (e.g., myappdemo123)

  5. Click Finish

Visual Studio will create a publish profile automatically.

s10

Step 5: Click Publish

Click the Publish button.

Visual Studio will:

s11

Conclusion

In this article, we explored how to create and configure an Azure App Service using the Azure Portal and deploy an ASP.NET Core application using Visual Studio 2022.

We covered:

Azure App Service simplifies cloud hosting by eliminating the need to manage servers, operating systems, and infrastructure. It allows developers to focus entirely on writing and deploying application code.

Thank you so much for reading this article. Happy coding!!