Notifying a Slack Channel of Successful App1 Builds with an Azure DevOps Service Hook Subscription
You have an Azure subscription that contains an Azure Pipelines pipeline named Pipeline1 and an app named App1. Pipeline1 is used to automate the building of App1. You have a Slack channel named App1chat that includes an incoming webhook. You need to ensure that when a successful build of App1 is created, a notification is sent to App1chat by using the webhook. What should you use?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
A service hook subscription in Azure DevOps is what connects a pipeline event such as build completion to an external action, and the Slack service hook configuration accepts the incoming webhook URL so notifications are posted into the channel.
A pipeline named Pipeline1 builds an app named App1, and a Slack channel named App1chat has an incoming webhook available. When a successful build of App1 is created, a notification must be delivered to that channel through the webhook, so the pipeline event has to be connected to an external messaging target.
Confusing the service hook subscription with Azure Monitor constructs. An alert rule, an action group, and a subscription belong to Azure Monitor and are triggered by metric or log thresholds and resource events, not by Azure DevOps pipeline run events.
Community Discussion (5 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
The requirement is to react to a specific Azure DevOps event, namely a successful App1 build, and to deliver a message to Slack through an incoming webhook. A service hook subscription is the Azure DevOps feature that binds pipeline and build events to external actions, and its Slack configuration takes the incoming webhook URL as the target, so a subscription filtering on successful build completion posts the notification into App1chat. The vote was unanimous at 100 for C. All three substance comments independently cited the same Microsoft Learn section on creating a service hook subscription for Slack, which is what makes the answer verifiable rather than merely plausible.Why the Other Options Are Wrong
An alert rule (B) is an Azure Monitor construct that evaluates metric or log conditions and fires when a threshold is crossed, so it has no awareness of Azure DevOps build events and cannot invoke a Slack webhook. An action group (D) is the notification target grouping used by Azure Monitor alerts and alerts, so it is downstream of a monitor condition rather than a trigger source for a pipeline event. A notification (A) is the general concept of a message being sent and is not a configurable Azure DevOps object that can be bound to a build event with a webhook, so naming it does not describe a thing to create. In short, the other three options all belong to the monitoring side of Azure rather than the DevOps eventing side.Community Comment Notes
The community was unanimous at 100 for C, and the three substance comments are all in agreement, each linking the create-a-service-hook-subscription documentation for Slack. UrbanRellik, Munwalinwali, and osagiestar posted essentially the same citation, anchored to the service hooks Slack page and its subscription section, which is a notably consistent pattern for a question with a single documented mechanism. The reasoning structure is the same one the correct option describes, which is to bind the build event to the webhook target through a subscription rather than through monitoring constructs.Official Reference
Related Analysis
Practice All AZ-400 Questions
Access 100 questions with complete answers and detailed explanations.
View Full AZ-400 Practice Test →