Introduction
In this article, I’m going to show a demo of how we can deploy our Asp.Net 8 MVC Application into Azure App Services. In this demo, I create a simple ready-to-use MVC Project and then deploy it on App Services. There are many ways to deploy the .net app on Azure app services but in this article, I’ll publish it with the default publish option provided by Visual Studio. First, we create app services from the Azure portal and then add that created app service in our project publish setting.

What is App Service?
Azure App Service is an HTTP-based service for hosting web applications, REST APIs, and mobile backends. You can develop in your favorite language, be it .NET, .NET Core, Java, Node.js, PHP, and Python. Applications run and scale with ease on both Windows and Linux-based environments.
App Service adds the power of Microsoft Azure to your application, such as security, load balancing, autoscaling, and automated management. Additionally, you can take advantage of its DevOps capabilities, such as continuous deployment from Azure DevOps, GitHub, Docker Hub, and other sources, package management, staging environments, custom domain, and TLS/SSL certificates.
Read more on Microsoft’s Official Documentation.
Create Asp.Net 8 MVC Application
As you can see below screenshot I have created a simple asp.net 8 MVC Application and just added an extra paragraph tag to show information. All other things are the same as it was created.

While running this project the output will look like below.

Create Azure App Service
Logged into your Azure Portal. https://portal.azure.com/.
Generally, on the home screen, it will give the option to create App Services as you can see in the below image.

If you are not getting this option you can simply search App Services in the given search box at the top.

When you go into App Services you can see all the list of services created. You can create new App Services from the given Create Button. There are multiple options like Web App, Web App + Database, Static Web App, and WordPress on App Services. For this, I will select a simple Web App.

In the next step, you have to specify some details regarding your project like.
- Subscription: Select you subscription under which you want to create this app service. If you have multiple subscriptions in your account select accordingly. If you have only one subscription it will selected by default.
- Resource Group: A resource group is simply a group in which all your resources will be assigned. By adding your resource to the resource group you can apply policies and permission to all the resources. If there is no group created then create a new one by clicking on the Create New button. It will just ask for the Name of the group.
- Name of App Service: Provider name of your app service. This name will be used as your domain name. Make sure this name is unique.
- Publish: Specify how you want to publish your project. Here I select code that means I will upload my code later.
- Runtime Stack: Specify the technology in which you have created your project. In this case, I have created a project with .Net 8 so I have selected that.
- Operating System: Select in which Operating System you want to host your App Service Linux or Windows. Here I select Windows you can select Linux also.
- Region: Select the region where you want to deploy your application.
- Windows Plan: Select Windows plan from available App Service Plans which are filtered based on your region and operating system selection.
- Pricing Plan: Select your pricing plan. Here I select the plan that is free to use. If you have a project which have multiple users select your pricing plan based on that.


These are the basic details required to create an app service. There are other settings also like database, deployment, networking, etc. You can directly click on the Review + Create button to create your app service or add other configurations.
Database
For this demo, there is no need for a database so I will not configure any database with this app service. If you want you can configure it from the database tab.




















Comments
Join the conversation! Your thoughts help the community grow.