Automation map (coach)
All coach pagesSource on GitHub
What the kit automates, what people still do, and where attendees tend to stall. Read it with the run of show. “Automated” means the infrastructure and the checks. Students deploy the datacenter, the foundation and vending only through the platform.yml GitHub Actions stages, and start each one themselves: nothing deploys on its own, and agents never change Azure. The scripts named below are what those stages run. A coach runs one by hand only as a repair (see deploy with scripts and C2).
How to read the table
- Script is a kit script, a pipeline stage that runs one, or the
azdflow. It does the same thing each time. - Agent is GitHub Copilot with an agent or skill. The result varies between runs, so a person reviews it.
- Person is a decision, a portal step or a judgement. No script does it.
- Checked live means a person ran it end to end on the current kit. Anything else is marked.
By phase
| Phase | Script | Agent | Person | Checked live |
|---|---|---|---|---|
| Set-up (Step 1, T-14) | Import-Kit.ps1, Initialize-Settings.ps1, Initialize-PlatformPipeline.ps1, Test-Preflight.ps1 (whatif stage) | none | Create the repo from the template, run Import-Kit.ps1 in Azure Cloud Shell, sign in (az, gh); the team lead assigns the member index and collects roster.json | Yes |
| Foundation (Step 2, T-7) | Sync-FactoryReaderGroup.ps1 (Bootstrap), the foundation stage (Deploy-AlzLite.ps1, T-7), Grant-SqlMiDirectoryRead.ps1 | none | An authorized Entra operator bootstraps <prefix>-readers and publishes READER_GROUP_ID; the team lead runs the foundation stage at T-7; a Privileged Role Administrator grants the SQL MI identity its Graph read at T-7, once per team. | Yes |
| Readiness setup (Step 3, T-3) | The whatif and member stages (Test-Preflight.ps1, Deploy-Datacenter.ps1, Test-Datacenter.ps1 with 46 checks, Connect-DatacenterArc.ps1) | none | Run the stages at T-3, from the member’s own repo. The stage tests before Arc, because run commands stop working after Arc. A member without eligible licenses runs it with no-hybrid-benefit. Run the first Arc assessment in the portal, set up C:\src\<your-repo> on vm-dev01, and confirm readiness (see readiness verification) | Yes |
| Vending (Step 4, T-1) | Sync-FactoryReaderGroup.ps1 (Sync), the vending stage (Invoke-PipelineVending.ps1: checks full-roster verification, vnet-datacenter and vm-app01 Arc Connected status, runs Deploy-Vending.ps1, restarts VMs, runs New-DatacenterExemptions.ps1 and Test-Connectivity.ps1) | none | Every member starts their VMs; the group owner syncs the full private roster; the team lead runs the vending stage at T-1; members save sharedSubscriptionId in .local/settings.json on vm-dev01 | Yes |
| C1 | Import-Kit.ps1 pre-creates factory/evidence/c01/opportunity-canvas.md | none | The team writes the canvas on the team/pod lead’s screen and commits it once in the team/pod lead’s repo | Pages only |
| C2 | validate:iac-security-baseline, Azure Policy Deny assignments in rg-spoke, New-DatacenterExemptions.ps1, Test-Connectivity.ps1 | GitHub Copilot Agent mode (attempts to violate Bicep baseline and deploy non-compliant Azure resources) | Each member tests the guardrail layers on vm-dev01 in rg-spoke and runs Test-Connectivity.ps1 | Yes |
| C3 | none | Upgrade agent assessment and plan | Review both assessments on vm-dev01, complete factory/evidence/c03/triage.md, and commit .github/upgrades/ + triage.md on main | Yes, on Local VS Code |
| C4 | Import-Kit.ps1 pre-creates factory/evidence/c04/decisions-and-register.md | none | The team completes decisions-and-register.md and commits it once in the team/pod lead’s repo | n/a |
| C5 | /apex-adapt-archetype (checks, azd env, preflight, preview), azd provision with post-deploy tests on vm-dev01 | 08-As-Built | The member decides to deploy and runs azd provision on vm-dev01, then commits agent-output/university/ on main | Yes |
| C6 | sdk-container-publish | Seven Upgrade agent tasks | In C:\src\<your-repo> on main on vm-dev01: review and commit each task, run the gap searches, push the image, and check App Service configuration | Yes, on Local VS Code |
| C7 | Prepare-MiLinkSource.ps1 (including -RemoveTraceFlags post-cutover) | none | Create the MI link in the portal, wait for seeding, validate the replica in SSMS, stop the writers, cut over in the portal, write the secret and database user, repoint the web app, run Prepare-MiLinkSource.ps1 -RemoveTraceFlags, and update cutover-rollback-runbook.md | Link: yes (B07, B10) |
| C8 | Test-Acceptance.ps1 (factory/evidence/c08/acceptance.json) | none | Smoke, upload, notification and 20-request load burst on vm-dev01; commit acceptance.json on main | Partly: the front-end checks passed in B10 |
| C9 | Start-Workload.ps1, Reset-PerfKit.ps1 | Fix suggestions | Run baseline and after workloads on vm-dev01, fix the five planted issues (p1–p5), and commit .sql scripts + Query Store comparison on main | Data and workload: yes |
| C10 | Import-Kit.ps1 pre-creates factory/evidence/c10/handover-and-ai-review.md | none | Package reusable-asset/ and complete handover-and-ai-review.md once in the team/pod lead’s repo, then deliver the 5-minute showcase | n/a |
| Cleanup | teardown (Member, then Team), then Remove-PlatformPipeline.ps1 | none | T+2, after verifying main commits are pushed and the owner’s go. Members remove their scopes from Cloud Shell; lead uses members=all, confirm-team-teardown=true, and include-management=true unless reuse is agreed. Named repo admins finalize identities, and the Entra group owner or directory admin deletes <prefix>-readers (or clears its membership for reuse) before temporary human access is removed. Verify groups and subscription artifacts are gone | Member and Team scopes: tested, including B24’s two-member CI lab; see Platform pipeline |
The platform pipeline (the only student path)
The platform pipeline runs the kit’s scripts from GitHub Actions instead of a terminal. It is the only way students deploy the datacenter, the foundation and vending, and remove them. The scripts are its engine, and a coach can run them by hand to repair a run that can’t be fixed in time. Students have the deploy guide, with a team lead page and a member page.
| Piece | What it is |
|---|---|
.github/workflows/platform.yml | One workflow with stage, members, confirm-team-teardown, include-management and no-hybrid-benefit inputs. Jobs run in gh-lab and need approval where required reviewers are configured; full teardown gates members before Team scope |
scripts/Initialize-PlatformPipeline.ps1 | Sets the pipeline up once per repo: the managed identity, its federated credential, its roles and the gh-lab environment. -Profile Member is for a member’s own repo (preflight, datacenter, test and Arc); the default lead profile is for the team lead’s repo (ALZ-lite and vending for the roster) |
scripts/Sync-FactoryReaderGroup.ps1 | Bootstraps <prefix>-readers before foundation and reconciles full-roster membership plus gh-lab verification before vending, using delegated Microsoft Graph without granting GitHub Actions Graph permissions |
scripts/Invoke-PipelineVending.ps1 | Verifies the full-roster reader-group sync, vends each member in order, restarts both VMs, records the exemptions and runs the connectivity probes |
scripts/Write-RedactedOutput.ps1 | Replaces every GUID in a step’s output with <id:abcd>, so the run logs name no identifier |
scripts/Assert-PipelineGuard.ps1, Test-PipelineSetup.ps1, Test-PipelinePermissions.ps1, Get-PipelineEvidence.ps1, Remove-PlatformPipeline.ps1 | The fail-closed guard, setup and permission checks, the readiness evidence download (it also writes the documented lab credentials to .local/<subscription-id>/datacenter.json) and the identity removal |
In the new order, the team lead’s repo runs the foundation stage at T-7 (run 1) and the vending stage at T-1 (run 2). Members run the whatif and member stages in their own repos for the readiness check at T-3. The platform pipeline page holds the coach details: the accepted risks, the gates, who can run what, the manual steps that remain and what was tested. The coach-only manual path is on deploy with scripts. After the event, the teardown stage and then Remove-PlatformPipeline.ps1 remove everything (see cleanup).
Where attendees stall
- Reader-group bootstrap and sync (Step 2 and Step 4).
foundationrequiresREADER_GROUP_IDfromSync-FactoryReaderGroup.ps1 -Mode Bootstrap, andvendingrejects a missing or staleREADER_ROSTER_VERIFICATIONuntil the group owner runs-Mode Syncfor the full private roster. - The Graph grant (Step 2, T-7). Only a Privileged Role Administrator can make it. Book that person for T-7, right after ALZ-lite, not for the day.
- Vending is serial (Step 4, T-1). One team lead vends everyone at T-1, and
Invoke-PipelineVending.ps1checks that each member’svnet-datacenterexists andvm-app01isConnectedin Azure Arc before vending their spoke. A member who hasn’t finished Step 3 stops the stage until they finish or are vended individually, and a datacenter redeployed after vending must be vended again. - Arc order (readiness check). The
memberstage tests before Arc, so a pipeline member can’t hit this. It only happens after a hand-run repair that ran the Arc script beforeTest-Datacenter.ps1: the in-VM checks then can’t pass. The fix is to keep the earlier output. - MI link seeding (C7). The wait is long and nothing speeds it up. Start the link before the member finishes C6. Cutover is a portal action, and the CLI command fails.
- Writers after cutover (C7). The source stays writable, so any write after the last lag reading is lost.
- Agent runs vary (C3, C5, C6). The same task can give a different result each time, so check the result before the member moves on. When a member is blocked after trying the documented fixes, that is what the lifelines are for.
What is not validated
- The GitHub Copilot app. Local VS Code is the validated path. The app is best effort, with VS Code as fallback. See the attendee page Copilot app (best effort).
- A live run of the re-packaged archetype scripts. The previous package deployed and ran. The new one passed provider validation but has not had a live
azd provision, so ask members to tell you ifpreflight.ps1, the post-deploy tests or the deployment summary misbehave. - The full flow in one rehearsal. The pieces were checked one at a time. The dry run in B13 is the first time the whole path runs, and the new event order (ALZ-lite at T-7, vending at T-1) has not been rehearsed as an event.