PUBLIC BETA OFFER

Save 50% off on an Eligible Learning PlanValid for 1-month plan, 3-month plan, 12-month plan · Code LPXBETA50 · Ends Dec 6, 2026

AZ-401: Choosing Delivery Automation and Connecting GitHub Repositories

Choose Azure Pipelines or GitHub Actions, connect an existing Azure pipeline through the scoped GitHub App, and verify build and pull-request Checks evidence.

Guide

Content version 1.0

AZ-401: Choosing Delivery Automation and Connecting GitHub Repositories

AZ-401: Choosing Delivery Automation and Connecting GitHub Repositories

Choose the delivery platform whose workflow and operating model your team can maintain, then verify its connection to the repository independently of the build logic. For an existing nonproduction Azure pipeline that builds a GitHub.com repository, use the Azure Pipelines GitHub App: an authorized administrator installs or scopes it, associates it with the correct Azure DevOps organization and project, and selects that connection in the pipeline's Get sources settings. Save and queue a build, then create or reopen a test pull request and inspect its GitHub Checks build.

Acceptance requires matching the repository, connection identity, source revision and actual run evidence. A manual build alone does not prove that pull-request events reach the intended organization. The App's first-organization automatic-trigger limitation and the different behavior of OAuth or personal access token connections remain relevant. This guide describes a worked procedure; no installation, build or pull-request operation was executed for this article.

Choose delivery automation by ownership and evidence

Azure Pipelines organizes work into stages, jobs and steps; jobs usually execute on agents. GitHub Actions defines workflows in repository YAML files under .github/workflows, with events, jobs and runner selection. These are separate execution systems even when both report information on the same GitHub repository.

Use the following decision criteria as engineering recommendations rather than a universal product ranking:

Existing situation Reasonable starting choice Verify before committing
The team already operates an Azure pipeline and its execution environment Keep Azure Pipelines and connect the GitHub source The responsible owner can maintain both the source connection and build
The team owns its automation through GitHub repository workflows Evaluate GitHub Actions The workflow's events, runner access and token permissions fit the work
Both systems already run checks Assign an explicit purpose to each Reviewers can identify which system produced each required result

Repository hosting does not force a platform choice. Avoid introducing a second build simply because the source is in GitHub. Conversely, an existing Azure subscription is insufficient reason to move a functioning GitHub Actions workflow. Document the owner, required output and approval path first.

The remainder implements the Azure Pipelines choice using an existing working pipeline. It does not create a runner, author a new job graph or configure access to Azure workloads.

Establish a controlled baseline

Select one existing Azure DevOps Services project, one GitHub.com organization repository and one working nonproduction pipeline. Record its definition, YAML path if applicable, previous source connection, ordinary source branch and authorized execution environment.

The operator needs Azure DevOps authorization to edit and queue the selected pipeline. Azure DevOps feature access levels and permissions are different controls; access to a portal feature does not establish every project or object permission. Keep the GitHub account and Azure DevOps account explicit: GitHub membership is not automatically synchronized into Azure Pipelines.

For the organization-owned repository, arrange the documented GitHub owner or repository-administrator involvement for App installation and the required repository collaborator or team access. Confirm whether another Azure DevOps organization already consumes this repository's App events.

Before a test run, have the owner confirm that its chosen branch and pipeline cannot deploy to production or perform unintended changes. Review the existing build's costs, sensitive inputs and outputs. Choose a harmless test change and an agreed cleanup plan. Stop if the pipeline's behavior or the authority to change its connection is unclear.

Configure the Azure Pipelines GitHub App connection

The Microsoft integration guide distinguishes App authentication from OAuth and personal access token (PAT) authentication. The App reports using the Azure Pipelines identity and supports GitHub Checks; the other two use a personal GitHub identity and legacy status reporting. Changing the connection is therefore more than renaming a credential.

Use the existing pipeline throughout this procedure:

  1. Have the authorized owner or administrator install the Azure Pipelines App in the repository's GitHub organization, or review the existing installation's repository selection. Scope it to the approved repository.
  2. During installation's Azure DevOps redirect, select the organization and project containing the intended pipeline. Continue with the existing pipeline rather than creating another one.
  3. Open the selected pipeline and choose Edit. For a YAML pipeline, open Triggers to reach its classic editor, then select Get sources. For an existing Classic build pipeline, use its Get sources settings directly.
  4. Beside Authorized using connection, choose Change and select the App connection named for the GitHub organization.
  5. Use Save and queue, confirm Save and queue again, and follow the resulting run.

