Week 14 - Infrastructure as Code
Why use Infrastructure as Code
The slide deck for the Week 14 in-class session. Structure: teach chapter-by-chapter (Ch1 through Ch5, with two live builds on the reference repo), then launch the assignment, then close with one mixed Live Quiz (12 questions, Ch1-Ch5 + gotchas). A short teaser up front says where the week is heading; the full hand-in detail comes after the teaching, right before the quiz.
Live builds point at the reference-repo chapter branches (week-14-ch-3-bicep for §3, week-14-ch-4-bicep for §4). The CI section (§5) leaves the reference repo: workflows and secrets live on your fork of the assignment repo, because that is the repository you own.
Interactive present-mode deck (arrow keys or click, text stays selectable). It includes the bicep.yml copy panel, a scrollable snippet with a copy button that the PDF cannot show:
https://hackyourfuture.github.io/Learning-Resources/data-track/embeds/week-14-slides/week_14__presentation.html
Teachers can also serve it locally with just slides-present 14, which opens http://127.0.0.1:8765/week_14__presentation.html.
week_14__presentation.pdf
az login + $CLASS_RG check, theme (from clicking the portal to declaring infrastructure), agenda, and a short where this is heading teaser.az script can and cannot do.week-14-ch-3-bicep): template anatomy, then everyone's first Succeeded from a text file.week-14-ch-4-bicep): modules, nested containers, reading a noisy what-if, and why removing a line does not delete.bicep.yml.Teacher script and pacing notes: GitHub-only week_14__lesson_plan.md.
To regenerate after editing the Marp source: just slides-rebuild 14 from the repo root (PDF + HTML + slide-hash comments). Teachers present from the browser with just slides-present 14. While iterating on the deck locally, just slides-dev 14 watches the Marp file and reloads the browser after each HTML rebuild.
| Section | Exercise | Start branch | Solution check | What you practice |
|---|---|---|---|---|
| §2 Ch2 | Watch: what an az script cannot do |
teacher demo, do not run | n/a | Imperative re-run, silent update, no preview flag |
| §3 Ch3 | Live: your first deploy | week-14-ch-3-bicep | week-14-ch-3-bicep-solution | param / var / resource / output, az deployment group create, storage-name rules |
| §4 Ch4 | Live: module + nested container | week-14-ch-4-bicep | week-14-ch-4-bicep-solution | Module call, parent: nesting, reading what-if, az resource delete |
| §5 Ch5 | Live: commit bicep.yml |
your fork of c55-data-week-14 | Chapter 5 sample workflow | azure/login, what-if on PR, create on merge, repository secrets |
<aside>
⚠️ For §5, open the pull request inside your own fork (base repository <you>/c55-data-week-14). GitHub never passes repository secrets to a pull request opened from a fork, so azure/login fails if you target the cohort repo.
</aside>
The class covers Practice Exercise 1 in §3 and Exercise 4 in §4. Exercises 2, 3, 5, 6, 7 and 8 are yours to work through afterwards: see Practice.
The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

Built with ❤️ by the HackYourFuture community · Thank you, contributors
Found a mistake or have a suggestion? Let us know in the feedback form.