What Is?

What Is Azure DevOps?

Azure DevOps is Microsoft’s offering for companies to conduct modern software development with continuous integration/continuous deployment (CI/CD) and a dash of project management.

 

In terms of web interface, Azure DevOps is more reminiscent of its competitor GitLab than GitHub, probably due to the vertical main menu bar on the left.

 

Azure DevOps evolved from Microsoft Visual Studio Team Services (VSTS), which in turn was the successor to Visual Studio Online. These two predecessor products were actually only known to die-hard Microsoft users who practiced software development in Microsoft Visual Studio. With Microsoft’s move to the cloud and the Microsoft Azure platform, this limited audience is changing somewhat since Microsoft Azure is also interesting for customers who don’t rely on Microsoft for an operating system.

 

Azure Cloud versus Azure DevOps: The naming and pricing policies of Microsoft’s cloud offerings aren’t always easy to understand. With a free Azure DevOps account, you can currently create an unlimited number of Git repositories and also create and run pipelines. If your project isn’t open source, you’re limited with regard to automatic test runs. To use other services from the Azure Cloud (for example, Kubernetes or the container registry), you must submit your credit card details. Billing depends on the individual services.

 

First Project in Microsoft Azure DevOps

 

Trying Out Azure DevOps

Compared to GitHub and GitLab, Azure DevOps wants to score with (even) more team functions, as shown in the prominent placement of agile tools, such as Kanban boards, backlogs, and sprint planning in the web interface. In this section, we’ll show you a workflow with Azure DevOps using a simple Node.js project.

 

Using our Microsoft account, the first step is to create a new project in the web interface at https://dev.azure.com/. Then, we’ll import a Node.js example from GitHub. For this task, we’ll simply specify the GitHub URL when importing, and the code is imported. An interesting difference from GitHub and GitLab becomes apparent upon closer inspection: An Azure DevOps project isn’t limited to a Git repository, which is also evident when cloning our repository. Use the following command to clone a repository via SSH:

 

git clone git@ssh.dev.azure.com:v3/git-compendium/simple-picturedb/

simple-picture-db

 

In this case, the first simple-picture-db denotes the project, and the second stands for the Git repository of the same name. Azure DevOps additionally provides a convenient way to clone a Git repository directly in the integrated development environment (IDE) of your choice: Behind the dropdown button with the default setting Clone in VS Code, other common IDEs can be accessed, such as Android Studio, IntelliJ IDEA, WebStorm, or PyCharm. Our tests with VS Code worked fine (even on Linux), whereas the other options may rely on an installed version of Visual Studio.

 

Option to Clone with an IDE in Azure DevOps

 

Pipelines are created and edited directly in the browser. First, you’ll select the source code, and in Azure DevOps, this selection isn’t limited to your own Git repository. You can also tap into sources from Git hosts.

 

Selecting the Source Code Repository for a New Azure DevOps Pipeline

 

A convenient feature for newcomers to the pipeline business is the selection of predefined actions. You can choose from many tasks for different programming languages.

 

YAML File and Other Possible Tasks for an Azure DevOps Pipeline

 

As a final point in the short Azure DevOps demonstration, we’ll walk through the lifecycle of a work item. First, create an issue in the To-Do board. The requirement is that frontend code of our application should be organized into separate HTML, CSS, and JavaScript files. When creating the issue element, you can create a branch for development right away by using frontend-code-splitup. When we now call git pull on our computer in the cloned directory, a new branch is created following the remote frontend-code-splitup.

 

You could have accomplished the same thing by first creating the branch locally and pushing it after making changes to the source code, for example, with the following commands:

7

git checkout -b frontend-code-splitup

# change code ...

git add .

git commit -m "fix: split up frontend code (see #1)"

git push --set-upstream frontend-code-splitup

 

Once you push the changed branch, you’ll see a notice in the web interface indicating that we can now create a pull request from the changes. Unlike in GitLab and GitHub, this notice won’t be displayed in the console after the push. Microsoft probably assumes that Azure DevOps users won’t have as much contact with the command line but rather use Git integrated in an IDE.

 

Final Step in Accepting a Pull Request

 

Test Plans

An important aspect of CI/CD pipelines is automated testing. The concept behind this feature is that, if the source code has an extremely high coverage with tests, shipping a new version won’t cause any problems and can be done automatically (provided the tests are all green).

 

Azure DevOps dedicates a separate menu item in the web interface to testing, namely, Test Plans. You can’t get started with test plans until you either provide your credit card details or activate the free trial month. (You can access these settings via Organization Settings > Billing > Basic + Test Plans at the bottom level of Azure DevOps, https://dev.azure.com/). Test runs can be performed on different hardware and for web applications also with different browsers. Microsoft needs to be paid for the computing power to be applied.

 

The configuration Microsoft provides for test plans is rather complex, to say the least. You’ll need to create test plans, which in turn are assigned to individual issues and can be performed by members of your team and then assessed positively or negatively. Describing all these tasks would take us too far away from Git, but we recommend the following tutorial at Azure DevOps Labs if you’re interested: https://azuredevopslabs.com/labs/azuredevops/testmanagement

 

Conclusion

If you already use Azure Cloud Services anyway, Azure DevOps is certainly a good place for your Git repositories. Integrated project management with agile techniques can be the all-round, carefree package for many companies. Presumably, your corporate credit card is already on file with Microsoft, and the additional cost won’t create any additional work for your accounting department.

 

On the other hand, if you choose a Git host without a Microsoft background, Azure DevOps probably won’t be your first choice. Both GitLab and GitHub offer solutions that don’t require tight integration with a Microsoft account and provide the full package with CI pipelines and actions, respectively. For a leaner system (without integrated CI/CD), a particularly good choice is Gitea.

 

Editor’s note: This post has been adapted from a section of the book Git: Project Management for Developers and DevOps Teams by Bernd Öggl and Michael Kofler.

Recommendation

Git: Project Management for Developers and DevOps Teams
Git: Project Management for Developers and DevOps Teams

Get started with Git—today! Walk through installation and explore the variety of development environments available. Understand the concepts that underpin Git’s workflows, from branching to commits, and see how to use major platforms, like GitHub. Learn the ins and outs of working with Git for day-to-day development. Get your versioning under control!

Learn More
Rheinwerk Computing
by Rheinwerk Computing

Rheinwerk Computing is an imprint of Rheinwerk Publishing and publishes books by leading experts in the fields of programming, administration, security, analytics, and more.

Comments