AZ-400 Question 56
Select 2You manage a project in Azure Boards and store your code in a private GitHub repository. Team members want commits and pull requests in GitHub to automatically link to corresponding Azure Boards work items whenever the work item ID is mentioned in commit messages or pull request descriptions. Which two actions are required to enable this integration?
- A
Create a personal access token in GitHub and store it in Azure Boards to authenticate linkage between commits and work items.
- B
Install the Azure Boards GitHub app in the GitHub organization or user account that owns the repository.
- C
In Azure Boards, configure a connection to your GitHub repository under Project Settings.
- D
Rename your default branch in GitHub to 'azure-boards' so Azure Boards can recognize cross-references automatically.
Show answer and explanation
Correct answers: B, C
Explanation
To set up a proper integration between Azure Boards and GitHub repositories, you need to install the Azure Boards GitHub app in your GitHub organization or user account, and then configure a GitHub connection under your project settings in Azure Boards. This ensures that work item mentions are recognized in commit messages and pull requests. For additional guidance, refer to the official documentation on configuring GitHub integration for Azure Boards at https://docs.microsoft.com/azure/devops/boards/github/configure.
- A. Incorrect.
Incorrect. While personal access tokens can be used for some integrations, the preferred and more secure method for linking Azure Boards with GitHub is to install the Azure Boards GitHub app. A personal access token is not required specifically for this cross-linking scenario.
- B. Correct.
Correct. Installing the Azure Boards app in your GitHub organization or user account is essential. This app maintains a secure connection and allows GitHub commits and pull requests to be automatically linked to Azure Boards work items when IDs are mentioned.
- C. Correct.
Correct. After installing the Azure Boards GitHub app, you must configure a GitHub connection within your Azure Boards project settings. This connection tells Azure Boards which GitHub repository to monitor for work item references.
- D. Incorrect.
Incorrect. Renaming your default branch is not necessary. Azure Boards recognizes references to work items based on mention patterns (e.g., 'AB#
') in commits and pull requests, regardless of the branch name.