Update an existing APEX project
An existing project can differ from both APEX main and the current Accelerator template. Check your repository before applying new instructions. Updating customizations does not authorize a deployment or make earlier approval valid for changed inputs.
Documentation compatibility
Section titled “Documentation compatibility”This guidance was source-reviewed on 2026-11-26 against APEX 6ec114c53aa9 and Accelerator 89ab31f30317.
The generated Architecture Explorer uses 6ec114c53aa9. It matches the recorded guidance baseline.
A source review checks instructions against repository contracts. It does not mean that every command, client configuration or Azure operation was executed. An execution-tested claim needs its own recorded environment, inputs and result. The site’s build date and page modification dates are not execution evidence.
The showcases and preserved downloads illustrate completed outputs at their recorded revisions rather than live tenant guarantees. The site footer links here and identifies the guidance baseline separately from the documentation build.
Identify what your project contains
Section titled “Identify what your project contains”Run these read-only commands in your template-derived repository:
git status --shortgit rev-parse HEADgit log -5 --oneline -- .github/agents .github/skills .devcontainer .mcp.jsonThe first command shows uncommitted work; the second prints your repository commit. Use your merged Upstream Sync pull requests to see which apex revisions your repository has already adopted, and commit or stash local changes before applying upstream updates.
Review the sync mechanism in your repository
Section titled “Review the sync mechanism in your repository”The reviewed template’s Upstream Sync workflow proposes scheduled updates through a pull request. Manual workflow dispatches default to a dry run and never merge automatically.
Inspect .github/workflows/weekly-upstream-sync.yml in your own repository first. At the reviewed baseline, sync mirrors upstream framework files while honoring EXCLUDE_PATHS and SYNC_EXCEPTIONS:
| Path group | Sync behavior |
|---|---|
.github/agents/, .github/skills/, .github/instructions/, .github/prompts/, .devcontainer/, and .mcp.json | Replaced by upstream; preserve intentional local edits explicitly. |
agent-output/, infra/bicep/{project}/, and infra/terraform/{project}/ | Preserved in EXCLUDE_PATHS, except shared infra/bicep/AGENTS.md and infra/terraform/AGENTS.md in SYNC_EXCEPTIONS. |
.github/data/ | Preserves adopter-owned tenant data (such as governance-policy-baseline.json.gz), while syncing .github/data/alz-corp-policy-baseline.json.gz through SYNC_EXCEPTIONS. |
.github/workflows/ | Excluded from automatic file overwrite; preview upstream workflow updates with npm run sync:workflows and apply intentionally with npm run sync:workflows -- --apply --ref <commit-sha>. |
Runtime .github/hooks/ chat hooks remain retired upstream. Do not recreate .github/hooks/ during sync reviews; Git Lefthook, gitleaks, and CI workflows remain active. See Copilot hooks.
Do not replace this review with a bulk copy of APEX main or a destructive Git reset. A dry run helps inspect the proposed update; it is not proof that the result preserves every local customization.
Assess the impact before merging
Section titled “Assess the impact before merging”Read the diff for changes to:
- Main-agent names, permitted helpers, review defaults and handoff artifacts.
- State schemas and recovery commands.
- Security defaults, governance evidence, SKU decisions and validation freshness.
- Container dependencies, lifecycle scripts, MCP configuration and authentication.
- The container base image and package-source defaults. A base-image change (such as Ubuntu to Azure Linux) can break custom container steps; see dev container setup and its migration steps.
- Workflow permissions and repository initialization behavior.
Compare these with the workflow overview and your project’s current requirements. If a documented agent, command or artifact is missing, establish the version difference first. Do not invent a substitute or skip a gate.
The docs repository’s source-update PR includes a path-based impact report. It suggests pages to review; it cannot decide whether the behavioral change is safe for your workload or whether the prose is correct.
Resume with the APEX agents
Section titled “Resume with the APEX agents”After accepting an update, follow the changed setup instructions in your own repository. Rebuild the development container when its configuration or tooling requires it, and check the setup output. Do not rerun initialization or cloud setup merely because a dependency changed.
Select 01-Orchestrator with the existing project, the accepted update and the
last completed step. Ask it to identify the correct owner and missing evidence
before continuing. Use session debugging if the
recorded state cannot be read. Do not edit state to force progress.
APEX’s Deploy agent owns deployment. Changed code, scope, policy evidence or preview results may require fresh validation and approval. An accepted sync PR is not authorization to apply infrastructure changes. See Step 6: Deploy for the agent’s responsibilities.