avd-opsDeploy quietly
Community research project. Use at your own risk. No warranty.Use at your own risk
  • Built on my own time for research and learning. Not affiliated with, endorsed by or supported by my employer or Microsoft.
  • Don't run any of it in production or against tenants that matter. Test in a dedicated lab subscription and tenant first.
  • Provided "as is", without warranty of any kind, under each repo's license. You use it at your own risk and own the Azure charges it incurs.
  • Contributions and forks are welcome and encouraged. See Contribute.

0032. Decouple adopter-tenant operations from GitHub Actions

Every adopter-tenant capability in avd-ops must run with zero GitHub Actions minutes and zero GitHub Environment dependencies; GitHub Actions is an optional convenience, never a hard requirement.

Context and Problem Statement

Decision 0026 documented GitHub Free limits, but several walkthroughs and templates still assume GitHub Actions or GitHub Environments for adopter operations.

More

If an adopter's GitHub account or organization hits its Actions billing/usage cap, sets a $0 spending limit, disables Actions on private repositories, or uses GitHub Free (where environment: required reviewers do not pause), any capability coupled to GitHub Actions breaks for the adopter's tenant. How should avd-ops structure execution, approvals, scheduling, and private hosting so adopter operations never depend on GitHub Actions?

Considered Options

Three options were weighed:

  • Keep GitHub Actions as the primary adopter control plane and document workarounds: Leaves adopters exposed to Actions quota exhaustion, disabled-Actions org policies, and missing Environment gates on GitHub Free.
  • Require GitHub Pro+ or self-hosted GitHub Actions runners: Shifts cost or runner maintenance onto every adopter and still fails if Actions is disabled.
  • Decouple all adopter-tenant operations from GitHub Actions: Guarantee a zero-Actions path for every adopter plane (execution, approval, scheduling, and private page hosting), keeping .github/workflows/ strictly optional.

Decision Outcome

Chosen option: "Decouple all adopter-tenant operations from GitHub Actions".

More

Why: an adopter's Azure Virtual Desktop operations should depend only on their Azure tenant, standard shell tooling (pwsh, bash, az, git), and their chosen ITSM or Azure-native controls—never on GitHub Actions billing or runner availability.

1. Default non-Actions planes and optional GitHub Actions modes

Plane Non-GitHub-Actions default (required) Optional GitHub Actions (GitHub-hosted or private runners)
Execution Azure Cloud Shell or local PowerShell 7 / Bash (run-anywhere), or Azure-native compute (Azure Automation, Container Apps Jobs) ubuntu-latest (GitHub-hosted) or self-hosted private runner (Azure VM / Container App / local)
Approval & Change-Gate Interactive CLI (-WhatIf / -Confirm), Azure RBAC / Entra PIM elevation, or the 5+2 ITSM Change-Gate adapter (mock, power-platform, jira-jsm, servicenow) GitHub Environments (environment:) on GitHub Pro+ (works with either runner type)
Scheduling Azure Automation schedules, Azure Container Apps Jobs, or local cron / Task Scheduler runbooks.yml (on: schedule:) in avd-private on GitHub-hosted or self-hosted runners
Private page deployment Direct Cloud Shell / CLI deployment (az staticwebapp / @azure/static-web-apps-cli, or az storage blob upload-batch to $web) deploy-pages-swa.yml via OIDC on GitHub-hosted or self-hosted runners
  • Optional GitHub Actions without private runners: Uses GitHub-hosted ubuntu-latest runners (zero runner maintenance; shares GitHub Free's 2,000 min/month private-repo pool).
  • Optional GitHub Actions with private runners: Uses runs-on: self-hosted on an adopter-owned runner (avoids GitHub-hosted minute billing and keeps Azure network traffic inside the tenant, while environment: required reviewers on private repos still require GitHub Pro+).

2. Scope boundary (adopter tenant vs. public avd-ops CI)

  • Adopter tenant & avd-private: Defaults to zero GitHub Actions (Initialize-AvdPrivateRepo.ps1 omits .github/workflows/ unless -IncludeWorkflows is passed). Private companion repositories only need Git storage (or any private Git host / local repo) for runs/, vault/, config/, and swarm/.
  • Public avd-ops repositories: Public CI (pages.yml, kb-validate.yml, release-train.yml) may continue using GitHub Actions on public repos where standard runners are free, while keeping all validation and build scripts runnable locally (npm test, python3 scripts/kb/validate.py).

Consequences

  • Good, because GitHub Actions billing limits, usage exhaustion, or disabled-Actions policies cannot break avd-ops functionality for an adopter's tenant.
  • Good, because adopters on GitHub Free get real human-in-the-loop approval gates via interactive CLI, Azure PIM, or ITSM/Power Platform instead of silent no-ops on environment:.
  • Good, because adopters can host avd-private on any Git provider or local filesystem without losing any avd-ops workflow.
  • Bad, because templates and walkthroughs must maintain a direct Cloud Shell / Azure-native path alongside any optional GitHub Actions workflow template.

More Information

Related decisions and templates.

More
Linked from 2 pages