Today we are going to learn how to deploy an ASP.NET Core application in Azure automatically from a Github repository.

Requirements
- Git installed + GitHub account
- Visual Studio 2015 Update 4 or higher (DotNet Core installed)
- Azure Subscription (create a free Azure account)
Creating an ASP.NET Core application
Let’s create a simple ASP.NET Core app using Visual Studio so we can deploy it in Azure.
- Open Visual Studio and go to File-> New Project -> Visual C# -> Web then choose NET Core application (.Net Core Framework).

- Choose the Web Application template

- Let’s make some changes in chtmlfile (Views/Home/Index.cshtml)

Uploading the project to GitHub
Now let’s create a new GitHub repository to upload our project.
- Go to Github and create new repository

- Open the command line and go to the project directory
- Type git init
- then, git add .to add all the project files
- git commit -m “First commit”
- git remote add origin https://github.com/saibimajdi/GithubAzure.git(change it to your repository)
- git push -u origin master
Now our project has been uploaded to GitHub. You can refresh the the repository page to check if the project has been uploaded successfully.











Join the conversation! Your thoughts help the community grow.