Inspect the service connection properties as well as its display name. The documented type Azure Pipelines app identifies an App connection; oauth and personalaccesstoken identify different authentication mechanisms. Retain the prior selection in the change record so an owner can restore it if the exercise is temporary.

Do not treat this repository connection as Microsoft Entra workload federation. It establishes the GitHub source integration; authorization to deploy to an Azure resource is a separate design.

Verify the manually queued build

Use the run to test one boundary at a time. First confirm that the selected definition queued. Then inspect source checkout, followed by the existing build and test steps. A queue entry, an available agent and a successful source checkout answer different questions.

Maintain a short evidence record:

Evidence What to compare
Pipeline identity Actual organization, project and definition against the baseline
Source repository Actual GitHub owner and repository against the approved selection
Revision Full recorded checkout revision against the intended branch or pull-request context
Connection Actual service connection and authentication type against the chosen App
Execution Checkout, build and test results separately, including failures or skipped work
Output Produced files or published results against the pipeline's declared purpose

This is a recommended verification method, not fabricated sample output. Record the real values and run reference. A green result from a different definition or an older revision does not satisfy the exercise.

If the run fails after checkout, preserve that distinction. Investigate the existing build or execution environment before changing a connection that already fetched the correct source. If checkout fails, retain the exact failure and verify the repository and identity before increasing access.

Verify pull-request delivery through GitHub Checks

Create a harmless test pull request in the selected repository, or close and reopen an agreed test pull request. Inspect its Checks section for the Azure Pipelines build, then follow that result to the corresponding run.

Correlate the pull request, source revision and run evidence with the manual-build record. Record whether the observed checkout represents the pull-request head or a merge revision, as established by that run's actual context. Do not infer revision equality from a branch name or a familiar check caption.

GitHub Checks from Azure Pipelines do not mean a GitHub Actions workflow executed. Likewise, a displayed check is not a promise that every test or coverage result exists. Inspect the actual build and published evidence before describing the outcome.

For one GitHub repository connected to multiple Azure DevOps organizations, the documented App integration automatically triggers pipelines only in the first organization; secondary organizations can still use manual or scheduled builds. Resolve that association before concluding that a successful manual run proves pull-request triggering.

Keep merge-policy enforcement separate. This exercise establishes source integration and observable feedback, not a new required-check policy or permission to bypass an existing one.

Diagnose the failed boundary before changing access

Use the observation to choose the next investigation:

Observation Focus the next check
The repository is missing from selection App repository scope, correct GitHub account and required collaborator or team access
The connection still reports OAuth or PAT The selected pipeline's actual Get sources connection and service connection type
Manual build works but no pull-request build appears Intended organization mapping and the existing trigger configuration
The run remains queued The existing execution environment and its capacity; repository installation is not execution evidence
Checkout reports the repository unavailable Exact repository identity, authorized access and current service availability
The run uses an unexpected revision The actual branch or pull-request context and checkout evidence
A result appears on the wrong pull request or revision Correlation between the check, source and pipeline run

For an authorized mapping investigation, the documented /azp command with its where argument on the test pull request reports the associated Azure DevOps organization. Treat that result as diagnostic evidence. An owner must assess other consumers before any remapping.

The Microsoft troubleshooting procedure can involve reinstalling the App to change a wrong association. Do not apply that repair automatically to a shared installation. Escalate the evidence and proposed impact to its owner; preserve working connections while the decision is made.

Close the exercise without disrupting shared consumers

Close the test pull request when its observations are complete. Preserve the run and source references required by the team's evidence policy. Restore only temporary changes that the owner approved, including the previous pipeline connection if restoration was part of the plan.

Leave unrelated installations, repositories and pipelines intact. Removing the App or reducing its repository selection can affect other consumers; cleanup needs the same ownership review as installation.

The completion record should state which manual build and pull-request Checks observations were obtained, which revision they used, any unresolved failure, and which temporary changes were restored. A missing automatic build remains an unresolved connection outcome, even if manual execution succeeded.

Authoritative Sources

0 views