AZ-400 Question 42
Single answerYour organization uses Azure Boards for work item tracking and Microsoft Teams for daily communication. The product manager wants to receive alerts in a dedicated Teams channel whenever a new work item (such as a user story or bug) is created in Azure Boards. You need to configure Azure DevOps so that these notifications are automatically posted to the Teams channel. What should you do?
- A
In Azure Boards, create a custom notification rule and set the 'Assigned To' field to the Teams channel email address.
- B
Use the Service Hooks feature in Azure DevOps to create a subscription event for new work items and select Microsoft Teams as the consumer service.
- C
Configure a Git hook in the Azure Repos settings to post to the Teams channel whenever a new commit is pushed.
- D
Add a personal access token in the Teams channel settings and set up an Outlook rule to forward work item emails from Azure DevOps to the channel.
Show answer and explanation
Correct answer: B
Explanation
To configure collaboration in Azure DevOps with Microsoft Teams for real-time updates, you should create a Service Hook in Azure DevOps that sends notifications to Microsoft Teams whenever a new work item is created. This approach leverages built-in integration features provided by Azure DevOps and Microsoft Teams. Refer to official Microsoft documentation on 'Service Hooks' and 'Connect Azure DevOps to Teams' for step-by-step guidance.
- A. Incorrect.
Option 1 is incorrect because simply creating a custom notification rule pointing to an email address does not reliably integrate with a Teams channel; the channel typically does not consume email notifications in a robust, automated way.
- B. Correct.
Option 2 is correct. Service Hooks in Azure DevOps allow you to subscribe to key events�such as the creation of a new work item�and forward them to a service like Microsoft Teams. This is the recommended approach for seamless, automated notifications.
- C. Incorrect.
Option 3 is incorrect because Git hooks are used for repository commits, not for work item events. This would not notify Teams of newly created work items in Azure Boards.
- D. Incorrect.
Option 4 is incorrect because personal access tokens and Outlook rules are not a direct or recommended way to integrate Azure Boards with Teams. This approach would be prone to errors and manual maintenance.