# Azure DevOps event triggers

Discover 35 native service-hook event contracts, wire typed outputs and keep receiver delivery separate from business execution.

Canonical URL: https://opennodeflow.dev/wiki/azure-devops-events/
JSON reference: https://opennodeflow.dev/wiki/azure-devops-events/index.json
Source snapshot: 2026-10-23

The DevOps library includes **35 native Azure DevOps service-hook trigger contracts**. They cover repository and pull-request events, work items, builds, pipeline state/checks, agents, service connections and releases. Availability of a trigger in the library does not create its Azure subscription, deploy a public receiver or enable a workflow.

## Delivery architecture

The documented integration uses a separate HTTPS service-hook receiver. It accepts and validates incoming events, retains durable delivery state, discovers matching enabled ONF trigger instances and submits targeted branch runs. ONF's administrative/MCP endpoint remains a trusted-host interface; publishing a service hook does not require exposing that endpoint directly to the internet.

A simplified path is:

```text
Azure service hook
  → authenticated HTTPS receiver
  → validated durable event intake
  → matching enabled ONF trigger instances
  → targeted graph branch runs
```

The receiver and its ingress are separate components with their own credentials, retention and recovery. The ONF library alone is not a complete hosted webhook service. Configure a receiver deployment for the intended organization/project and verify its project guards explicitly before using another project's events. The documented installed integration is project scoped; changing a URL is not sufficient to generalize its authorization.

## All 35 event contracts

These are the event identifiers supported by the documented expansion. Provider publisher availability, project capabilities and permissions still determine which hooks can be subscribed.

| Event | Azure event ID |
| --- | --- |
| Pull request created | `git.pullrequest.created` |
| Pull request updated | `git.pullrequest.updated` |
| Pull request comment | `ms.vss-code.git-pullrequest-comment-event` |
| Pull request merge attempted | `git.pullrequest.merged` |
| Work item created | `workitem.created` |
| Work item updated | `workitem.updated` |
| Work item commented | `workitem.commented` |
| Work item deleted | `workitem.deleted` |
| Work item restored | `workitem.restored` |
| Code pushed | `git.push` |
| Build completed | `build.complete` |
| Project-level agent pool created | `agentqueue.created` |
| Project-level agent pool updated | `agentqueue.updated` |
| Elastic agent pool resized | `elasticagentpool.resized` |
| Run stage approval completed | `ms.vss-pipelinechecks-events.approval-completed` |
| Run stage waiting for approval | `ms.vss-pipelinechecks-events.approval-pending` |
| Check updated | `ms.vss-pipelinechecks-events.check-updated-event` |
| Run job state changed | `ms.vss-pipelines.job-state-changed-event` |
| Run state changed | `ms.vss-pipelines.run-state-changed-event` |
| Run stage state changed | `ms.vss-pipelines.stage-state-changed-event` |
| Code checked in (TFVC) | `tfvc.checkin` |
| Repository created | `git.repo.created` |
| Repository deleted | `git.repo.deleted` |
| Repository forked | `git.repo.forked` |
| Repository renamed | `git.repo.renamed` |
| Repository status changed | `git.repo.statuschanged` |
| Service connection created | `ms.vss-endpoint.endpoint-created` |
| Service connection updated | `ms.vss-endpoint.endpoint-updated` |
| Release deployment approval completed | `ms.vss-release.deployment-approval-completed-event` |
| Release deployment approval pending | `ms.vss-release.deployment-approval-pending-event` |
| Release deployment completed | `ms.vss-release.deployment-completed-event` |
| Manual intervention pending | `ms.vss-release.deployment-mi-pending-event` |
| Release deployment started | `ms.vss-release.deployment-started-event` |
| Release abandoned | `ms.vss-release.release-abandoned-event` |
| Release created | `ms.vss-release.release-created-event` |

The merge event's name requires care: **git.pullrequest.merged reports a merge attempt**, not an unconditional guarantee that the PR reached a completed state. Inspect the event's actual lifecycle fields before triggering a deployment or recording completion.

TFVC check-in support is a catalog capability. A Git-only project need not expose or enable a TFVC subscription. Advanced Security and third-party publisher events are not implied by this native list. Query the target Azure publisher inventory instead of inventing a subscription for an unexposed event.

## Add a typed event branch

