AZ-400 ยท Monitoring DevOps environments
How do you get alerted about failed pipelines in GitHub and Azure DevOps?
GitHub repository and organization insights, Actions usage and metrics charts, notifications for failed workflows, Azure Pipelines notifications and service hooks, alerting on pipeline events.
Key points
- In Azure DevOps, service hooks subscribe to events such as a build completing and send them to consumers like Teams, Slack, Service Bus or a generic webhook.
- In GitHub, you inspect workflow runs in the Actions tab or with gh run list, and use notification settings to hear about workflow results.
- Repository and organization insights add charts for activity over time.
Source: https://learn.microsoft.com/en-us/azure/devops/service-hooks/overview?view=azure-devops
Practice questions
Where in Azure DevOps do you create subscriptions that send events to other services?
- Project settings, Service hooks
- Repos, Branch policies
- Pipelines, Environments
- Artifacts, Feed settings
Show answer
Answer: A. Project settings, Service hooks
Service hooks live under Project settings. Other settings areas do not provide event subscriptions to external consumers.
Which are available as Azure DevOps service hook targets?
- Slack
- Microsoft Teams
- Azure Storage queue
- GitHub Pages site
- Azure Artifacts feed
Show answer
Answer: A. Slack, B. Microsoft Teams, C. Azure Storage queue
Slack, Microsoft Teams and Azure Storage queues are listed service hook consumers. A GitHub Pages site and an Azure Artifacts feed are not consumers.
True or false: Azure DevOps service hooks can only target Microsoft services.
Show answer
Answer: False
False. Consumers include Slack, Trello, Jenkins, Datadog and generic webhooks as well as Microsoft services.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
