Week 14 - Infrastructure as Code

Why use Infrastructure as Code

IaC concepts

Azure Bicep

Bicep in practice

Deploy Bicep from CI/CD

Practice

Assignment

Gotchas & Pitfalls

Glossary: Week 14

Career relevance: Week 14

History of IaC

Slides (PDF)

Slides (PDF)

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.

Present in the browser (HTML)

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.

Download (PDF)

week_14__presentation.pdf

week_14__presentation.pdf

What's in it

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.

Exercises (live in class)

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>

Practice not covered live

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/*

CC BY-NC-SA 4.0 Icons

Built with ❤️ by the HackYourFuture community · Thank you, contributors

Found a mistake or have a suggestion? Let us know in the feedback form.