Most Important and Key Features in Azure DevOps

What’s Covered Here?

This article covers some of the most important and key features in Azure DevOps that are critical to know in any production environment. This is not a fundamental Azure DevOps tutorial and readers are assumed to have introductory knowledge on Azure DevOps though it will cover a basic introduction to start with.

If you are new to Azure DevOps then I recommend going through Microsoft learn https://docs.microsoft.com/en-us/learn/certifications/devops-engineer which covers Azure DevOps in great detail. You can also go through tons of youtube channels covering detailed tutorials. Click this to visit the official Azure DevOps channel.

Azure DevOps – Introduction

DevOps is all about reducing wastage and automating all redundant and repeating activities from the software development lifecycle. Idea is that teams focus on what’s important and adding more value rather than spending time on activities that are repeating and low valued. Also, DevOps is about unifying Development, Testing , Operations and Business folks into a single team and making everyone equally responsible right from the start. This again helps in reducing the waste by eliminating cycles of rework and keeping everyone involved to avoid last minute changes. DevOps and Agile processes goes hand in hand and in a way the birth of Agile led to the birth of DevOps. Its also important to understand that DevOps is not an end goal but a continuous process to improve ways of working. To reduce waste and add better value, DevOps teams leverage available automation tools and procedures catering to different needs in SDLC.

In all the available products, Azure DevOps is one of the most extensive and complete product available in the market today. With Azure DevOps, Microsoft has unified multiple products and services catering to different automation requirements into a single product. It is way ahead of its competitors since there aren’t many in the market providing end to end DevOps solution spanning all SDLC phases. With Azure DevOps we get the following key features and services:

Azure DevOps ServiceFunctionality
Azure BoardsA. Boards provide Project Management capabilities where we configure the work process or methodology and setup all the project work and backlog.

B. There are multiple work processes available including Agile, Scrum, CMMI and Basic and according to the selection, respective templates are made available in Azure Boards.

C. For Agile and Scrum processes, Azure DevOps provides capabilities like:
– Set up of Product Backlog, Epics, scrum teams, stories, tasks etc. Also, we can create new templates for these if default templates doesn’t fit our project needs.
– We can setup Scrum Boards for all teams and manage our sprints visually.
– We also have capabilities of managing search Queries to search/filter work items.

D. We have tons of extensions available in Visual Studio Market Place to further enhance the Boards functionality as well.
Azure RepositoriesA. Azure DevOps provides a version control system where it support for both Team Foundation Version Control (TFVC) as well as for Git version control systems.
TFVC is based on Microsoft’s Team Foundation Server and is a centralized version control management system. It is tightly coupled with Microsoft Visual Studio IDE where teams connect IDE to TFVC and retrieve the source code in their local machine’s workspace. Once ready with code changes , they can commit the code back to TFVC through Visual Studio. Version management only happens in Azure DevOps TFVC repository.
Git is a distributed version control system where Azure DevOps host Git repository and developers also have their own Git version system in their machines. Developers starts by cloning the Repo from Azure DevOps and then work independently with their local Git version management. In order to do work, developers create their own local branches and once ready commit them back to Azure DevOps Git repository. This is generally managed using Pull Requests to merge code back to main branch but there are other options available as well.

B. Azure DevOps also provides an option to connect to other third party Git systems like GitHub , Bitbucket etc. This is beneficial if organizations and teams have past investments in these products so that they can continue to use them with Azure DevOps.
Azure ArtifactsA. Azure Artifact is a package and dependency management service. It is similar in functionality as Nuget, NPM etc. Using this service we can manage third party and open source dependencies in one central location. With Azure artifacts, we can either create our own custom feed OR we can connect to other external feeds like Nuget, Maven, NPM etc and keep all dependencies in one single place in Azure DevOps.

B. In large enterprises there are central teams managing their own in-house software packages that are used across by all teams. Azure Artifacts can be a great choice here to host our own custom feed which can then be connected by all Projects and Teams in their development environment and retrieve & use them.

