Bitzu

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

Single choice

Which HTTP header carries the HMAC-SHA256 signature of a GitHub webhook delivery when a secret is configured?

  1. X-GitHub-Event
  2. X-Hub-Signature-256
  3. Authorization
  4. 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.

Select all that apply

Which statements about the Azure Pipelines app for Microsoft Teams are correct?

  1. You can subscribe to one pipeline or to all pipelines in a project
  2. Deployment approvals can be approved or rejected from the channel
  3. OAuth app access must be enabled for the Azure DevOps organization
  4. It runs build jobs on agents hosted inside Teams
  5. 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

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.

Download on the App StoreGet it on Google Play

More AZ-400 topics in this module