Skip to main content

Posts

Showing posts from October, 2019

Azure DevOps REST API with Python

Working within the UI on Azure DevOps is great, but I prefer some code to get the job done. Working with a REST API allows you the ability to interact with Azure DevOps within your application.

At the time of writing, the Azure DevOps REST API is on version 5.1.

Pre-requisites: 1. Pycharm or VSCode. 2. An Azure DevOps account. 3. A PAT token (admin rights to Azure DevOps required).

The first thing we want to do is take a look at the REST API itself. Head over to https://docs.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-5.1


If you take a look on the left side, you'll see multiple pieces of documentation. You can interact with Azure DevOps via any of those API's. Today we're going to focus on the Build API.
https://docs.microsoft.com/en-us/rest/api/azure/devops/build/builds?view=azure-devops-rest-5.1
If you click on the link above, you'll see a few different operations. The first piece of code we're going to write is for retrieving the builds. Thi…

Why haven't I been posting?

Hi everyone! I know it's been a little over a month that I haven't posted. Why you may ask? Well I was writing a book that I just published today! It's been taking up a ton of my time and I haven't been doing writing outside of that. If you're interested, please check it out. It's a book about DevOps tooling in the Microsoft realm.


https://leanpub.com/devopsrecipeswithazure