Lion Cipher Lab

Keep Azure findings fixed with Azure Policy: pre-flight a rule, audit first, then deny and watch a create be refused (Azure assessment 6 of 6)

Why it matters

A fix is only as good as the next deployment. In lab 5 you closed three findings in code, but nothing stops a teammate, a script or a template from creating the same weakness tomorrow. Azure Policy is the guard that does: Audit shows every non-compliant resource, Deny refuses the request before the resource exists. Learning it on one empty resource group teaches the part most teams get wrong: roll out in the order audit, then deny, and know what an unset value and an existing resource do to your rule.

What you'll learn

Steps in this lab

  1. The rule first: one throwaway resource group, then remove everything
  2. Audit and Deny: what each effect does, and which runs first
  3. Pre-flight the rule offline against your saved storage accounts
  4. Create the two definitions and the test resource group
  5. Audit first: assign, create a weak account, read compliance
  6. Then deny: switch the effect and watch a create be refused
  7. What the defender sees, and the rollout rule to keep
  8. Clean up completely

Open the full interactive lab →

Keep learning