We are going to deploy a GitHub repo to Azure App Service and configure CI/CD for that repo through the Azure CLI 2.0 so if you’re not aware of the Azure CLI 2.0, I will request you to go to my previous blog posts here and here.
First, we will list down all the steps required for it. The steps are as follows:
Create a Resource Group
We will create a resource group with the name githubdemorg and host it in location EASTUS
az group create –name githubdemoorg –location EASTUS

Create an App Service Plan
An App Service Plan is to define the size, location, scale count, and sku of the app where you will be hosting it.
az appservice plan create –name githubdemplan –resource-group githubdemoorg –sku FREE

Create a Web App
We will create a new web app with the following command.
az appservice web create –name githubdemoag –resource-group githubdemorg –plan githubdemoplan

Create a Git repo in Github
If you’re not familiar with github, just follow the steps.
- Go to Github.com and Signup/login with your Credentials
- Click on Start a project

- Create a new repository by passing a repo name and description and make your Repo as public. Also, make sure that you didn’t check the Initialize this repository with a README if you’re not familiar with github and blindly follow this demo.

Go to your code directory and open a new instance of the command prompt for the git command and follow the new or existing repository on the command line according to the requirement.
For us, we did the new repository in the demo. Let me quickly walk through the commands.
git init
It’s going to initiate a new blank repository in your local











Join the conversation! Your thoughts help the community grow.