Curveballs (coach)
All coach pagesSource on GitHub
The coach controls both exercises. Announce the trigger and give teams only the information below.
Day 1: a deny policy lands on the existing foundation
Trigger: during C2 on Day 1, at 10:15, after members have tested the Layer 2 Deny policies in rg-spoke and before C3 starts at 10:30. It happens before the first archetype resource is provisioned (C5 starts at 13:45). The foundation has existed since T-7 and every member has been vended since T-1, so this shows how a new policy lands on a landing zone that is already running.
Coach action: assign the built-in Allowed locations policy with Deny effect at the kit’s Corp management group. The golden path uses swedencentral or the documented germanywestcentral fallback, plus global where required, so compliant deployments continue. A shortcut that silently selects another region is denied.
$parameters = '{"listOfAllowedLocations":{"value":["swedencentral","germanywestcentral","global"]},"effect":{"value":"Deny"}}'az policy assignment create ` --name curveball-allowed-locations ` --display-name "Curveball: deny resources outside the approved regions" ` --scope /providers/Microsoft.Management/managementGroups/mg-factory-corp ` --policy /providers/Microsoft.Authorization/policyDefinitions/e56962a6-4747-49cd-b67b-bf8b01975c4c ` --params $parametersThe parameters and scope are examples for the default mg-factory prefix. If the event owner chose another prefix, substitute that prefix; do not use a tenant-specific ID in the assignment. The team lead runs the command under the coach’s direction, because they hold the rights to assign policy at the management group.
Team task: the coach asks the team lead to try creating any small resource, for example a storage account, in a region outside the approved list (such as westeurope) in a vended subscription. Observe the denial message and its location, explain why the golden path is compliant, and keep the selected approved region instead of weakening or bypassing the policy.
Reverse after review: remove only curveball-allowed-locations from the same mg-factory-corp scope as soon as the exercise is complete, and in any case before C5 starts at 13:45 (confirm at the 16:30 check-out that it’s gone):
az policy assignment delete ` --name curveball-allowed-locations ` --scope /providers/Microsoft.Management/managementGroups/mg-factory-corpConfirm that the assignment is gone. Do not remove the baseline alzl-allowed-locations assignment.
Day 2: fail the replica go/no-go and abort
Trigger: at C7’s go/no-go, before cutover, for one member per team (or 1 member per pod in a multi-pod cohort) whom the coach picks, so the rest of the team or pod keeps its C7 pace. The coach tells that member that the read-only replica check has failed (for example, lag is non-zero, the database is not READ_ONLY, or the fingerprints differ). The trigger is an exercise; do not deliberately corrupt the source database. Cap it at 15 minutes (record, cancel, delete the MI copy, write the plan); the member then restarts the link, and the wait for the new seeding is real, so they use it for the runbook. Because C8 and C9 need the cutover, the member continues with them as soon as their cutover is complete.
Coach action: do not let that member cut over. Ask them to stop application writes, preserve the source as the authoritative database, and show their abort and recovery plan.
Team task and safe abort path:
- Record the failed check and mark the decision no-go. Do not tick “I want to do a forced failover” and do not run
az sql mi link failover --failover-type Plannedfrom the MI side. - In the Arc portal’s MI link Monitor and cutover pane, select Cancel migration. The MI link spike verified that this removes the distributed availability group on both sides without failing over.
- Confirm that the source is still
READ_WRITE, has no availability group left and remains the app’s target. The MI retains a separate writable database copy after cancellation; it has diverged from the source. - Before recreating the link, delete only the MI-side
ContosoUniversitycopy using the supportedaz sql midb deleteflow. Verify the copy is gone, then document the reseed and revalidation plan. Do not repoint the app to the standalone MI copy. - Re-plan the cutover only after the read-only replica and lag checks pass. For a planned cutover, follow the validated Arc portal path in the MI link spike. The equivalent T-SQL
ALTER AVAILABILITY GROUP [<DAG>] FAILOVERruns on SQL Server itself when applicable; it is not the MI-side CLI command above.
Reverse after review: if the team recreated a link for the exercise, finish only after a valid replica and go/no-go; otherwise leave the source as the app’s target and include the deferred reseed/cutover plan in the handover. The coach must confirm no test-only writable MI copy remains before cleanup.