Courseiva

Connecting GitHub Pull Requests to Azure Boards Automatically

Your team uses GitHub and wants to automatically link pull requests to work items in Azure Boards. What should you configure?

Quick Answer

Installing and configuring the Azure Boards app for GitHub is the official integration that automatically links pull requests to work items — it recognizes mention patterns like AB#123 in PR descriptions or commit messages and creates the traceability link without any custom scripting on either side.

⚠ Common exam trap

A common mix-up: candidates confuse 'requiring a linked work item' (a branch protection rule) with 'automatically linking work items' (the integration), leading them to pick Option C, which enforces a precondition rather than establishing the actual linking mechanism.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

Install the Azure Boards app for GitHub and configure the integration

The Azure Boards app for GitHub is the official integration that synchronizes work items with GitHub commits, branches, and pull requests. Once installed and configured, it automatically links pull requests to Azure Boards work items based on mention patterns (e.g., 'AB#123') in the PR description or commit messages, enabling traceability without custom scripting.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    Add a repository secret with Azure Boards connection string

    Why it's wrong here

    A repository secret stores credentials for workflows; it does not itself connect GitHub to Azure Boards or create links. The Azure Boards GitHub app, installed and authorised against the organisation, performs that linking. Secrets are tempting because integration needs authentication, but a stored connection string alone establishes no association.

  • ✓

    Install the Azure Boards app for GitHub and configure the integration

    Why this is correct

    Installing the Azure Boards app for GitHub and configuring the connection authenticates the two services and enables mention-based linking, so commits and pull requests referencing AB# work item IDs appear automatically on the board. This satisfies the requirement to link pull requests to work items.

  • ✗

    Configure branch protection rules to require a linked work item

    Why it's wrong here

    Branch protection rules gate merges on status checks and reviews; they cannot create Azure Boards links. The Azure Boards GitHub app or an AB# mention in the PR title, description or commits establishes the link automatically. Requiring a linked work item is tempting as governance, but it enforces rather than creates the association.

  • ✗

    Create a GitHub Actions workflow that posts comments to Azure Boards

    Why it's wrong here

    A GitHub Actions workflow posting comments writes text into GitHub; it creates no Azure Boards work item link. The Azure Boards GitHub app authenticates via OAuth and links PRs when AB# mentions appear. A workflow is tempting for custom automation, but the requirement is native automatic linking, not commentary.

About these practice questions

Courseiva writes every AZ-400 question from scratch — 696 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on AZ-400

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. You need to automatically create a work item in Azure Boards when a GitHub issue is opened. What is the most efficient way to achieve this?

easy
  • ✓ A.Install the GitHub + Azure Boards integration
  • B.Create a GitHub Action that calls Azure DevOps REST API
  • C.Use Azure Pipelines with a GitHub trigger
  • D.Configure a webhook in GitHub to Azure DevOps

Why A: The GitHub + Azure Boards integration is a built-in, officially supported connector that automatically links GitHub repositories to Azure Boards and can create work items from GitHub issues with minimal configuration. It is the most efficient method because it requires no custom code, no webhook scripting, and no pipeline setup—just install the integration from the Azure DevOps Marketplace and authorize it.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-400 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-400 exam.