Hands-On LabIntermediate

Deploy a Full Azure Environment Using Bicep Infrastructure as Code

Write modular Bicep templates to deploy a VNet, App Service, SQL Database, and Key Vault, then deploy the full environment using Azure CLI.

60 minEstimated time
5Guided steps
AutoVerification
IsolatedSandbox
Deploy a Full Azure Environment Using Bicep Infrastructure as Code

Lab overview

Azure Bicep is Microsoft's domain-specific language for deploying Azure resources declaratively. It provides a cleaner, more concise syntax compared to traditional ARM JSON templates, with native support for modules, parameters, and outputs that enable reusable infrastructure patterns.

In this lab, you will use a browser-based code editor to write modular Bicep templates that define a complete multi-resource Azure environment, including a Virtual Network with subnets and Network Security Groups, an Azure Key Vault for secure secret management, a SQL Server and Database, and an App Service with VNet integration. You will then deploy the entire environment using the Azure CLI and verify that all resources are correctly provisioned in the Azure Portal.

Objectives

Upon completing this intermediate level lab, you will be able to:

  • Understand Azure Bicep syntax and how it compares to ARM JSON templates
  • Create modular Bicep templates using modules, parameters, and outputs to define reusable infrastructure components
  • Deploy a Virtual Network (VNet) with subnets and network security groups using a Bicep module
  • Provision an Azure App Service integrated with VNet and connected to a SQL Database using Key Vault references for secrets
  • Deploy the complete multi-resource environment to Azure using the Azure CLI
  • Verify deployed resources exist and are correctly configured in the Azure Portal

Who is this lab for?

This lab is designed for:

  • Cloud Engineers who need to modernize their Infrastructure as Code workflows by transitioning from ARM JSON templates to Azure Bicep
  • DevOps Practitioners looking to build reusable, modular infrastructure templates for multi-resource Azure deployments
  • IT Professionals who want hands-on experience composing and deploying real-world Bicep templates with Azure CLI

Basic familiarity with the Azure Portal, command-line tools, and cloud infrastructure concepts is recommended.

Verified against your live environment

An automated validation engine inspects your actual resources and configurations as you work. Completion means the task was performed — not multiple choice, real-world proficiency.

[CHECK] validation_activelive
Inspecting deployed resources...
Verifying configuration state...
✓ Step requirements satisfied

More labs like this

Related reading

PremiumIncluded in Premium
Duration
60 min
Steps
5

Environment

Live Cloud EnvironmentBrowser Code IDE

Every lab includes

  • Real environment, pre-credentialed
  • Automated checks on every step
  • Isolated sandbox, auto cleanup
  • AI-recommended next steps

Lab curriculum

  1. 01

    Logging into Azure CLI

  2. 02

    Create a Virtual Network Bicep Module with Subnets

    1 automated check

  3. 03

    Build Key Vault and SQL Database Bicep Modules

    1 automated check

  4. 04

    Compose the Main Bicep Template with App Service and All Modules

    1 automated check

  5. 05

    Deploy Bicep Templates and Verify Azure Resources Exist

    1 automated check

Skills validated

Azure Bicep

Not the lab you were looking for?

Browse 150+ hands-on labs across AWS, Azure, Kubernetes, Docker, and cloud security.

Explore the catalog