Courseiva

Using the Microsoft Teams Notification Task on Release Pipeline Failure

Your team uses Azure Pipelines to build and deploy a web app. You want to send a notification to a Microsoft Teams channel when a build fails. What should you configure?

⚠ Common exam trap

The trap here is that candidates may overengineer the solution by choosing a custom Logic App or third-party task, overlooking the fact that Azure Pipelines has a first-class, built-in integration with Microsoft Teams that requires no additional code or services.

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

✓

Use the built-in Azure Pipelines Teams integration to send a notification on build failure.

Azure Pipelines has a built-in integration with Microsoft Teams that allows you to subscribe to notifications for pipeline events, such as build failures, directly from the Azure DevOps interface. This integration uses a service hook to send adaptive cards to a Teams channel without requiring custom logic or additional tasks.

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 task in the pipeline to send an email on failure.

    Why it's wrong here

    The pipeline does not have a native 'send email' task; sending an email would require custom scripting or a third-party extension, and even then it would deliver to an inbox, not to a Microsoft Teams channel. The requirement explicitly asks to notify a Teams channel, so an email task does not meet that requirement.

  • ✗

    Create a service hook to trigger an Azure Logic App that sends a Teams message.

    Why it's wrong here

    A service hook can trigger an Azure Logic App, but Logic Apps require an HTTP endpoint and authentication setup to send a Teams message, adding unnecessary complexity and latency. The scenario specifically needs a direct, immediate notification from Azure Pipelines to Teams when a build fails. This option is tempting because service hooks are designed to connect Azure DevOps events to external systems, and a Logic App can indeed post to Teams; however, the correct solution uses the built-in Teams notification task in Azure Pipelines, which avoids the extra hop and configuration overhead of a separate Logic App workflow.

  • ✗

    Add a dashboard widget that shows build status.

    Why it's wrong here

    A dashboard widget is a passive visualization that only shows build status when a user visits the Azure DevOps dashboard; it does not proactively push an alert to Microsoft Teams. Widgets are not event-driven notifications, so they cannot fulfill the requirement to send a message to a Teams channel when a build fails.

  • ✓

    Use the built-in Azure Pipelines Teams integration to send a notification on build failure.

    Why this is correct

    The built-in Azure Pipelines Teams integration lets you subscribe to build pipeline events, such as a failed build, and delivers an adaptive card notification directly to a configured Teams channel. This native subscription uses Azure DevOps service hooks to Teams internally, requiring no custom code, Logic Apps, or extra configuration, and is the canonical solution for notifying Teams of build failures.

About these practice questions

This AZ-400 question is part of Courseiva's 696-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

2 more ways 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 are designing a communication strategy for your DevOps team. They use Microsoft Teams for collaboration. You need to automatically notify the team when a release to production fails. Which Azure DevOps integration should you use?

medium
  • A.Set up an email subscription to the DevOps team
  • B.Create a service hook to call a custom API
  • C.Publish a Wiki page with deployment status
  • ✓ D.Configure a notification subscription in Azure DevOps to send a Teams webhook

Why D: Azure DevOps notification subscriptions can be configured to send alerts to a Teams channel via an incoming webhook. This allows automatic, real-time notifications to the DevOps team when a release to production fails, directly within their collaboration platform.

Variation 2. Your company uses Microsoft Teams for collaboration. You want to send notifications to a Teams channel whenever a build pipeline in Azure Pipelines fails. Which approach should you use?

medium
  • A.Configure an email subscription in Azure DevOps to send alerts to the Teams channel email address.
  • B.Set up a webhook in Azure DevOps to post to the Teams channel's incoming webhook URL.
  • ✓ C.Install the Azure Pipelines app for Microsoft Teams and subscribe the channel to pipeline notifications.
  • D.Use the 'Post to a Microsoft Teams channel' task in the pipeline.

Why C: The Azure Pipelines app for Microsoft Teams is the officially supported integration that lets you subscribe a Teams channel to pipeline events, including build failures, with rich notifications and actionable cards. Installing the app and configuring the channel subscription is the intended approach. It provides native integration without custom webhooks or email workarounds.

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.