C. We also get version management capability for the artifacts.
Azure PipelinesA. Pipelines is the most fundamental and core service provided by Azure DevOps and we can consider it to be the primary reason of the existence of Azure DevOps. Pipelines are to automate the entire Build and Release process of a given software system ie these are used for continuous integration and continuous deployment (CICD) automation.

B. With Azure Pipelines we can either implement Build and Release pipelines separately OR we can also have single Multi-staged pipeline taking care of entire Build as well as Release process.

C. Apart from product build and deployment, Build and Release processes also include things like Static Code Analysis, Security Testing, Penetration Testing , UI Test Automation and much more. These capabilities are not built-in in Azure DevOps and are generally provided by third-party vendors. Azure DevOps provides a large set of Extensions exposed by these vendors for integration within pipelines. Vendors publish these extensions in Visual Studio Market Place ( https://marketplace.visualstudio.com/ )

D. Azure Pipelines provide two approaches to implement our CICD process.

GUI based pipelines – this is an older approach still available in Azure DevOps where pipelines are implemented using GUI based tasks. This still works but is not a recommended approach anymore. This is not very flexible when compared to the new YAML standard.

YAML based pipelines – YAML is an open data serialization standard and is a super set of JSON. Azure DevOps now support implementing multi-stage pipelines using YAML where we can use a single pipeline for entire build and release process and for all environments.
As an example, each stage in the pipeline can release software to individual environment like Dev/Test/UAT/PROD which can be set as automatic or manually controlled.

The advantage of YAML pipelines is that now we can manage our Infrastructure and Pipelines as a code which can then be managed in version control system. This provides much better control to DevOps teams. This being a key aspect, more will be discussed on this in the below sections.
To learn more on YAML follow Microsoft learning site OR can have a look at this link –https://learnxinyminutes.com/docs/yaml/
Azure Test PlansIn DevOps world, idea is to automate all redundant or repeating activities and this include Unit Tests , UI automation Tests, Integration tests etc. This can all be taken cared with Build and Release process but there is still a lot of scope in manual testing where software quality teams, Business Analysts or Product Owners can also perform exploratory and research-based testing spanning different multiple systems and products which may not get covered with automation test cases. Azure Test plans is the area where these Test cases can be managed and also integrated with Azure Boards and sprint Work Items/Bugs etc.

Azure Test Plan service can be used both for manual testing , Test Automation as well as Load Testing. It needs its own separate article and belongs more to the Quality phase of SDLC. We wont cover more on this service with this article and I will try to cover this separately. If you want more details you can refer to this blog article which covers Test Plan is a great detail. You can also refer to Microsoft Learn for the same.

https://www.modernrequirements.com/blogs/documenting-azure-devops-test-plans/
Azure DevOps DashboardA. Azure DevOps Dashboard is not considered a separate service but it adds a lot of power to the overall product line. It provides visual reporting capabilities in Azure DevOps and reporting can include any kind of information important for teams and organizations to keep a check on project delivery. Management can keep a check on Teams and Programs using Dashboard widgets (Azure DevOps Extensions)

B. Visual Studio market place provides large number of Extensions for Azure DevOps Dashboard which can be integrated to enhance the functionality of Azure Devops. A lot of DevOps extensions used in Azure Pipelines also add a widget in Dashboard for reporting.
We have extensions to –
– Visualize ongoing and planned work including sprint velocity, track self-assigned work, keep a check on delivery dates and much more.
– Report on code quality issues, code security issues , Test results etc

C. At the end of the blog, I will be covering list of all key extensions that most projects may need to have in their Azure DevOps organization.

Let’s dive into Key Features

OK, enough of fundamentals and let’s get to the crux. Below is the list of key features in Azure DevOps categorized according to their scope. These will be explained in order. With each item, effective reasoning will also be provided where ever applicable and important.

Scope – Azure DevOps Organization


Scope – Azure DevOps Project


Scope – Azure DevOps Pipelines

Azure DevOps Organization Key Features

1. How to connect Azure DevOps with Azure Active Directory

In an enterprise using Azure DevOps, the very first step is to create an Azure DevOps organization. This organization acts as a parent entity and represents the actual physical organization in Azure. Once the organization is in place, DevOps team needs to add all Users, Groups and Permissions at the DevOps organization level. These users (organization employees or partner users), groups and permissions apply globally at the organization level and later becomes available when projects are created under this Organization. To start with the process, we get these users and groups from Azure Active Directory.

Reasoning – Azure DevOps Organization will have Projects , Repositories , Pipelines and other services which will be managed by our organization employees such as Administrator , Developers, Testers, BAs, Product Owners etc. Enterprises maintain their employee base (users), groups, domains, systems and applications in some sort of directory service. In Microsoft platform directory service used is Active Directory Domain Services for On-Premise systems and Azure Active Directory (AAD) for Azure cloud environment. In order to get these enterprise users and groups in Azure DevOps, we need to connect Azure DevOps organization with Azure AD. If a company is still using on-premise model, they would still need to have Azure AD tenant in place to sync On-premise AD with Azure AD before connecting Azure DevOps with Azure AD. Azure DevOps doesn’t provide any option to connect to On-premise AD.

How to do it –

  • As a user having Administrative permissions in Azure AD and Azure DevOps, login to Azure DevOps and move to your Azure DevOps Organization. (Assuming DevOps Organization is already created)
  • Open organization settings and you should see “Azure Active Directory
  • Open the dialog and there we should be able to see the connectivity option. Select the directory and connect.
Connect Azure DevOps with Azure AD

2. Add Users and Group Rules in Azure DevOps Organization

Once we have connected Azure DevOps with Azure AD, we should be able to search and add users and assign a correct set of permissions. To add usera at an organization level follow below steps –

Reasoning – we are adding users and groups and mapping them to correct projects and permissions. Based on these settings, these users and groups will be available at the Projects level and this helps in better control and added to project level security where only the relevant users have access to projects.

How to do it –

  • As a user having Administrative permissions in Azure DevOps, login and move to your Azure DevOps Organization.
  • Open organization settings and you should see “Users” sub-menu.
  • Open the dialog and we should be able to see options to add users. Users are searched from Azure Active Directory since it is now already connected.
  • In order to add external users to the DevOps organization, Azure AD Admin must first send invites to these external users to register their emails as Microsoft accounts and get them added as guest users. Once done we should be able to search these guest users in DevOps and add them as well. (Doing vice versa also works but without first adding guest users in Azure AD, they won’t be able to login to Azure DevOps Organization). Users will only be able to login to Azure DevOps if they are registered with Azure AD tenant.
  • Have a look at the screenshot below for reference, we have searched and added one user and have given them access to multiple projects as Project Administrators. (Projects are assumed to be already created by Azure DevOps Admin/ Project Collection Administrator which should be simple stuff)

Add New Users in DevOps Organization

On same lines, we can add Group Users as well and can map multiple users to the group. This can be more manageable when compared to adding users individually.

Add Group Rules in Azure DevOps Organization

3. How to add custom groups in Azure DevOps organization

In the above section we created group rules where we added a Azure AD group and users and controlled Project access level. Under Organization Permission settings, we have an option to assign fine grained permissions to default or custom DevOps groups. Permissions are assigned to have just right level of control on the Projects and the underlying services (Boards, Repositories, Pipelines , Test Plans ,Processes). If default Azure DevOps groups are not meeting our needs then we can also create customer groups in this screen and map users to them.

**Groups added here are not from Azure AD but these are a custom set of Groups which can be created.

Reasoning – Navigating to DevOps Organization — Settings — Security — Permissions section, we should see the default set of groups available with Azure DevOps. As an example we have a default group called “Project Administrators” and all users belonging to this group have full control on entire organization which is not something we would like to give to our employees in general. But there may be a need where we want to add employees as Project Administrators but without permission to delete the Builds/Boards/Repositories etc. This is a specific requirement and we can achieve this by adding a new group with correct set of permissions.

How to do it –

  • Login to Azure DevOps as an Administrator/Project collection administrator and open organization settings.
  • Move to Security–Permissions and this will open Groups/Users dialog.
  • Add a new group as shown below – here we are adding a Controlled-Admin with limited admin permissions.
  • After adding the group, open it and set its permissions as shown below.
  • Map appropriate users to the group in the same section.
Custom Groups in DevOps Organization.
Permissions UI in Azure DevOps organization

4. How Users can Opt-out from receiving Email Notifications for a particular activity in Azure DevOps.

Under Azure DevOps organization, we have global notification settings where it shows the list of all notifications available. As an example, there are notifications for Build success/failure, Pull Request Changes etc. Once Projects are added to this organization, all these notifications are inherited at the project level as well which can be seen under Project Settings as well. In general, no teams would like to get flooded with emails for all kinds of activities in Azure DevOps and would like to keep the notification system simple with a limited set of emails for most important actions and tasks.

If we want to disable a specific notification at a global level then Azure DevOps has an option for it as shown below. This setting disables the notification for all the DevOps projects later added to this Organization which may not be a very flexible approach.

Reasoning – In a project team we have people with different roles like developers, testers, BAs, Product Owners, Release Approver, Project Managers etc. At times, all of them would not like to receive the notifications on day to day development activities like builds/ Pull requests / Test Results etc. If that’s the case then this option can be used for opting out of notification system at a user level. Below we will see notification settings at all levels for more understanding.

How to do it –

Disable Global Notifications in Azure DevOps

Moving to a specific DevOps Project Settings, again there is an option to enable/disable a notifications at each individual team level (Teams are kind of Groups only in DevOps Projects). Based on the number of Teams added to the Project, we can enable/disable notifications at the Team level. In most scenarios, this can work fine. Below we have WebDevelopment Team selected in the breadcrumb section. We can change team and control the notifications behavior for all teams in here.

Disable Notifications in Azure DevOps Project

If we further want fine-grain control at a user level and want to disable a specific notification for an individual user, that can also be done by moving to User Profile section and disabling the notification at an individual level. This wont affect other users in DevOps projects. To achieve this, go to User Profile and open Notifications dialog under it. User profile is available adjacent to Login action.

Open Notifications from here and toggle the state to disable the notification that user want to opt-out for.

Disable notifications for a user in Azure DevOps.

5. How to connect third party services in Azure DevOps Organization (Service Connections)

Any build and release pipelines in Azure DevOps project will generally have Build, Test and Deployment tasks but apart from that we also integrate our projects with various third-party products to perform additional activities before a product is pushed to production (or a higher environment). Some of the examples are below

  • Testing code quality for Design, architectural issues.
  • Checking for any security vulnerabilities in the product/software package.
  • Checking for any third party dependencies that have known issues.
  • Pushing build & release information to other integrated systems in the organization.
  • Deploying Product to Cloud Platform like Azure/AWS/GCP etc.
  • Performing Load testing with a third party product.
  • Deploying container images in Azure container Registry or DockerHub and many many more.

Reasoning and How to do it –

In order to achieve this, Azure DevOps needs to know about these products and needs to connect to them. This is achieved by first installing the extension provided by these third parties in Azure DevOps organization. These are made available in Visual Studio Market Place. This is followed by adding a Service Connections under individual DevOps Project settings. Most third party products expose their functionality to Azure DevOps by providing their Azure DevOps Tasks in Visual Studio Market Place. You should be able to see Extensions under Organization settings and the option to look for them. Azure DevOps only start showing the Build/Release tasks for these products under Project Pipelines after the extension is installed.

Extensions in Azure DevOps Organization

Once extension is installed, we need to create a Service Connection for it under the Azure DevOps Project settings. Service Connections option is available under DevOps Project settings. Clicking it opens a service connection dialog where we can search for the product we want to integrate and connect it. Every product will have its own way to connect to Azure DevOps and details are available with the Extension in Visual Studio Market place. As an example, below it shows Service Connection requirements for connecting to SonarCloud. It needs a token to connect to Azure DevOps and process to generate this token will be available in SonarCoud extension page in VS market place.

SonarCloud Service Connection in Azure DevOps Project

Finally under pipelines, we should be able to see SonarCloud tasks and use them as well.

SonarCloud Tasks

Azure DevOps Project Key Features

1. Summary of things already covered with DevOps Organization.

DevOps Projects inherit Users and their Permissions from DevOps organization settings and users will be made available at Project level according to those permissions. As an example any User or Group added in DevOps organization with Admin access on a Project will become part of Project Administrator default Group in Azure DevOps Project. Below are some of the key features that are already covered with Organization features section above.

Users and Groups Setup

  • Users – Under Project Permission settings, we should be able to see users mapped under Project level groups according to the permissions assigned to them in Organization settings. Check above for Organization Settings.
  • Groups – We should be able to see default set of Project Groups here. Also Teams added under the project are also shown under this section since technically speaking they are groups as well. We can add a new group under Project if default available groups are not suiting our permission and security requirements and similar use case was explained with Organization Features above. Same applied to Project level as well.

Using Customer Groups at Project Level

  • In the above sections we discussed on this where we can add custom groups at Organization and also at Project level to control the permissions for users more precisely. That way we don’t have to rely on default groups available in Azure DevOps. We took an example of having a controlled administrator group with all permissions except deletion of Projects/Builds/repositories etc. Have a look in above sections for more details

How to opt-out of certain notifications at project level

  • We can switch off or disable certain notifications at project level under Project Notification Settings. For more details have a look in above sections

How to connect to Third Party products and services

  • This is done by adding Service Connections under Project Settings. We took an example of adding Extension for SonarCloud under Organization settings followed by adding Service Connection under the Project. Again have a look in above sections for more details.

How to make add Branch Policies for Azure DevOps Project Repos

Projects are created under Azure DevOps organization and are a parent container for all Azure DevOps Services (Boards-Repos-Artifacts-Pipelines-Test Plans). Just like permissions are set for users to control access and making DevPps resources secured , on same lines there needs to be a check and control on project repositories as well. Repositories hold the project source code and hence is the most critical item to be controlled and made secure.

How to do it –

Repositories are made secured by controlling the access level for users and groups. This is done under Project Repository Settings (Project settings– Repository section) where we control access level and permissions for the available Project Users and Groups. We can narrow down permissions to individual tasks under the repository. Example: Branch/Tag Creation/deletion , Pull Request allowed etc.

Repository Permissions in Azure DevOps

Branch Policies – Repositories holds the source code and act as version control system which means that we will have user activities like Pull Requests (in case of Git repository), Managing Branches (in case of both Git and TFVC) and things like settings reviewers of code, direct code commit allowed or not, commit the code only after build succeeds on merged code etc. All of these aspects are related to source code validation and keeping a quality check on our source code repository. These settings are done under Project Repository Settings by enabling and adding Branch Policies. Below are more details.

Enabling Branch Policies is done under Project Repository Settings

Branch Policies in Azure DevOps Project

Below we have enabled branch policies for all branches (* icon below maps to all present and future branches in the Project repository). We are making a review of code compulsory with a minimum of three reviewers of the code before it can be committed. Also, we have enabled the linking of minimum one work item/task while creating a pull request.

Branch Policies in Azure DevOps Project

Under same branch policy screen, there is also an option for adding Build validation rule where we set the code commit rule. Below, we are mandating to have a build success check before code can be committed to any branch (in this case this rule will apply to all branches). Since build process is run using Azure pipelines, we need to select the pipeline for validating the build.

Build Policy in Azure DevOps Project

Also under the same section, we have an option to automatically add the reviewers for code reviews rather than manually assigning the reviewer while creating pull requests. This can be very handy and entire project team or specific set of team members can be added in reviewer list. Using this approach all these users gets email notification for the Pull requests and provide much better control and proactive notifications.

Reviewers Setup in Azure DevOps Project Repo

How to check Build Agent Capabilities

Agent Pool – Build Server – Build Agents – Azure pipelines runs under a context of a build server which can be Microsoft hosted or self hosted. These build servers have build agents which runs the azure pipeline jobs. In case of Microsoft hosted Agent pool we don’t have full control on the build servers capabilities and although it can handle most things but there are limitations in terms of number of parallel jobs they can run, processing power , lack of specific software and features etc. To have complete control , organizations implement their own build servers which can be made available in on-premise as physical or virtual servers or in the cloud as virtual machines. Server Admins have full access to install all necessary softwares for the build process and install build agents in the machine to register it in Agent Pool. Microsoft provides guidance over the process to install build agents for each platform in their documentation. We can also install multiple agents in the same build server. These build servers are registered in Azure DevOps before they can be used in azure pipelines.

Build agent capabilities – once our build machine is ready, build agent tools under it automatically retrieves a lot of information about the machine as name-value pairs. Things that are automatically discovered are machine name, OS and version and information of some of the major software. If a build agent is not showing some capability automatically we can manually add capability as name-value pair as well. Using this approach we can set different capabilities for individual build agents and control the pipeline runs and scope them to specific set of agents. This could be useful if we have many pipelines and applications in the same DevOps Project using same Build machine. In this case, out of the available agent pool we can assign specific capabilities to each agent (or a sub-set of agents) so that each pipeline can use separate set of agents to execute their jobs.

Note – Before running a build, Pipeline checks for the agent capabilities to see if it will be able to meet the builds task requirements or not. If all capabilities are found , only then pipeline uses that agent to run the build.

To check the capabilities of a build agent , go to Project Settings and we should be able to see Agent Pool under Pipeline settings. Select a Pool and under it specific agent and we should be able to see Capabilities tab in there.

Agent Pool GUI
Agent Pool Capabilities

Azure Pipelines Key Features

1. Advantage of using YAML based pipelines

The new YAML based approach for pipeline implementation provide much better control to DevOps teams when compared to traditional GUI pipelines.

  • Most fundamental of them is the ability to main pipelines as a code in the version control system. Pipelines can themselves be managed in Azure DevOps same or different repository or even in other version control systems. Pipelines define the infrastructure and hence it provides the capability to manage infrastructure as a code. We can reap all benefits of the version control system with things like maintaining pipeline version history, changes management, audit trail and better reuse across projects & teams etc.
  • With YAML, Pipeline itself acts as its documentation and we can further add comments in YAML code to explain each step of build.
  • Another advantage is a better reuse of common YAML templates where common shareable portions of YAML can be stored separately and then used across DevOps Projects and teams. A similar thing was also possible in GUI pipelines using Task groups but using YAML it works more seamlessly and with a greater control. As an example, with Task Groups. it may not be possible to refer to Task Group from another common DevOps project but with YAML it is possible. This will be explained below.

2. How to create cross-project reference YAML pipelines

As mentioned above, with YAML we can store common reusable stages/jobs/tasks as YAML templates either in the same Project or in a totally separate Project. Keeping them in a completely separate project has an advantage where these can be maintained by a central team and all other project teams can refer to these templates and maintain a common standard. As an example build, test and release tasks for .Net core application remains common for all projects & teams and we can separate this out in a separate YAML job in a separate repository.

Reasoning – Isolation of common templates , maintain common standard across teams and better reuse across Projects in Azure DevOps Organization.

Process to handle it – Create two separate DevOps projects with first containing the repository with only common templates and other containing the actual project with repository and build pipelines. Call the cross project YAML template from the main pipeline.

a. Common Project with Repository only containing templates – its named here as InnerSource and you can see it contains only the templates. (Need to follow Azure DevOps YAML standard to create the templates. Check this link for more YAML schema details). These templates can contain entire build or release stages or a common job or just a specific build/release task. Whats inside the template is not very important here and understanding this capability is more important.

YAML templates in a DevOps project

b. Next Step is having a separate actual Project with source code repository – Here Project is named as WebApplicationProject and it has repository with source code. Please ignore the *.yml files present here and they are not being used.

Main Azure DevOps Project Sample

C. Create a YAML pipeline under this Project and call another InnerSource Project’s *.yml files to add the necessary stages/jobs/tasks. These stages/jobs/tasks can contain any common tasks and some of them are mentioned below but opportunities are endless and depend on how artistically we want to leverage Azure DevOps. Some use cases can be –

  • .Net Core Application Build – Test – Release grouped together.
  • Calling some third party service like SonarCloud or Fortify scan etc.
  • Performing a common task like updating build number using some custom behavior.
  • Pushing build information to another integrated Release Management system.
  • Generating Release Notes using a common template etc.

See below for actual implementation, we first define the resources on which this pipeline is dependent which in this case is InnerSource repository. Finally we call azure-pipeline.yml template available in InnerSource project repository. In this case for demonstration purpose entire build is being handled inside the common template but in most cases we will use this approach for only the common set of tasks or jobs and need to initialize the parameter values before calling the common templates.

Important – if these common *.yml templates are present in the same Project, then we don’t need to define repository dependencies.

Calling YAML templates from another Azure DevOps Project

3. How to control the execution of tasks in the build pipeline

It is a simple feature but of great importance in azure pipelines. Pipelines contains tasks which run one after another or may be in parallel if they are in different jobs. In most cases, DevOps teams would like to have full control on sequence of tasks and control their flow of execution. As an example Test task should run only after the Build task of .Net application or penetration testing and scan of an application should happen only after it is released in UAT environment etc. This is controlled by defining conditions in the pipelines. Condition can evaluate to true or false and based on condition outcome the task execution can be controlled where it can either be skipped or executed.

Conditions can use built-in Microsoft defined variables or we can also use our own custom variables. Custom variables can be defined in the Variable Groups or even can be defined within the pipeline itself.

For demonstration, we are using SonarCloud task. Below it shows controlling the sonarcloud task which will run only when –

  • The previous task has succeeded AND
  • Build Reason (Microsoft defined variable) is Pull Request AND
  • Pull request-target (again Microsoft defined variable) is for the merge in the main master branch. **See the condition constraint below with the task.
SonarCloud Task with Condition

Reasoning and a possible use case – there may be a scenario where a single pipeline runs as part of CICD process as well as with a schedule like over the weekend or nightly basis. One example could be where we want to run security scans every weekend and not on the daily basis to reduce the build time. In this case Build.Reason variable can really help where we can set it to the value of Schedule ie Build.Reason = Schedule so that task only runs if pipeline is running with a schedule or else skip the task. This can provide great control to DevOps teams to use same pipeline more multiple different requirements.

4. List of Important Azure DevOps Extensions we should know

Extensions are installed at the Organization level using Visual Studio Market Place where we find the extension and then install it under Azure DevOps Organization. There are huge number of extensions that are available for Azure DevOps and below are some of the most important once that help extend the Azure DevOps Functionalities and support Projects Delivery. Extensions once installed add their build tasks which can then be used in Azure pipelines under the Projects.

Below are some of the most useful ones and are explained at a high level only. If you want detailed information on these extensions please visit this article.

A. SonarCloud – SonarCloud is a cloud hosted version of SonarQube and this product is used for static code analysis. It scans the source code for Design, architectural, security , code smells and few other quality issues. Post scan it provides a details project report in SonarCloud website with details of each and every file and code areas that needs improvement. This is great way to maintain code quality and keep technical debt at rest and at the same time keeping code compliant with the industry standards and specifications. Before using the task we need to setup and configure project and quality gates in sonarcloud website and connect it to Azure DevOps Project using a Service Connect. (***This is applicable to most DevOps Extensions, but not all)

SonarCloud Extension

B. Sonarqube – if we want to use self hosted server based version of SonarQube then we can use this extension. This provide similar set of features as SonarCloud but in this case SonarQube server is first implemented in an enterprise followed by connecting it to Azure DevOps organization. Reports are published in SonarQube server which can then be browsed using Organization’s intranet and SonarQube server URL.

SonarQube Extension

C. OWASP ZAP – this extension is available to scan the code for OWASP web application standards and post scan provides a report in the Azure DevOps Dashboard with the list of issues in the web applications like XSS issues, Framing issues of websites, Missing Http headers and many more. This extensions doesnt need any service connection and data is made available directly in the Azure DevOps dashboard.

OwaspZap Extension

D. CredScan – CredScan is an extension from Microsoft and is used for scanning the code for any hidden and hard coded secrets, certificates information or passwords. Post scan it provides details in the Pipeline logs with the file details having these hard coded secrets and we have an option to break the build if we want to. For CredScan to install, we need Microsoft Premier Support subscription and it is not available without the Premier support.

E. Fortify – Fortify is a third party product from Microfocus and provided application security scan capabilities. It can be used for both static as well as dynamic security scans. It covers many industry security standards like OWASP Top 10, PCI compliance and many more. This is one of the most used product when it comes to Security testing of applications and systems. In case of static scans it checks each individual code file and components in the repository and provide online report with details of all issues. Fortify need to first be installed in a server followed by connecting it to Azure DevOps project before using this task in our pipelines.

Fortify Extension

F. WhiteSource Bolt and Nexus IQ Server – these can be used to scan for any vulnerable in third party open source dependencies we are using in our projects. It can be used to keep a check on open source libraries like JavaScript libraries or NuGet packages. WhiteSource Bolt doesnt need a service connection to work but Nexus IQ server is more advanced product and needs installation on a server followed by connecting it to the project. Both of these products keep their databases updated with list of open source libraries and packages and their known vulnerabilities and use it to scan the repositories and report issues.

WhiteSource Bolt Extension
Nexus IQ Extension

G. AzSK – Secured Azure DevOps Toolkit – AzSK is a toolkit developed by Microsoft Devlabs and is made available as an extension in Market place. It can be used to scan our Azure subscriptions and resources to check for any missing or lacking security configurations. After scanning the Azure subscriptions, it generated an excel report with list of all the Azure resources and the security gaps they have. It also provides recommendation and remediation steps ie what to do to mitigate the gaps. AzSK can also automatically remediate the security issues under the Azure subscription depending on its configuration in pipeline task. It consists of powershell modules which are first installed on the build agent and then used to scan through our azure subscriptions.

AzSk Extension

H. Delivery Plans – This is an extension for Azure Boards and adds a hub in the Azure Boards. It can be used to track and keep a check on the delivery plans for multiple dependent teams. We can see the start and end dates of sprint deliveries of each team and use these insights to plan work better based on cross team dependencies.

Delivery Plan Extension

I. ReportGenerator – this extension is related to unit testing and testing in general. It is used to generate human readable report for the coverage data generated by various products like Visual Studio, dotcover etc. It can read multiple different coverage data formats and use it to generate a report which can be easily understood by DevOps users. Report is made available in DevOps dashboard screen. It does not need any service connection and work directly with Azure DevOps pipelines.

ReportGenerator Extension

J. Estimate – this is a great small extension which can be used to estimate story points for agile/scrum user stories. It adds a hub in Azure Boards and provides a voting system where each team member can vote their story points for user stories individually and later data from all developers can be used to come to a conclusion.

Estimate Extension

K. Contribution Graph – this is another great Azure Boards extension and also adds a hub in Azure boards. Using this we can see each team member’s contribution in the spring delivery. It provides a great way to see the contribution and value added by each DevOps team member visually.

Contribution Graph Extension

Conclusion

I end this article here and hope it provides some value and insights. I will be pushing more related articles soon. If you want to connect with me or have an opinion for this article and want more information or corrections, do comment and I will be more than happy to support / update.

1 thought on “Most Important and Key Features in Azure DevOps”

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.