L6.3 β€” Business Continuity & Validation πŸ”΄

πŸ“ Level 6 Β· Recover Β· Chapter 3 of 3 Β Β·Β  Previous: L6.2 β€” Disaster Recovery Implementation Β Β·Β  Next: Cleanup & Reset


Goal: prove the recovery capability instead of asserting it. An availability SLO alert, plus a drill workbook that turns each exercise into evidence with numbers in it.

The IaC lesson: evidence as code β€” the SLO target, the drill record and every continuity query live in the repository, so β€œwe meet 99%” has a definition, a measurement and a commit history instead of being a claim in a slide deck.


Who this is for Time You need first Cost while it runs
Chapter 3 of Level 6 Β· everyone ~20 min L6.1 and L6.2; L2.2 and L4.3 for the data 🟒 $0.00/hr steady state Β· $2–5 per drill

[!IMPORTANT] Every query on this chapter’s workbook reads data an earlier level already collects β€” availability from L2.2, backup and restore history from L4.3, replication health from L6.2. Nothing new is instrumented.


What you’re building

Two small deployments, both made entirely of data the estate already collects. An SLO alert watches the L2.2 availability test over a 24-hour window and fires when the promise slips below target, and a continuity workbook puts measured availability, backup history and a fill-in-during-the-exercise drill record on one page. That a well-instrumented estate can already answer continuity questions without a special project is the finding.

flowchart LR
  L22["L2.2 availability test"]
  L43["L4.3 backup job history"]
  L62["L6.2 replication health"]
  WB["L6.3 continuity evidence<br/>workbook + drill record"]
  SLO["SLO alert<br/>below 99% over 24 h"]
  AG["ag-iacdemo-oncall<br/>from L2.3"]

  L22 --> WB
  L43 --> WB
  L62 --> WB
  L22 --> SLO --> AG

  classDef old fill:#eef4ff,stroke:#4472c4,color:#1a1a1a
  classDef new fill:#fdecea,stroke:#c0392b,color:#1a1a1a
  class L22,L43,L62,AG old
  class WB,SLO new

Text description of this diagram</summary>

Two things deploy, and both are made entirely of data that already exists.

The SLO alert measures availability over 24 hours from the L2.2 web test and fires when it falls below the target. It is not an outage alert β€” L2.3 already answers β€œis it up right now”. This one answers β€œdid we keep the promise”, which can fire on a morning when nothing is currently broken. That difference is the whole of service-level thinking.

The continuity workbook puts measured availability, backup and restore durations, and a blank drill record on one page. The drill table is meant to be filled in during the exercise, not afterwards from memory, and the column that matters is the gap between the target and the measured number.

</details>

Source: curriculum/L6.3-continuity-validation/main.bicep Β· main.bicepparam


πŸ” Going deeper β€” why an untested DR posture is a false saving</summary>


The cheapest possible DR posture is an untested one. That is exactly why it is a false saving. A drill costs $2–5 in temporary resources and an hour of someone’s time; discovering the plan does not work during a real outage costs considerably more. Schedule the drill, keep the receipts, and delete the temporary resources the same day.

</details>

πŸ” Going deeper β€” the permissions this needs</summary>

Azure RBAC β€” the minimum this chapter needs

Contributor for the workbook and the alert rule β€” the workshop deploy identity's job; your Reader is enough to read every number this chapter produces. Drills need more, and in more places.
Why: the deployed resources are ordinary. The drill is where permissions bite β€” a test failover needs write access in the recovery region, a database restore creates a new database, and Azure Chaos Studio needs a managed identity with a role assignment on every target, which even the deploy identity's plain Contributor cannot create. That is why Chaos Studio is described here and not deployed, and why the hands-on failover steps below are the instructor's to run in a classroom.
Microsoft Entra ID roles

None to deploy β€” but a real continuity plan depends on the directory.
If Microsoft Entra ID is degraded, the people executing your runbook may not be able to sign in to run it. Break-glass accounts β€” excluded from Conditional Access, monitored, credentials in a safe β€” are a directory control, not an Azure one, and no amount of Site Recovery substitutes for them. Name it in the plan even though this lab cannot demonstrate it.

For more info β€” Break-glass accounts, and why DR plans need them

</details>



[!NOTE] 🏫 Classroom: use the GitHub Actions option. Your Azure account holds Reader, so local az deployment commands will be refused β€” deploys go through your fork’s workflow, which uses the workshop deploy identity automatically. Compiling locally (az bicep build) works for everyone.

πŸš€ Deploy it β€” pick any one of three ways



1 Β· Bicep CLI
Copy-paste in the terminal


2 Β· GitHub Actions
One button in the browser


3 Β· GitHub Copilot
Ask AI in plain English



