Loading...

Automating code deployment with Github and Azure

View: 278    Dowload: 0   Comment: 0   Post by: admin   Category: Visual studio & .NET   Fields: Other

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.

  1. Open Visual Studio and go to File -> New Project -> Visual C# -> Web then choose ASP.NET Core application (.Net Core Framework).       1
  2. Choose the Web Application template 2
  3. Let's make some changes in Index.chtml file (Views/Home/Index.cshtml)3

Uploading the project to GitHub

Now let's create new GitHub repository to upload our project.

  1. Go to Github and create new repository4
  2. Open the command line and go to the project directory
  3. Type git init
  4. then, git add . to add all the project files
  5. git commit -m "First commit"
  6. git remote add origin https://github.com/saibimajdi/GithubAzure.git (change it to your repository)
  7. 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.

Creating Azure Web Application

Now we should create an Azure Web Application to host our project.

  1. Go to http://portal.azure.com and create new Azure Web App.5
  2. Now let's give it a name and fill out the form and click the Create button6
  3. Wait until Azure completing the creation of our application
  4. Go to Deployment Options 7
  5. Choose Github as a source, you can choose any other source such as One DriveDropbox or Bitbucket.8
  6. Authorize Azure to use your Github account by entering your Github account credentials9
  7. Choose the project repository10
  8. Choose the branch, in this case we have only one branch (master)11
  9. Now Azure is building your project to deploy it1213

Voilà, our application has been deplyed in Azure automatically from our Github repository, every time we make new commit to our repository, Azure will take the latest version from the master branch and deploy it.

14

Check out the video to understand more about automating code deployment with Github and Azure.

https://www.youtube.com/watch?v=xSefzQ-RvFs&feature=youtu.be

 That's all for this article, I wish that you have learned something new. Feel free to contact me if there is any questions.  

Automating code deployment with Github and Azure

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

Posted on 02-05-2018 

Comment:

To comment you must be logged in members.

Files with category

  • Pharmacy/Chemist POS and Invoicing Software

    Pharmacy/Chemist POS and Invoicing Software

    View: 144    Download: 14   Comment: 0

    Category: Visual studio & .NET     Fields: none

    Pharmacy POS /Chemist Management System allows User to sell medicine , Over the counter or at any Hospital, Easily Integrated with Email to SEND invoices and Print Receipt. This is one of my very best Project i Decided to Share with you Guys ...

  • Computer-Based Inventory Management System in VB.net

    Computer-Based Inventory Management System in VB.net

    View: 117    Download: 9   Comment: 0

    Category: Visual studio & .NET     Fields: none

    This is a project entitled Computer-Based Inventory Management System written in Vb.net and Microsoft access database for Surigao Doctors College. The system has the following features: - Cataloging - Inventory - Circulation - Borrow - Return - View...

  • Salary Management System

    Salary Management System

    View: 154    Download: 12   Comment: 0

    Category: Visual studio & .NET     Fields: none

    Introduction: ----------------- *This project is based on accounts concept. *Salary Management System is a DataBase system which can be used for managing employee Salary Details. *It is a multi-user system and can be used by hundreds of user at the...

  • New Print-maker Cyber Cafe

    New Print-maker Cyber Cafe

    View: 98    Download: 1   Comment: 0

    Category: Visual studio & .NET     Fields: none

    New Printmaker Cyber Cafe ------------------------- Before you run this project, please set the following date format “dd/MM/yyyy” to your computer. Introduction: -------------- The purpose of developing this software project is to fully automate...

  • Folder Locker 7.0

    Folder Locker 7.0

    View: 178    Download: 3   Comment: 0

    Category: Visual studio & .NET     Fields: none

    Folder Lock is great security app that lets you password-protect files, folders and drives; encrypt your important files on-the-fly, backup files in real-time, protect portable drives, shred files & drives and clean history. Folder Lock can...

  • Bakeshop Inventory System in VB.Net and MS Access Database

    Bakeshop Inventory System in VB.Net and MS Access Database

    View: 191    Download: 9   Comment: 0

    Category: Visual studio & .NET     Fields: none

    Bakeshop Inventory System is a software based system especially designed for a Bakeshop business and for the inventory process. This system will be able to track the daily, weekly, monthly and yearly inventory of products. In this way, the staff can...

  • Bezier Curve Machine Learning Demonstration

    Bezier Curve Machine Learning Demonstration

    View: 83    Download: 0   Comment: 0

    Category: Visual studio & .NET     Fields: Other

    I enjoy working with longitudinal data. This is the second article in a series about using Bezier curves to smooth large data point fluctuations and improve the visibility of the patterns unfolding. This current article focuses on using machine...

  • Basic Library Management System

    Basic Library Management System

    View: 148    Download: 4   Comment: 0

    Category: Visual studio & .NET     Fields: none

    Library System is designed to store students (borrowers) info and their individual file in an institution regarding on the library transactions. This system is a user-friendly program able to print reports, view students’ file or transactions in the...

 
File suggestion for you
Loading...
File top downloads
Loading...
Loading...
Codetitle - library source code to share, download the file to the community
Copyright © 2018. All rights reserved. codetitle Develope by Vinagon .Ltd