Azure Pipelines

Azure DevOps allows you to Continuously build, test, and deploy to any platform and cloud. With Azure DevOps gives you 1,800 free minutes for CI / CD (30 hours per month)

If your project is open source (public Git repo on any Git Service), you get 10 free parallel pipelines per month.

To get started with Azure Pipelines I used to create a project within Azure DevOps for this walk-through I selected the PartsUnlimited Template. This project is a .Net core application and uses the scrum Azure Board type, full source code can be found on GitHub here –

From there I cloned the repo locally and made sure I can run it locally – always a good first step in my opinion.

Now I wish to create a build pipeline so here are the steps I carried out to first of all create a new build pipeline:-

  • Click on Builds under Pipelines on the left hand menu
  • Click New, then select new Build Pipeline
  • I then chose use the visual designer (easier than using yaml in my opinion) as below:-

  • Select Azure Repos Git
  • Select Azure Repos Git and Master branch
  • Choose Azure Web App for ASP.NET and then select Apply
  • Within Tasks I normally delete the Azure App Service Deploy Task (right-click on it remove selected task)
  • You should have something that resembles the screen shot below: –

  • Once your happy with the settings select Save and Queue (If its grayed out you’ve missed a setting – normally in red)
  • Build succeeded and you just created your first Azure DevOps Build – congrats!

After that its time to experiment with other types of projects and build’s, one way to do this is to look at samples and play with them and look at what’s possible. A great resource for doing this is again using the generator, this time lets use the SmartHotel360 app,  like so: –

  • Click Create project and let that install
  • Once Installed select the Pipelines icon and then choose Builds

  • Now choose Edit and you can see the way this build has been constructed

  • From here you can view the actions and see what each of them is doing
  • Once you have had a look at each step, Click Queue to queue a new build

Read more on Azure Pipelines here: –