L6.1 β€” High Availability & Redundancy πŸ”΄

πŸ“ Level 6 Β· Recover Β· Chapter 1 of 3 Β Β·Β  Previous: L4.1 β€” Backup Fundamentals Β Β·Β  Next: L6.2 β€” Disaster Recovery Implementation

Level 6 is an extra-credit track, parallel to Level 5 β€” take either one first, or neither. This chapter in particular depends on nothing and costs nothing, so it can be run at any point. See the Curriculum Map.


Goal: grade the architecture Level 1 built, honestly, against availability zones and component redundancy β€” before spending anything on fixing it. This chapter deploys a report, not redundancy.

The IaC lesson: an audit only turns into improvement when each finding names the template that owns the fix β€” L6.1 measures, and every fix arrives as a reviewed pull request against the Level 1 file that owns the resource.


Who this is for Time You need first Cost while it runs
Chapter 1 of Level 6 Β· everyone ~20 min Nothing β€” the audit grades whatever the group contains; L2.2 enriches the measured half 🟒 $0.00/hr β€” this chapter deploys a report, not redundancy

[!IMPORTANT] This chapter changes nothing, deliberately. Every redundancy upgrade belongs to the template that owns the resource, so L6.1 measures β€” and each fix arrives as a reviewed pull request against the right file.


What you’re building

One workbook, and no new redundancy. Azure Resource Graph β€” which is free β€” reads the zone posture of everything in the resource group, and the workbook grades it and names the four single points of failure L1.4 left behind. Each finding points at the Level 1 template that owns the fix, with a price attached.

flowchart LR
  ARG["Azure Resource Graph<br/>free"]
  WB["L6.1 redundancy grade<br/>workbook"]
  F1["Bastion Basic<br/>no redundancy at this SKU"]
  F2["one firewall instance<br/>unless zones are set"]
  F3["SQL Basic<br/>CANNOT be zone-redundant"]
  F4["one container replica<br/>per region"]
  FIX(["fixes live in the Level 1<br/>chapter templates, not here"])

  ARG --> WB
  WB --> F1
  WB --> F2
  WB --> F3
  WB --> F4
  F2 -.->|"free to fix"| FIX
  F4 -.->|"$0.054/hr each"| FIX
  F3 -.->|"+$0.25/hr β€” decline it"| FIX

  classDef free fill:#eefaf0,stroke:#3a9d5d,color:#1a1a1a
  classDef gap fill:#fff9e6,stroke:#c9a227,color:#1a1a1a
  classDef costly fill:#fdecea,stroke:#c0392b,color:#1a1a1a
  class ARG,WB,FIX free
  class F1,F2,F4 gap
  class F3 costly

Text description of this diagram</summary>

One workbook, fed by Azure Resource Graph, grading every resource in the group by zone posture β€” zone-redundant, zonal, or neither β€” and then naming the four single points of failure L1.4 left behind.

Three of the four are cheap to fix. Zone-redundant firewall and load balancer cost nothing extra on the same SKU; a second container replica is $0.054/hr. The fourth is not: the Basic-tier SQL database cannot be made zone-redundant at any price, and leaving Basic costs about +$0.25/hr.

The dotted lines all point away from this chapter, at the Level 1 chapter templates. That is the point. A redundancy grade produced by the monitoring team and a redundancy fix made by the team that owns the workload are different activities, and conflating them is how templates end up fighting each other.

</details>

Source: curriculum/L6.1-high-availability/main.bicep Β· main.bicepparam


πŸ” Going deeper β€” the ownership rule, in full</summary>


Every redundancy upgrade in this estate belongs to the template that owns the resource β€” the container app replica count is in curriculum/L1.3-multi-service-application, the load balancer zones in curriculum/L1.2-architecture-expansion. Fixing them from here would break the ownership rule the whole curriculum runs on. So L6.1 measures, and each fix arrives as a reviewed pull request against the right file.

</details>

πŸ” Going deeper β€” an SLA is not an SLO is not a measurement</summary>


Azure publishes an SLA for each service; you choose an SLO; L2.2’s availability test tells you what actually happened. Put all three side by side for this environment and the gaps are instructive β€” a 99.99% SLA on a component sitting behind a single Basic Bastion does not make the system 99.99%.

