microsoft partner logo color
8245  Reviews star_rate star_rate star_rate star_rate star_half

Using Bicep for Azure Resource Deployment and Automation

In this comprehensive Bicep course, participants explore everything from foundational to advanced techniques in deploying and managing Azure resources using Bicep. Starting with the fundamentals of...

Read More
Course Code WA3694
Duration 1 day
Available Formats Classroom

In this comprehensive Bicep course, participants explore everything from foundational to advanced techniques in deploying and managing Azure resources using Bicep. Starting with the fundamentals of infrastructure as code, the course builds up to advanced topics like deploying resources at multiple scopes, extending Bicep with deployment scripts, and utilizing template specs and module registries for reusable code. Through hands-on exercises, participants will gain a deep understanding of Bicep’s syntax, structure, and best practices, equipping them to handle complex deployment scenarios with ease.

Skills Gained

  • Understand the fundamentals of infrastructure as code using Bicep
  • Define Azure resources and use parameters, variables, and expressions in Bicep templates
  • Build reusable and flexible Bicep templates using parameters, conditions, and loops
  • Leverage modules to create composable Bicep templates and reduce code duplication
  • Deploy resources across various Azure scopes, including subscriptions, management groups, and tenants
  • Extend Bicep with custom deployment scripts and manage infrastructure code using Git, version control, and pull requests
  • Manage template specs and private module registries to ensure reusable, secure, and scalable deployments

Prerequisites

  • Familiarity with deploying Azure resources using Bicep
  • Basic understanding of Azure Resource Manager (ARM) and Azure resource groups is recommended

Course Details

Software Requirements

  • A computer with an internet connection is required
  • A remote lab VM with an Azure account will be provided as part of the training

Introduction to Bicep and Infrastructure as Code

  • What is infrastructure as code?
  • What is Azure Resource Manager?
  • What is Bicep?
  • How Bicep works
  • When to use Bicep

Getting Started with Bicep Templates

  • Define resources in a Bicep template
  • Add parameters and variables to your Bicep template
  • Group related resources by using modules

Building Flexible and Reusable Bicep Templates

  • Understand parameters in Bicep
  • Add parameters and decorators for flexibility
  • Provide values using parameter files
  • Secure your parameters
  • Deploy resources conditionally
  • Deploy multiple resources using loops
  • Control loop execution and nest loops
  • Use variable and output loops

Modularizing and Composing Bicep Code

  • Create and use Bicep modules
  • Add parameters and outputs to modules
  • Define child and extension resources
  • Work with existing resources

Managing and Versioning Your Bicep Code with Git

  • Understand Git and version control
  • Initialize a Git repository
  • Commit files and view history
  • Branch and merge your changes
  • Publish your repository to enable collaboration

Deployment and Migration with Bicep

  • Review Azure infrastructure changes using Bicep and pull requests
  • Understand branching and protect your main branch
  • Create, review, and merge a pull request
  • Preview Azure deployment changes using what-if
  • Convert and migrate resources from JSON ARM templates to Bicep
  • Deploy resources to subscriptions, management groups, and tenants

Advanced Bicep Features and Sharing Reusable Code

  • Extend Bicep and ARM templates using deployment scripts
  • Add a deployment script to an ARM template
  • Parameterize deployment scripts
  • Publish libraries of reusable infrastructure code using template specs
  • Share Bicep modules using private registries