In this article, you will learn how to deploy a GitHub source to Azure, using Azure App Services.
Introduction
Azure App Service supports deploying our GitHub source into the Azure Cloud. This article helps you to learn about how to add your existing project into your GitHub repository and deploy it in Azure, using Azure App Services.
Prerequisites
This article falls into the steps given below.
Step 1
Open Visual Studio file->Project-> From the installed template, choose .NET Core -> ASP.NET Core Web Application. I named the project as MyCoreAPI, as shown below.
The new ASP.NET Core project will be opened. Let’s create one new API.
Right click on Project and create one model folder.
Right click on the newly created model folder, followed by adding Class and name it as TechnoloyList.cs
Right click on controller folder, Add->Controller, select the minimal dependency and an empty API template, name it as TechnologiesController.cs, as shown below.
From the above Controller, it is obvious that we will get a list of technologies from the GetTechnology() action.
Let's test our API, using POSTMAN Tool.
Step 3
Go to File->Add to Source control or in right bottom, you can Add to Source control in Visual Studio, as shown below. Click it and it will open a Team Explore.
Login to your Azure portal (https//portal.azure.com). If you are new to Azure Web app Service, click here to learn more.
Create a new Web app, as shown below. Click Web App and Create. Name the Web app. In my case, I named it as kendoControlDemo. Choose your subscription, resource group and plan. Once all the settings are done, click Create.
The Web app deployment process starts.
Once the deployment completes, just click App Service from the menu, which will list out the number of app Services; which you created. Click the recently created kendoControlDemo app, as shown below.
Azure Book