IA02 · Infrastructure as Code & policy
Bicep Modules & What-If
Split a deployment into Bicep modules and preview every change with what-if.
🎯 You will learn to
- Write modules
- Pass parameters
- Preview with what-if
🧪 Live environment
Runs entirely in your browser: nothing is installed, no real cloud account is used and your code is never sent to our server.
Loading the lab…
✅ Steps & checkpoints
🗺️ Bicep modules
main.bicep composes modules for network, app and monitoring; one what-if previews them all.
The 2D diagram shows the exact flow, ports and trust boundaries. The 3D scene is a concept view of the same parts; packets travel along the same arrows.
🤔 Think about it
Why keep modules small?
🛡️ Safety & cost
Every apply here is simulated. Always review a real plan before you apply it.
🧹 Cleanup
Run destroy in the simulator, and in real life check that state is empty.
📚 Reference documents
- Bicep overview · Microsoft Learn
- Bicep what-if · Microsoft Learn
- Terraform documentation · HashiCorp
- What is AWS CloudFormation? · AWS
Official sources, checked on 5 Nov 2026. Cloud services change often; check the official page before relying on a feature. All references