1. Select the workflow's workspace and add the **DevOps** pack if needed.
2. Search for the specific event trigger and inspect its exact version and output socket IDs.
3. Add that trigger instance to the workflow. Keep the entry and workflow automation disabled during authoring.
4. Connect only the typed outputs required by this branch. Use a safe synthetic/manual fixture to inspect the payload contract without manufacturing a real business event.
5. Validate the graph and review the provider account/project scope and receiver configuration.
6. Deliberately enable the node entry and workflow automation master only when its downstream effects are ready.

Both enable flags matter. Multiple instances of the same event trigger, including two on one canvas, can receive independent targeted branch runs. Adding another compatible enabled instance does not require hardcoding a new canvas into the receiver's definition-based routing map.

Newer contracts expose **Azure Event Info**, useful reusable typed blocks, direct event-specific primitive/record/list outputs and **config_remainder** for resource properties not expanded into direct outputs. The shared Event Info v2 contract includes all 35 event kinds. The expansion does not create another graph of event-specific codec types for each new event.

Do not copy a historical raw-event wiring recipe onto a newer trigger blindly. Earlier versions can expose raw event/config sockets while newer definitions expose direct typed fields. Saved graph instances retain their pins until an explicit upgrade; reading Latest help never upgrades execution. Some earlier versions also reject the newer broadcast identity, so discover a compatible contract rather than guessing a minimum version for every family.

## Decode only what the workflow needs

Azure Event Info codecs expose envelope identity, kind and timing. Reusable Pull Request, Work Item Context and Comment codecs expose their actual shared fields. New direct outputs often remove the need for an additional decoder chain. Use the selected node's socket preview to decide.

Optional absence and null remain distinct. A missing optional output can cause a connected dependent consumer to skip. Preserve a matching remainder/layout block when a lossless round trip requires it; reconstructing an event from only the few visible scalar fields can discard provider extension data.

Keep event IDs and provider object IDs as their declared types. Do not substitute a PR number for a global identity or infer the destination project from an unchecked display label.

## Validation and project guards

Triggers validate event kind, event UUID, resource shape, broadcast definition identity and the configured project boundary. A present project container is authoritative: malformed or conflicting containers fail closed. Event-specific reviewed fallbacks apply only when that container is absent; repository-fork origin uses the container-only rule.

A service hook should explicitly target the intended project even where a publisher API permits organization-wide scope. Receiving a syntactically valid JSON body is not proof that it belongs to the authorized project. A fixture decoder and an authenticated receiver perform different jobs.

## Delivery, duplicates and recovery

The receiver freezes the enabled recipient set on the first successful complete discovery for a new event. New instances do not join a previously captured event. A valid empty recipient snapshot completes without later backfill; enabling a workflow tomorrow does not automatically replay yesterday's event.

Durable recipient receipts record ONF acceptance. An uncertain acceptance can be reconciled by exact identity, while a later workflow failure does not automatically replay its external actions. Use the provider event/business identity and durable storage for application-level deduplication. Delivery bookkeeping alone is not an exactly-once guarantee for messages, ticket changes or deployment actions.

Retain captured routing/receipts during receiver upgrades. Do not redirect retained old events to newly added targets or automatically resend a historical event to test a change. Where the receiver also supports another platform, route each event only to handlers that actually implement it; adding ONF event kinds does not expand another destination's capabilities.

## Agent procedure

Discover the target workspace, installed pack, trigger definition and exact outputs. Read the workflow revision, propose a small branch patch, validate and inspect the saved readback. Treat enabling automation, changing Azure subscriptions, editing receiver routes and replaying an event as distinct actions with external consequences. Never include callback keys, signing credentials or customer payloads in a public example.

The [agent authoring guide](/wiki/mcp-workflow-authoring/) covers revisions and targeted edits. [Runtime triggers](/wiki/triggers/) covers per-entry controls, while [DevOps operations](/wiki/integration-azure-devops/) covers the separate REST-management additions.

Source records include isolated worker/receiver tests and transport-only acceptance checks. Those checks establish their recorded scope; they do not demonstrate every user's Azure hook, provider grant or downstream business result.

---

## Documentation provenance

- `docs/DEVOPS-TRIGGER-EXPANSION-2026-10-22.md`
- `docs/DEVOPS-TRIGGERS.md`
- `docs/DEVOPS-INGRESS.md`
- `docs/LIBRARY-PACKS.md`

This page describes maintained source, not a live inventory or an authorization to perform actions.