Β  Option 1 Β· Bicep from the terminal

az deployment group what-if --resource-group $env:AZURE_RESOURCE_GROUP --parameters curriculum/L6.3-continuity-validation/main.bicepparam
az deployment group create  --resource-group $env:AZURE_RESOURCE_GROUP --parameters curriculum/L6.3-continuity-validation/main.bicepparam

You should see: availabilityTarget stating the promise, everyQueryIsInherited listing which level each number comes from, and theClosingArgument β€” the sentence the whole curriculum has been building to.



Β  Option 2 Β· GitHub Actions (push-button)

Actions β†’ β€œCurriculum L6 - Disaster Recovery & Redundancy” β†’ Run workflow β†’ L6.3 - Business Continuity & Validation.

Safe to run. The SLO alert may fire on its first evaluation if the availability test has had a bad day, which is a useful first incident.



Β  Option 3 Β· GitHub Copilot (plain English)

Load your values first: ./scripts/Load-LabSettings.ps1. Then in Copilot Chat β†’ Agent mode:

Deploy curriculum/L6.3-continuity-validation/main.bicep to my lab resource group ($env:AZURE_RESOURCE_GROUP) with az deployment group create.

Then have it write the runbook you will actually use:

Read curriculum/L6.2-disaster-recovery/main.bicep and curriculum/L1.4-production-platform/main.bicep, then write a regional failover runbook for this environment in the correct order β€” data, then app, then traffic β€” with the exact az commands and a rollback step for each.

Then have somebody who did not write it execute it. Every ambiguity they hit at their desk is one they would have hit at 03:00 with an incident bridge listening. A runbook only its author can follow is not a runbook.



βœ… Verify it

  1. The SLO alert exists and knows its target:

    az monitor scheduled-query show -g $env:AZURE_RESOURCE_GROUP -n "alert-$env:AZURE_PREFIX-availability-slo" `
      --query "{enabled:enabled, window:windowSize, frequency:evaluationFrequency}" -o table
    
  2. Run a test failover that touches nothing real:

    az site-recovery protected-item failover test --help
    

    You should see: a VM come up in the recovery region, isolated from production. Time it. Compare it to the RTO you wrote down before starting β€” the gap is the finding, and the finding is the deliverable.

    Clean up the test failover afterwards. It bills while it exists.

  3. Fail the database over deliberately β€” the L1.4 failover group, used in anger for the first time:

    $FOG = az sql failover-group list -g $env:AZURE_RESOURCE_GROUP -s $SQL --query "[0].name" -o tsv
    az sql failover-group set-primary -g $env:AZURE_RESOURCE_GROUP -s "$SQL-dr" -n $FOG
    

    The name carries a uniqueString suffix, so it is looked up rather than typed β€” the same reason L1.3’s Key Vault and SQL server names are never hardcoded anywhere in this curriculum.

    You should see: the listener endpoint follow the new primary, and the app keep working without a connection-string change β€” which is the entire point of a failover group, and only obvious once you have watched it. Fail it back afterwards.

  4. Check the monitoring noticed. During the drill, did anything from Level 2 or Level 3 fire? If a regional failover produced no alerts at all, the monitoring has a gap β€” and finding that in a drill rather than an incident is the best possible outcome.

  5. Write the one-page continuity standard. RTO and RPO per tier, the measured numbers next to them, the drill date, and the cost. That document is the output of Level 6 β€” and of the curriculum. The numbers in it are defensible because you measured them rather than quoting an SLA.


GitHub feature spotlight Β· Evidence with a commit behind it

You just used it: the SLO target, the queries and the drill record are all in the repository, so β€œwe meet 99%” has a definition, a measurement and a history rather than being a claim in a slide deck. Find it: the availabilityTargetPercent parameter and the drill table in the workbook definition. Beyond the lab: an audit asks for evidence, not assurances. The cheapest time to produce it is while you are already doing the work. Docs β†’



➑️ What carries forward

The curriculum is complete. Deploy β†’ Monitor β†’ Secure β†’ Protect β†’ Detect β†’ Recover, on one environment, for about $2.55/hr β€” of which the Azure Firewall from L1.2 alone is $1.25/hr. Tear down in reverse order, and check the three things that outlive a resource group cleanup: Site Recovery replication, Recovery Services vault contents, and retained Log Analytics data.


🧭 Where next?

Your situation Go to
Curriculum complete πŸŽ‰ β€” tear the estate down Cleanup & Reset
Review the whole journey Curriculum overview
Skipped Level 5? It only needs L1.3’s workspace (plus an instructor-granted Sentinel role) Level 5 Β· Detect
Something didn’t work Troubleshooting
β¬… Back to the main path grid πŸ—ΊοΈ Curriculum Map