</details>

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

Azure RBAC β€” the minimum this chapter needs

Your own Reader on the resource group is enough to run every query and use the workbook. Deploying the workbook takes Contributor β€” which the workshop deploy identity holds, and you do not need.
Why: Azure Resource Graph reads what your identity can already see, so the grade is only as complete as your access β€” a Reader scoped to one resource group cannot tell you about the subscription around it. Worth noticing before quoting the result as an estate-wide finding.
Microsoft Entra ID roles

None.
Redundancy is an infrastructure property. The identity-plane equivalent β€” whether your directory itself has a resilience story, and what happens to sign-ins during a regional Microsoft Entra ID incident β€” is a real question and firmly outside what this lab can demonstrate.

For more info β€” Availability zones, zonal vs zone-redundant

</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.1-high-availability/main.bicepparam
az deployment group create  --resource-group $env:AZURE_RESOURCE_GROUP --parameters curriculum/L6.1-high-availability/main.bicepparam

You should see: freeFixes and paidFixes split out, and ownershipRule stating why this template changes nothing.



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

Actions β†’ β€œCurriculum L6 - Disaster Recovery & Redundancy” β†’ Run workflow β†’ L6.1 - High Availability & Redundancy.

Nothing is deployed beyond a workbook, so this is safe to run at any point.



Β  Option 3 Β· GitHub Copilot (plain English)

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

Deploy curriculum/L6.1-high-availability/main.bicep to my lab resource group ($env:AZURE_RESOURCE_GROUP) with az deployment group create.

Then ask it to break the rule and refuse:

Make the load balancer in this environment zone-redundant by editing curriculum/L6.1-high-availability/main.bicep.

There is no load balancer in this template to edit. The right change is in curriculum/L1.2-architecture-expansion/main.bicep, which owns it β€” ask Copilot to make it there instead, and notice that the fix is a one-line zones property and costs nothing. The hard part was never the Bicep; it was knowing which file.



βœ… Verify it

  1. Open the workbook β€” Azure Monitor β†’ Workbooks β†’ L6.1 β€” <prefix> redundancy grade.

    You should see: most resources graded β€œNot zonal”. That is the honest starting position for an environment built for teaching, and pretending otherwise would waste the chapter.

  2. Check the four known gaps:

    az graph query -q "resources | where resourceGroup =~ '$env:AZURE_RESOURCE_GROUP' | where type in~ ('microsoft.network/bastionhosts','microsoft.network/azurefirewalls','microsoft.sql/servers/databases','microsoft.app/containerapps') | project name, type, zones" -o table
    
  3. Compare the SLA, the SLO and the measurement. Look up the published SLA for Azure Firewall, then run:

    az monitor log-analytics query --workspace $WS `
      --analytics-query "AppAvailabilityResults | where TimeGenerated > ago(7d) | summarize Total=count(), Ok=countif(Success==true) | extend Measured = round(100.0*Ok/Total, 3)" -o table
    

    You should see: a measured number that is not the SLA. Which is fine β€” the useful question is whether it clears the SLO you chose, and L6.3 turns that into an alert.

  4. Spend a fixed budget. Give the class $0.10/hr and ask where it buys the most availability for this workload. The defensible answer is a second container replica plus the free zone settings β€” and declining the database upgrade with numbers is worth more than agreeing to it.


GitHub feature spotlight Β· A finding that names the file that fixes it

You just used it: the workbook does not only say β€œthis is not zone-redundant” β€” the page and the outputs say which template owns the fix and what it costs. A finding you cannot trace to a file is a finding nobody will action. Find it: the cost table in the workbook, and the ownershipRule output. Beyond the lab: the gap between an audit and an improvement is almost always β€œwho owns this line of code”. Docs β†’



➑️ What carries forward

L6.2 builds the regional recovery capability for the tier that cannot simply be redeployed β€” the stateful one.


🧭 Where next?

Your situation Go to
Ready to keep going β€” survive losing a whole region L6.2 β€” Disaster Recovery Implementation
Want the big picture of this level first Level 6 Β· Recover overview
Done for the day β€” the estate bills while idle Cleanup & Reset
Something didn’t work Troubleshooting
β¬… Back to the main path grid πŸ—ΊοΈ Curriculum Map