AZ-400 ยท Documentation and collaboration
Webhooks and the Teams apps
Service hooks and webhooks in Azure DevOps and GitHub, payloads and secrets, the Azure Pipelines and GitHub apps for Microsoft Teams, subscriptions and notifications.
Key points
- A webhook sends a JSON event description to a URL you control.
- Azure DevOps: Project settings > Service hooks; HTTPS endpoint only, no localhost.
- GitHub: on a repo or org, optional secret; deliveries signed with HMAC-SHA256 in X-Hub-Signature-256.
- Microsoft Teams: Azure Pipelines, Boards, Repos and GitHub apps add subscriptions with filters.
- Pipelines app: approve deployments from the channel.
Source: https://learn.microsoft.com/en-us/azure/devops/service-hooks/services/webhooks
Practice questions
Which HTTP header carries the HMAC-SHA256 signature of a GitHub webhook delivery when a secret is configured?
- X-GitHub-Event
- X-Hub-Signature-256
- Authorization
- X-Request-Id
Show answer
Answer: B. X-Hub-Signature-256
X-Hub-Signature-256 holds the sha256= digest. The older X-Hub-Signature header exists only for legacy reasons; the others are not signature headers.
Which statements about the Azure Pipelines app for Microsoft Teams are correct?
- You can subscribe to one pipeline or to all pipelines in a project
- Deployment approvals can be approved or rejected from the channel
- OAuth app access must be enabled for the Azure DevOps organization
- It runs build jobs on agents hosted inside Teams
- It stores variable group secrets for the pipeline
Show answer
Answer: A. You can subscribe to one pipeline or to all pipelines in a project, B. Deployment approvals can be approved or rejected from the channel, C. OAuth app access must be enabled for the Azure DevOps organization
You subscribe per project or per pipeline, approvals can be answered in the channel, and OAuth app access must be enabled for the organization. The app does not run agent jobs or manage variable group secrets.
True or false: an Azure DevOps webhook that uses basic authentication may target a plain HTTP endpoint.
Show answer
Answer: False
False. Azure DevOps requires HTTPS for basic authentication, because over HTTP the credentials would travel unencrypted.
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.
